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}} | 13 | Displays day | |||
| {{CURRENTYEAR}} | 2025 | Displays year | |||
| {{CURRENTMONTHNAME}} | November | Displays month | |||
| {{CURRENTTIME}} | 16:55 | Displays time | |||
| {{CURRENTHOUR}} | 16 | Displays hour | |||
| More | |||||
| {{PAGENAME}} | Variables | Displays name of page (without namespace) | {{PAGENAMEE}} | Variables | Same as PAGENAME, but formatted for an URL. |