Help:Magic words: Difference between revisions

Content deleted Content added
m ce
Tag: Reverted
mNo edit summary
Tag: Reverted
Line 119:
! scope="row" id="ARTICLEPAGENAME" | <kbd>{<nowiki/>{ARTICLEPAGENAME}}</kbd>
| {{ARTICLEPAGENAME}}
| rowspan="2" | Title of the subject page associated with the current page. These are useful on talk pages (but see note about Category talk pages).
|-
! scope="row" id="SUBJECTPAGENAME" | <kbd>{<nowiki/>{SUBJECTPAGENAME}}</kbd>
Line 138:
! scope="row" id="ARTICLESPACE" | <kbd>{<nowiki/>{ARTICLESPACE}}</kbd>
| {{ARTICLESPACE}}
| rowspan="2" | On a talk page, the namespace part of the title of the associated subject page.
|-
! scope="row" id="SUBJECTSPACE" | <kbd>{<nowiki/>{SUBJECTSPACE}}</kbd>
Line 162:
{{crossref|printworthy=y|For more details on parser functions that relate to page names and namespaces, see: {{section link|meta:Help:Page name#Variables and parser functions}}.}}
{| class="wikitable plainrowheaders"
! scope="col" | Site variable
! scope="col" | Output
! scope="col" | Description
|-
! scope="row" id="SITENAME" | <kbd>{<nowiki/>{SITENAME}}</kbd>
| {{SITENAME}}
| Site name ([[mw:Manual:$wgSitename|$wgSitename]]).
|-
! scope="row" id="SERVER" | <kbd>{<nowiki/>{SERVER}}</kbd>
| {{SERVER}}
| Domain [[URL]] ([[mw:Manual:$wgServer|$wgServer]]).
|-
! scope="row" id="SERVERNAME" | <kbd>{<nowiki/>{SERVERNAME}}</kbd>
| {{SERVERNAME}}
| Subdomain and ___domain name.
|-
! scope="row" id="ARTICLEPATH" | <kbd>{<nowiki/>{ARTICLEPATH}}</kbd>
| {{ARTICLEPATH}}
| Relative article path ([[mw:Manual:$wgArticlePath|$wgArticlePath]]).
|-
! scope="row" id="SCRIPTPATH" | <kbd>{<nowiki/>{SCRIPTPATH}}</kbd>
| {{SCRIPTPATH}}
| Relative script path ([[mw:Manual:$wgScriptPath|$wgScriptPath]]).
|-
! scope="row" id="STYLEPATH" | <kbd>{<nowiki/>{STYLEPATH}}</kbd>
| {{STYLEPATH}}
| Relative style path ([[mw:Manual:$wgStylePath|$wgStylePath]]).
|-
! scope="row" id="CURRENTVERSION" | <kbd>{<nowiki/>{CURRENTVERSION}}</kbd>
| {{CURRENTVERSION}}
| Returns current MediaWiki version.
Line 198:
{| class="wikitable plainrowheaders"
|+ Current date and time
! scope="col" colspan="2" | Universal time
! scope="col" colspan="2" | Local-website time
|-
! scope="col" | Variable
Line 206:
! scope="col" | Output
|-
! scope="rowlrow" id="CURRENTYEAR" | <kbd>{<nowiki/>{CURRENTYEAR}}</kbd>
| {{CURRENTYEAR}}
! scope="rowlrow" id="LOCALYEAR" | <kbd>{<nowiki/>{LOCALYEAR}}</kbd>
| {{LOCALYEAR}}
|-
! scope="rowlrow" id="CURRENTMONTH" | <kbd>{<nowiki/>{CURRENTMONTH}}</kbd>
| {{CURRENTMONTH}}
! scope="rowlrow" id="LOCALMONTH" | <kbd>{<nowiki/>{LOCALMONTH}}</kbd>
| {{LOCALMONTH}}
|-
! scope="rowlrow" id="CURRENTMONTHNAME" | <kbd>{<nowiki/>{CURRENTMONTHNAME}}</kbd>
| {{CURRENTMONTHNAME}}
! scope="rowlrow" id="LOCALMONTHNAME" | <kbd>{<nowiki/>{LOCALMONTHNAME}}</kbd>
| {{LOCALMONTHNAME}}
|-
! scope="rowlrow" id="CURRENTMONTHABBREV" | <kbd>{<nowiki/>{CURRENTMONTHABBREV}}</kbd>
| {{CURRENTMONTHABBREV}}
! scope="rowlrow" id="LOCALMONTHABBREV" | <kbd>{<nowiki/>{LOCALMONTHABBREV}}</kbd>
| {{LOCALMONTHABBREV}}
|-
! scope="rowlrow" id="CURRENTDAY" | <kbd>{<nowiki/>{CURRENTDAY}}</kbd>{{efn|<kbd><nowiki>{{CURRENTDAY}}</nowiki></kbd>, <kbd><nowiki>{{LOCALDAY}}</nowiki></kbd> and <kbd><nowiki>{{REVISIONDAY}}</nowiki></kbd> return the day (e.g. "<samp>6</samp>"), whilst <kbd><nowiki>{{CURRENTDAY2}}</nowiki></kbd>, <kbd><nowiki>{{LOCALDAY2}}</nowiki></kbd> and <kbd><nowiki>{{REVISIONDAY2}}</nowiki></kbd> return the day with zero-padding (e.g. "<samp>06</samp>"). For all two-digit days (i.e. 10 to 31), these are the same.|name=daynote}}
| {{CURRENTDAY}}
! scope="rowlrow" id="LOCALDAY" | <kbd>{<nowiki/>{LOCALDAY}}</kbd>{{efn|name=daynote}}
| {{LOCALDAY}}
|-
! scope="rowlrow" id="CURRENTDAY2" | <kbd>{<nowiki/>{CURRENTDAY2}}</kbd>{{efn|name=daynote}}
| {{CURRENTDAY2}}
! scope="rowlrow" id="LOCALDAY2" | <kbd>{<nowiki/>{LOCALDAY2}}</kbd>{{efn|name=daynote}}
| {{LOCALDAY2}}
|-
! scope="rowlrow" id="CURRENTDOW" | <kbd>{<nowiki/>{CURRENTDOW}}</kbd>
| {{CURRENTDOW}}
! scope="rowlrow" id="LOCALDOW" | <kbd>{<nowiki/>{LOCALDOW}}</kbd>
| {{LOCALDOW}}
|-
! scope="rowlrow" id="CURRENTDAYNAME" | <kbd>{<nowiki/>{CURRENTDAYNAME}}</kbd>
| {{CURRENTDAYNAME}}
! scope="rowlrow" id="LOCALDAYNAME" | <kbd>{<nowiki/>{LOCALDAYNAME}}</kbd>
| {{LOCALDAYNAME}}
|-
! scope="rowlrow" id="CURRENTTIME" | <kbd>{<nowiki/>{CURRENTTIME}}</kbd>
| {{CURRENTTIME}}
! scope="rowlrow" id="LOCALTIME" | <kbd>{<nowiki/>{LOCALTIME}}</kbd>
| {{LOCALTIME}}
|-
! scope="rowlrow" id="CURRENTHOUR" | <kbd>{<nowiki/>{CURRENTHOUR}}</kbd>
| {{CURRENTHOUR}}
! scope="rowlrow" id="LOCALHOUR" | <kbd>{<nowiki/>{LOCALHOUR}}</kbd>
| {{LOCALHOUR}}
|-
! scope="rowlrow" id="CURRENTWEEK" | <kbd>{<nowiki/>{CURRENTWEEK}}</kbd>
| {{CURRENTWEEK}}
! scope="rowlrow" id="LOCALWEEK" | <kbd>{<nowiki/>{LOCALWEEK}}</kbd>
| {{LOCALWEEK}}
|-
! scope="rowlrow" id="CURRENTTIMESTAMP" | <kbd>{<nowiki/>{CURRENTTIMESTAMP}}</kbd>{{efn|name=formatstamp}}
| {{CURRENTTIMESTAMP}}
! scope="rowlrow" id="LOCALTIMESTAMP" | <kbd>{<nowiki/>{LOCALTIMESTAMP}}</kbd>{{efn|name=formatstamp}}
| {{LOCALTIMESTAMP}}
|}
Line 272:
! scope="col" | Output
|-
! scope="rowlrow" id="REVISIONDAY" | <kbd>{<nowiki/>{REVISIONDAY}}</kbd>{{efn|name=daynote}}
| {{REVISIONDAY}}
|-
! scope="rowlrow" id="REVISIONDAY2" | <kbd>{<nowiki/>{REVISIONDAY2}}</kbd>{{efn|name=daynote}}
| {{REVISIONDAY2}}
|-
! scope="rowlrow" id="REVISIONMONTH" | <kbd>{<nowiki/>{REVISIONMONTH}}</kbd>
| {{REVISIONMONTH}}
|-
! scope="rowlrow" id="REVISIONYEAR" | <kbd>{<nowiki/>{REVISIONYEAR}}</kbd>
| {{REVISIONYEAR}}
|-
! scope="rowlrow" id="REVISIONTIMESTAMP" | <kbd>{<nowiki/>{REVISIONTIMESTAMP}}</kbd>{{efn|These timestamp outputs can be formatted with {{tl|Format revisiontimestamp}} (aka {{tl|FRTS}}). For example, <nowiki>{{</nowiki>[[Template:FRTS|FRTS]]<nowiki>|{{REVISIONTIMESTAMP}}}}</nowiki> turns "{{REVISIONTIMESTAMP}}" into "{{FRTS|{{REVISIONTIMESTAMP}}}}".|name=formatstamp}}
| {{REVISIONTIMESTAMP}}
|-
! scope="rowlrow" id="REVISIONUSER" | <kbd>{<nowiki/>{REVISIONUSER}}</kbd>{{efn|This shows the last user to edit the page. There is no way to show the user viewing the page with magic words due to technical restrictions.}}
| {{REVISIONUSER}}
|}
Line 294:
|+ Wiki statistics
|-
! scope="rowlrow" id="NUMBEROFPAGES" | <kbd>{<nowiki/>{NUMBEROFPAGES}}</kbd>
| {{NUMBEROFPAGES}}
|-
! scope="rowlrow" id="NUMBEROFARTICLES" | <kbd>{<nowiki/>{NUMBEROFARTICLES}}</kbd>
| {{NUMBEROFARTICLES}}
|-
! scope="rowlrow" id="NUMBEROFFILES" | <kbd>{<nowiki/>{NUMBEROFFILES}}</kbd>
| {{NUMBEROFFILES}}
|-
! scope="rowlrow" id="NUMBEROFEDITS" | <kbd>{<nowiki/>{NUMBEROFEDITS}}</kbd>
| {{NUMBEROFEDITS}}
<!--disabled in MediaWiki (see talk page):
|-
! scope="rowlrow" id="NUMBEROFVIEWS | <kbd>{<nowiki/>{NUMBEROFVIEWS}}</kbd>
| {{NUMBEROFVIEWS}}
-->
|-
! scope="rowlrow" id="NUMBEROFUSERS" | <kbd>{<nowiki/>{NUMBEROFUSERS}}</kbd>
| {{NUMBEROFUSERS}}
|-
! scope="rowlrow" id="NUMBEROFADMINS" | <kbd>{<nowiki/>{NUMBEROFADMINS}}</kbd>
| {{NUMBEROFADMINS}}
|-
! scope="rowlrow" id="NUMBEROFACTIVEUSERS" | <kbd>{<nowiki/>{NUMBEROFACTIVEUSERS}}</kbd>
| {{NUMBEROFACTIVEUSERS}}
|}