Difference between revisions of "Help:Variables"
(→See also: correct link) |
(add a variable) |
||
Line 20: | Line 20: | ||
|- | |- | ||
| <tt><nowiki>{{PAGENAME}}</nowiki></tt> || {{PAGENAME}} || Displays name of page (without namespace) | | <tt><nowiki>{{PAGENAME}}</nowiki></tt> || {{PAGENAME}} || Displays name of page (without namespace) | ||
+ | | <tt><nowiki>{{PAGENAMEE}}</nowiki></tt> || {{PAGENAMEE}} || Same as PAGENAME, but formatted for an URL. | ||
|} | |} | ||
Revision as of 21:58, 23 November 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}} | 22 | Displays day | |||
{{CURRENTYEAR}} | 2024 | Displays year | |||
{{CURRENTMONTHNAME}} | November | Displays month | |||
{{CURRENTTIME}} | 09:25 | Displays time | |||
{{CURRENTHOUR}} | 09 | Displays hour | |||
More | |||||
{{PAGENAME}} | Variables | Displays name of page (without namespace) | {{PAGENAMEE}} | Variables | Same as PAGENAME, but formatted for an URL. |