Template:DYK: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
(Adding the initial batch of statements)
(Here's how to add a new DYK statement)
Line 1: Line 1:
{{#vardefine:DYKTotal|24}}<!-- Change the preceding number (DYKTotal) when adding new statements -->{{
{{#vardefine:DYKTotal|25}}<!-- Change the preceding number (DYKTotal) when adding new statements -->{{
#vardefine:DYK1|*... that '''[[Martha]]''' in ''[[The Legend of Zelda: Link's Awakening|Link's Awakening]]'' originally was supposed to lose her swimsuit rather than her necklace?
#vardefine:DYK1|*... that '''[[Martha]]''' in ''[[The Legend of Zelda: Link's Awakening|Link's Awakening]]'' originally was supposed to lose her swimsuit rather than her necklace?
}}{{
}}{{
Line 47: Line 47:
}}{{
}}{{
#vardefine:DYK24|*... that '''[[Morpheel]]''' is a reference to [[Morpha]], both in the way its first stage is defeated and in name?
#vardefine:DYK24|*... that '''[[Morpheel]]''' is a reference to [[Morpha]], both in the way its first stage is defeated and in name?
}}{{
#vardefine:DYK25|*... that the hippo in ''[[The Legend of Zelda: Link's Awakening|Link's Awakening]]'''s '''[[Animal Village]]''' was originally posing nude for [[Schule Donavitch]]?
}}<!-- Add new DYK statements before this section. Nothing following this point should be modified -->{{#vardefine:DYKDay|{{#time:z|{{CURRENTMONTHNAME}}-{{CURRENTDAY}}-{{CURRENTYEAR}}}}}}{{#vardefine:DYKNumber|{{#expr:({{#var:DYKDay}} mod {{#var:DYKTotal}}+1)}}}}{{#vardefine:DYKDay+1|{{#time:z|{{CURRENTMONTHNAME}}-{{#expr:{{CURRENTDAY}}+1}}-{{CURRENTYEAR}}}}}}{{#vardefine:DYKNumber+1|{{#expr:({{#var:DYKDay+1}} mod {{#var:DYKTotal}}+1)}}}}{{#vardefine:DYKDay-1|{{#time:z|{{CURRENTMONTHNAME}}-{{#expr:{{CURRENTDAY}}-1}}-{{CURRENTYEAR}}}}}}{{#vardefine:DYKNumber-1|{{#expr:({{#var:DYKDay-1}} mod {{#var:DYKTotal}}+1)}}}}{{#var:DYK{{#var:DYKNumber-1}}}}<br>
}}<!-- Add new DYK statements before this section. Nothing following this point should be modified -->{{#vardefine:DYKDay|{{#time:z|{{CURRENTMONTHNAME}}-{{CURRENTDAY}}-{{CURRENTYEAR}}}}}}{{#vardefine:DYKNumber|{{#expr:({{#var:DYKDay}} mod {{#var:DYKTotal}}+1)}}}}{{#vardefine:DYKDay+1|{{#time:z|{{CURRENTMONTHNAME}}-{{#expr:{{CURRENTDAY}}+1}}-{{CURRENTYEAR}}}}}}{{#vardefine:DYKNumber+1|{{#expr:({{#var:DYKDay+1}} mod {{#var:DYKTotal}}+1)}}}}{{#vardefine:DYKDay-1|{{#time:z|{{CURRENTMONTHNAME}}-{{#expr:{{CURRENTDAY}}-1}}-{{CURRENTYEAR}}}}}}{{#vardefine:DYKNumber-1|{{#expr:({{#var:DYKDay-1}} mod {{#var:DYKTotal}}+1)}}}}{{#var:DYK{{#var:DYKNumber-1}}}}<br>
{{#var:DYK{{#var:DYKNumber}}}}<br>
{{#var:DYK{{#var:DYKNumber}}}}<br>

Revision as of 22:06, 15 January 2010



This template allows for daily rotation through a list of "Did you know..." statements.
{{#vardefine:DYKTotal|?}} defines the total number of statements listed, where ? = the number of the last statement.
Each DYK statement is listed in the format #vardefine:DYK?|Text, where ? = the sequential position of the statement, and Text = the statement itself.