Difference between revisions of "Help:Variables"
(incomplete) |
(creating) |
||
Line 1: | Line 1: | ||
+ | A '''variable''' is called in the form of a [[Help:Templates|template]] (one without parameters). Variables often refer to specific aspects of the respective page or the wiki, or to time and date variables. | ||
+ | |||
+ | {| class= "wikitable" | ||
+ | ! | ||
+ | |- | ||
+ | | Date || || | ||
+ | |- | ||
+ | | <tt><nowiki>{{CURRENTDAY}}</nowiki> || {{CURRENTDAY}} || Displays day | ||
+ | |- | ||
+ | | <tt><nowiki>{{CURRENTYEAR}}</nowiki> || {{CURRENTYEAR}} || Displays year | ||
+ | |- | ||
+ | | <tt><nowiki>{{CURRENTMONTHNAME}}</nowiki> || {{CURRENTMONTHNAME}} || Displays month | ||
+ | |- | ||
+ | | <tt><nowiki>{{CURRENTTIME}}</nowiki> || {{CURRENTTIME}} || Displays time | ||
+ | |- | ||
+ | | <tt><nowiki>{{CURRENTHOUR}}</nowiki> || {{CURRENTHOUR}} || Displays hour | ||
+ | ! | ||
+ | |- | ||
+ | | More || || | ||
+ | |- | ||
+ | | <tt><nowiki>{{PAGENAME}}</nowiki> || {{PAGENAME}} || Displays name of page (without namespace) | ||
+ | |} | ||
+ | |||
+ | [[Category:Tutorial]] | ||
{{incomplete|article}} | {{incomplete|article}} |
Revision as of 21:45, 26 October 2007
A variable is called in the form of a template (one without parameters). Variables often refer to specific aspects of the respective page or the wiki, or to time and date variables.
Date | |||
{{CURRENTDAY}} | 23 | Displays day | |
{{CURRENTYEAR}} | 2024 | Displays year | |
{{CURRENTMONTHNAME}} | November | Displays month | |
{{CURRENTTIME}} | 09:09 | Displays time | |
{{CURRENTHOUR}} | 09 | Displays hour | |
More | |||
{{PAGENAME}} | Variables | Displays name of page (without namespace) |