Difference between revisions of "Help:Variables"
(creating) |
m (maybe I should just copy meta here?) |
||
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. | 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" | + | {| class= "wikitable" style="border:1px black solid" |
! | ! | ||
|- | |- | ||
| Date || || | | Date || || | ||
|- | |- | ||
− | | <tt><nowiki>{{CURRENTDAY}}</nowiki> || {{CURRENTDAY}} || Displays day | + | | <tt><nowiki>{{CURRENTDAY}}</nowiki></tt> || {{CURRENTDAY}} || Displays day |
|- | |- | ||
− | | <tt><nowiki>{{CURRENTYEAR}}</nowiki> || {{CURRENTYEAR}} || Displays year | + | | <tt><nowiki>{{CURRENTYEAR}}</nowiki></tt> || {{CURRENTYEAR}} || Displays year |
|- | |- | ||
− | | <tt><nowiki>{{CURRENTMONTHNAME}}</nowiki> || {{CURRENTMONTHNAME}} || Displays month | + | | <tt><nowiki>{{CURRENTMONTHNAME}}</nowiki></tt> || {{CURRENTMONTHNAME}} || Displays month |
|- | |- | ||
− | | <tt><nowiki>{{CURRENTTIME}}</nowiki> || {{CURRENTTIME}} || Displays time | + | | <tt><nowiki>{{CURRENTTIME}}</nowiki></tt> || {{CURRENTTIME}} || Displays time |
|- | |- | ||
− | | <tt><nowiki>{{CURRENTHOUR}}</nowiki> || {{CURRENTHOUR}} || Displays hour | + | | <tt><nowiki>{{CURRENTHOUR}}</nowiki></tt> || {{CURRENTHOUR}} || Displays hour |
! | ! | ||
|- | |- | ||
| More || || | | More || || | ||
|- | |- | ||
− | | <tt><nowiki>{{PAGENAME}}</nowiki> || {{PAGENAME}} || Displays name of page (without namespace) | + | | <tt><nowiki>{{PAGENAME}}</nowiki></tt> || {{PAGENAME}} || Displays name of page (without namespace) |
|} | |} | ||
+ | |||
+ | == See also == | ||
+ | *[[http://meta.wikimedia.org/wiki/Help:Variable|MetaWiki]] | ||
[[Category:Tutorial]] | [[Category:Tutorial]] | ||
{{incomplete|article}} | {{incomplete|article}} |
Revision as of 21:47, 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}} | 25 | Displays day | |
{{CURRENTYEAR}} | 2024 | Displays year | |
{{CURRENTMONTHNAME}} | November | Displays month | |
{{CURRENTTIME}} | 11:56 | Displays time | |
{{CURRENTHOUR}} | 11 | Displays hour | |
More | |||
{{PAGENAME}} | Variables | Displays name of page (without namespace) |
See also
- [[1]]