Difference between revisions of "Template:Event"

From Idlescape Wiki
Jump to navigation Jump to search
m
m
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{| class="messagebox cleanup"
 
{| class="messagebox cleanup"
| <div style="font-size:140%; text-align:center; padding-right: 15px;">[[File:Event_token.png|50px]]</div> || '''This page is related to an event, and the information might therefore not be relevant. {{#if:{{{1|}}}|<div color="green" clear="all" />The event is currently {{{1}}}.</span><br>}}<br>You can see more info on [[Events]]'''
+
| <div style="font-size:140%; text-align:center; padding-right: 15px;">[[File:Event_token.png|50px]]</div> || '''This page is related to an event, and the information might therefore not be relevant. {{#ifeq: {{{1}}}|active|<br><div clear="left"><p style="color:green;">The event is currently {{{1}}}.</p></div>|}}{{#ifeq: {{{1}}}|inactive|<br><div clear="left"><p style="color:red;">The event is currently {{{1}}}.</p></div>|}}<div clear="left">You can see more info on [[Events]]</div>'''
 
|}
 
|}
  
Line 9: Line 9:
 
It is currently using the same class as cleanup and this might be good to change during future fixes to highlight different events
 
It is currently using the same class as cleanup and this might be good to change during future fixes to highlight different events
  
<nowiki>{{Event|active}}</nowiki>
+
<code>
 +
<nowiki>{{Event}}</nowiki> - standard message as you see on this page
 +
 
 +
<nowiki>{{Event|active}}</nowiki> - inserts a green text under "this page is related"; "The event is currently active"
 +
 
 +
<nowiki>{{Event|inactive}}</nowiki> - inserts a red text under "this page is related"; "The event is currently inactive"
 +
</code>
 
</noinclude><noinclude>
 
</noinclude><noinclude>
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>

Latest revision as of 14:22, 28 December 2021

Event token.png
This page is related to an event, and the information might therefore not be relevant.
You can see more info on Events


Usage

Used to mark up articles that is related to events to prevent people to accidentally trying to get event related items when the event is not active

It is currently using the same class as cleanup and this might be good to change during future fixes to highlight different events

{{Event}} - standard message as you see on this page

{{Event|active}} - inserts a green text under "this page is related"; "The event is currently active"

{{Event|inactive}} - inserts a red text under "this page is related"; "The event is currently inactive"