Difference between revisions of "Help:Variables"
From Twinsuniverse
(New help page; copied from Wikipedia) |
J McKalling (Talk | contribs) m |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Help}} | + | {{Infobox Help}}A variable is a predefined template. This page describes the available parameters on the Twinsuniverse. |
− | + | ||
− | A variable is a predefined template. This page describes the available parameters | + | |
==Page names and page variables== | ==Page names and page variables== | ||
Line 95: | Line 93: | ||
| <nowiki>{{NUMBEROFADMINS}}</nowiki><br><nowiki>{{NUMBEROFADMINS:R}}</nowiki> || {{NUMBEROFADMINS}}<br>{{NUMBEROFADMINS:R}} || Number of administrators and system operators | | <nowiki>{{NUMBEROFADMINS}}</nowiki><br><nowiki>{{NUMBEROFADMINS:R}}</nowiki> || {{NUMBEROFADMINS}}<br>{{NUMBEROFADMINS:R}} || Number of administrators and system operators | ||
|} | |} | ||
− | |||
− |
Latest revision as of 12:14, 8 December 2012
Help Contents | |
---|---|
Page names and page variables
Variable | Result | Explanation |
---|---|---|
{{PAGENAME}} | Variables | The name of the page |
{{PAGENAMEE}} | Variables | The page name with special characters encoded. For example, in the article Tralü, the result is "Tral%C3%BC" |
{{SUBPAGENAME}} {{SUBPAGENAMEE}} |
Variables | If the page is a sub-page (e.g. User:Morshem/Related threads junkyard), only the page's name will be displayed, without the root |
{{BASEPAGENAME}} {{BASEPAGENAMEE}} |
Variables | The root name of the page, without the page's title |
{{NAMESPACE}} {{NAMESPACEE}} |
Help | The namespace of the page |
{{FULLPAGENAME}} {{FULLPAGENAMEE}} |
Help:Variables | Namespace+Page name |
{{TALKSPACE}} {{TALKSPACEE}} |
Help talk Help_talk |
The talk-space of the current namespace |
{{SUBJECTSPACE}} {{SUBJECTSPACEE}} |
Help | In talk pages, the name of the current namespace |
{{TALKPAGENAME}} {{TALKPAGENAMEE}} |
Help talk:Variables Help_talk:Variables |
The talk page of the current page |
{{SUBJECTPAGENAME}} {{SUBJECTPAGENAMEE}} |
Help:Variables | FULLPAGENAME in its SUBJECTSPACE |
{{REVISIONID}} | 3477 | The id number of the current version of the page (does not show in previews) |
{{REVISIONDAY}} | 8 | The day of the month the page was last modified |
{{REVISIONDAY2}} | 08 | The day of the month the page was last modified, with a leading zero |
{{REVISIONMONTH}} | 12 | The month the page was last modified |
{{REVISIONYEAR}} | 2012 | The year the page was last modified |
{{REVISIONTIMESTAMP}} | 20121208121457 | A timestamp for the last modification time |
{{SITENAME}} | Twinsuniverse | The name of the site |
{{SERVER}} | https://twinsuniverse.xesf.net | The base URL of the server |
{{SERVERNAME}} | twinsuniverse.xesf.net | The server name without http:// |
Time
Variable | Result | Explanation |
---|---|---|
{{CURRENTDAY}} | 11 | The current day of the month |
{{CURRENTDAY2}} | 11 | The current day of the month with a leading zero |
{{CURRENTDAYNAME}} | Wednesday | Name of the current day |
{{CURRENTDOW}} | 3 | Number of the current day, where Sunday=0 |
{{CURRENTMONTH}} | 12 | The current month with a leading zero |
{{CURRENTMONTHABBREV}} | Dec | The current month in abbreviated form (e.g. Jan, Feb) |
{{CURRENTMONTHNAME}} | December | The full name of the current month |
{{CURRENTTIME}} | 21:16 | The current server time |
{{CURRENTHOUR}} | 21 | The current hour |
{{CURRENTWEEK}} | 50 | The current week of the year |
{{CURRENTYEAR}} | 2024 | The current year |
{{CURRENTTIMESTAMP}} | 20241211211633 | A time stamp for the current time |
Statistics
In all these cases, adding ":R" returns the same result, only without separating commas.
{{CURRENTVERSION}} | 1.23.1 | The current MediaWiki version installed |
{{NUMBEROFARTICLES}} {{NUMBEROFARTICLES:R}} |
246 246 |
The total number of articles in the database |
{{NUMBEROFPAGES}} {{NUMBEROFPAGES:R}} |
2,134 2134 |
The total number of pages in the database, including all those not in the main space |
{{NUMBEROFFILES}} {{NUMBEROFFILES:R}} |
990 990 |
The number of files on the server |
{{NUMBEROFUSERS}} {{NUMBEROFUSERS:R}} |
5 5 |
The number of registered users |
{{NUMBEROFADMINS}} {{NUMBEROFADMINS:R}} |
3 3 |
Number of administrators and system operators |