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 22: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}} 6 Displays day
{{CURRENTYEAR}} 2024 Displays year
{{CURRENTMONTHNAME}} June Displays month
{{CURRENTTIME}} 20:46 Displays time
{{CURRENTHOUR}} 20 Displays hour
More
{{PAGENAME}} Variables Displays name of page (without namespace) {{PAGENAMEE}} Variables Same as PAGENAME, but formatted for an URL.

See also

Template:Incomplete