https://geniimagazine.com/wiki/index.php?title=Help:Variables&feed=atom&action=history
Help:Variables - Revision history
2024-03-28T09:25:42Z
Revision history for this page on the wiki
MediaWiki 1.25.5
https://geniimagazine.com/wiki/index.php?title=Help:Variables&diff=50986&oldid=prev
Jpecore: /* Page names */
2012-01-29T01:06:20Z
<p><span dir="auto"><span class="autocomment">Page names</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 01:06, 29 January 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="L197" >Line 197:</td>
<td colspan="2" class="diff-lineno">Line 197:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| <nowiki>{{BASEPAGENAME}}</nowiki></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| <nowiki>{{BASEPAGENAME}}</nowiki></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| {{BASEPAGENAME}}</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| {{BASEPAGENAME}}</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>| The namespace and page title excluding the current <del class="diffchange diffchange-inline">[[Help:</del>subpage<del class="diffchange diffchange-inline">|subpage]] </del>("Title" on "Title/foo")</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>| The namespace and page title excluding the current subpage ("Title" on "Title/foo")</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| <nowiki>{{PAGENAME}}</nowiki></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| <nowiki>{{PAGENAME}}</nowiki></div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="L205" >Line 205:</td>
<td colspan="2" class="diff-lineno">Line 205:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| <nowiki>{{SUBPAGENAME}}</nowiki></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| <nowiki>{{SUBPAGENAME}}</nowiki></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| {{SUBPAGENAME}}</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| {{SUBPAGENAME}}</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>| The <del class="diffchange diffchange-inline">[[Help:</del>subpage<del class="diffchange diffchange-inline">|subpage]] </del>title ("foo" on "Title/foo")</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>| The subpage title ("foo" on "Title/foo")</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| <nowiki>{{SUBJECTPAGENAME}}</nowiki></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| <nowiki>{{SUBJECTPAGENAME}}</nowiki></div></td></tr>
</table>
Jpecore
https://geniimagazine.com/wiki/index.php?title=Help:Variables&diff=167&oldid=prev
Genii at 04:53, 16 September 2007
2007-09-16T04:53:36Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 04:53, 16 September 2007</td>
</tr><tr><td colspan="2" class="diff-lineno" id="L1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">{{PD Help Page}}</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>MediaWiki '''variables''' are strings of text that output as information such as time, site details, or page names.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>MediaWiki '''variables''' are strings of text that output as information such as time, site details, or page names.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td colspan="2" class="diff-lineno" id="L313" >Line 313:</td>
<td colspan="2" class="diff-lineno">Line 311:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">== Custom variables ==</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Help]]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">MediaWiki also supports custom variables defined as part of extensions or specific to a particular installation.  For example, some installations  might find it helpful to have a variable that identifies the name of the sponsoring organization or the portion of the wiki URL that precedes the title if it is liable to change or more complex than <code><nowiki>http://{{SERVERNAME}}</nowiki></code>.</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">For more information, please see [[Manual:Variables]].</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">==External links==</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">{{meta|Help:Variable}}</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">{{Languages|Help:Variables}}</del></div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Help<del class="diffchange diffchange-inline">|Variables</del>]]</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div></div></td></tr>
</table>
Genii
https://geniimagazine.com/wiki/index.php?title=Help:Variables&diff=106&oldid=prev
Genii: 1 revision(s)
2007-09-13T03:22:12Z
<p>1 revision(s)</p>
<table class='diff diff-contentalign-left'>
<tr style='vertical-align: top;'>
<td colspan='1' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black; text-align: center;">Revision as of 03:22, 13 September 2007</td>
</tr><tr><td colspan='2' style='text-align: center;'><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
Genii
https://geniimagazine.com/wiki/index.php?title=Help:Variables&diff=105&oldid=prev
Egfrank: removed from Category:Variables
2007-09-07T13:51:31Z
<p>removed from Category:Variables</p>
<p><b>New page</b></p><div>{{PD Help Page}}<br />
<br />
MediaWiki '''variables''' are strings of text that output as information such as time, site details, or page names.<br />
<br />
==Parsing==<br />
The syntax of most variables is similar to [[Help:Templates|templates]], but capitalized to help avoid conflicts. If a template has the same name and case as a variable, the variable will be used. Usage of the template can be forced by adding the "msg:" modifier (for example, "<code><nowiki>{{msg:CURRENTYEAR}}</nowiki></code>").<br />
<br />
Page-dependent variables will return data about the currently-viewed page, regardless of whether the variable is in the page code or a transcluded template.<br />
<br />
==Variables==<br />
===Date & time===<br />
The following variables return the current date and time according to the user's timezone [[Special:Preferences|preferences]], defaulting to the UTC timezone.<br />
<br />
Due to MediaWiki and browser caching, these variables frequently show when the page was ''cached'' rather than the current time.<br />
<br />
{| {{prettytable}}<br />
|-<br />
!{{Hl2}}| Variable<br />
!{{Hl2}}| Output<br />
!{{Hl2}}| Description<br />
|-<br />
|colspan="3"| '''Year'''<br />
|-<br />
| <nowiki>{{CURRENTYEAR}}</nowiki><br />
| {{CURRENTYEAR}}<br />
| Year<br />
|-<br />
|colspan="3"| '''Month'''<br />
|-<br />
<br />
| <nowiki>{{CURRENTMONTH}}</nowiki> <br />
| {{CURRENTMONTH}}<br />
| Month (zero-padded number)<br />
|-<br />
| <nowiki>{{CURRENTMONTHNAME}}</nowiki><br />
| {{CURRENTMONTHNAME}}<br />
| Month (name)<br />
|-<br />
| <nowiki>{{CURRENTMONTHNAMEGEN}}</nowiki><br />
| {{CURRENTMONTHNAMEGEN}}<br />
| Month ([http://en.wikipedia.org/wiki/genitive genitive form])<br />
|-<br />
| <nowiki>{{CURRENTMONTHABBREV}}</nowiki><br />
| {{CURRENTMONTHABBREV}}<br />
| Month (abbreviation)<br />
|-<br />
|colspan="3"| '''Day'''<br />
|-<br />
| <nowiki>{{CURRENTDAY}}</nowiki><br />
| {{CURRENTDAY}}<br />
| Day of the month (unpadded number)<br />
|-<br />
| <nowiki>{{CURRENTDAY2}}</nowiki><br />
| {{CURRENTDAY2}}<br />
| Day of the month (zero-padded number)<br />
|-<br />
| <nowiki>{{CURRENTDOW}}</nowiki><br />
| {{CURRENTDOW}}<br />
| Day of the week (unpadded number)<br />
|-<br />
| <nowiki>{{CURRENTDAYNAME}}</nowiki><br />
| {{CURRENTDAYNAME}}<br />
| Day of the week (name)<br />
|-<br />
|colspan="3"| '''Time'''<br />
|-<br />
| <nowiki>{{CURRENTTIME}}</nowiki><br />
| {{CURRENTTIME}}<br />
| Time (24-hour HH:mm format)<br />
|-<br />
| <nowiki>{{CURRENTHOUR}}</nowiki><br />
| {{CURRENTHOUR}}<br />
| Hour (24-hour zero-padded number)<br />
|-<br />
|colspan="3"| '''Other'''<br />
|-<br />
| <nowiki>{{CURRENTWEEK}}</nowiki><br />
| {{CURRENTWEEK}}<br />
| Week (number)<br />
|-<br />
| <nowiki>{{CURRENTTIMESTAMP}}</nowiki><br />
| {{CURRENTTIMESTAMP}}<br />
| ISO 8601 time stamp<br />
|}<br />
<br />
The following variables do the same as the above, but using the site's local timezone instead of user preferences and UTC:<br />
* <nowiki>{{LOCALYEAR}}</nowiki><br />
* <nowiki>{{LOCALMONTH}}</nowiki><br />
* <nowiki>{{LOCALMONTHNAME}}</nowiki><br />
* <nowiki>{{LOCALMONTHABBREV}}</nowiki><br />
* <nowiki>{{LOCALDAY}}</nowiki><br />
* <nowiki>{{LOCALDAY2}}</nowiki><br />
* <nowiki>{{LOCALDOW}}</nowiki><br />
* <nowiki>{{LOCALDAYNAME}}</nowiki><br />
* <nowiki>{{LOCALTIME}}</nowiki><br />
* <nowiki>{{LOCALHOUR}}</nowiki><br />
* <nowiki>{{LOCALWEEK}}</nowiki><br />
* <nowiki>{{LOCALTIMESTAMP}}</nowiki><br />
<br />
===Statistics and technical details===<br />
====Site====<br />
{| {{prettytable}}<br />
|-<br />
!{{Hl2}}| Variable<br />
!{{Hl2}}| Output<br />
!{{Hl2}}| Description<br />
|-<br />
| <nowiki>{{SITENAME}}</nowiki><br />
| {{SITENAME}}<br />
| Name of the wiki ({{mediawiki|Manual:$wgSitename|$wgSitename}})<br />
|-<br />
| <nowiki>{{CONTENTLANGUAGE}}</nowiki><br />
| {{CONTENTLANGUAGE}}<br />
| Default interface language ({{mediawiki|Manual:$wgLanguageCode|$wgLanguageCode}})<br />
|-<br />
| <nowiki>{{NUMBEROFPAGES}}</nowiki><br />
| {{NUMBEROFPAGES}}<br />
| Number of wiki pages<br />
|-<br />
| <nowiki>{{NUMBEROFARTICLES}}</nowiki><br />
| {{NUMBEROFARTICLES}}<br />
| Number of pages in main namespace<br />
|-<br />
| <nowiki>{{NUMBEROFFILES}}</nowiki><br />
| {{NUMBEROFFILES}}<br />
| Number of uploaded files<br />
|}<br />
<br />
====Latest revision to a page====<br />
The following variables return data about the '''latest edit to the current page''', even if viewing an older version of the page.<br />
<br />
{| {{prettytable}}<br />
|-<br />
!{{Hl2}}| Variable<br />
!{{Hl2}}| Output<br />
!{{Hl2}}| Description<br />
|-<br />
| <nowiki>{{REVISIONID}}</nowiki><br />
| {{REVISIONID}}<br />
| Unique ID<br />
|-<br />
| <nowiki>{{REVISIONDAY}}</nowiki><br />
| {{REVISIONDAY}}<br />
| Day edit was made (unpadded number)<br />
|-<br />
| <nowiki>{{REVISIONDAY2}}</nowiki><br />
| {{REVISIONDAY2}}<br />
| Day edit was made (zero-padded number)<br />
|-<br />
| <nowiki>{{REVISIONMONTH}}</nowiki><br />
| {{REVISIONMONTH}}<br />
| Month edit was made (unpadded number)<br />
|-<br />
| <nowiki>{{REVISIONYEAR}}</nowiki><br />
| {{REVISIONYEAR}}<br />
| Year edit was made<br />
|-<br />
| <nowiki>{{REVISIONTIMESTAMP}}</nowiki><br />
| {{REVISIONTIMESTAMP}}<br />
| Timestamp as of time of edit<br />
|}<br />
<br />
===URL data===<br />
====URLs====<br />
{| {{prettytable}}<br />
|-<br />
!{{Hl2}}| Variable<br />
!{{Hl2}}| Output<br />
!{{Hl2}}| Description<br />
|-<br />
| <nowiki>{{SERVER}}</nowiki><br />
| {{SERVER}}<br />
| domain URL ({{mediawiki|Manual:$wgServer|$wgServer}})<br />
|-<br />
| <nowiki>{{SERVERNAME}}</nowiki><br />
| {{SERVERNAME}}<br />
| domain name ({{mediawiki|Manual:$wgServerName|$wgServerName}})<br />
|-<br />
| <nowiki>{{SCRIPTPATH}}</nowiki><br />
| {{SCRIPTPATH}}<br />
| relative script path ({{mediawiki|Manual:$wgScriptPath|$wgScriptPath}})<br />
|-<br />
| <nowiki>{{localurl:</nowiki>''pagename''<nowiki>}}</nowiki><br /><nowiki>{{localurl:pagename|</nowiki>''query string''<nowiki>}}</nowiki><br />
| {{localurl:pagename}}<br />{{localurl:pagename|query string}}<br />
| relative path to title<br />
|}<br />
<br />
====Page names====<br />
{| {{prettytable}}<br />
|-<br />
!{{Hl2}}| Variable<br />
!{{Hl2}}| Output<br />
!{{Hl2}}| Description<br />
|-<br />
| <nowiki>{{FULLPAGENAME}}</nowiki><br />
| {{FULLPAGENAME}}<br />
| Namespace and page title<br />
|-<br />
| <nowiki>{{BASEPAGENAME}}</nowiki><br />
| {{BASEPAGENAME}}<br />
| The namespace and page title excluding the current [[Help:subpage|subpage]] ("Title" on "Title/foo")<br />
|-<br />
| <nowiki>{{PAGENAME}}</nowiki><br />
| {{PAGENAME}}<br />
| Page title<br />
|-<br />
| <nowiki>{{SUBPAGENAME}}</nowiki><br />
| {{SUBPAGENAME}}<br />
| The [[Help:subpage|subpage]] title ("foo" on "Title/foo")<br />
|-<br />
| <nowiki>{{SUBJECTPAGENAME}}</nowiki><br />
| {{SUBJECTPAGENAME}}<br />
| The title of the associated content page.<br />
|-<br />
| <nowiki>{{TALKPAGENAME}}</nowiki><br />
| {{TALKPAGENAME}}<br />
| The title of the associated talk page.<br />
|}<br />
<br />
The following are URL-encoded equivalents:<br />
* <nowiki>{{FULLPAGENAMEE}}</nowiki><br />
* <nowiki>{{PAGENAMEE}}</nowiki><br />
* <nowiki>{{BASEPAGENAMEE}}</nowiki><br />
* <nowiki>{{SUBPAGENAMEE}}</nowiki><br />
* <nowiki>{{SUBJECTPAGENAMEE}}</nowiki><br />
* <nowiki>{{TALKPAGENAMEE}}</nowiki><br />
<br />
====Namespaces====<br />
{| {{prettytable}}<br />
|-<br />
!{{Hl2}}| Variable<br />
!{{Hl2}}| Output<br />
!{{Hl2}}| Description<br />
|-<br />
| <nowiki>{{NAMESPACE}}</nowiki><br />
| {{NAMESPACE}}<br />
| Namespace (name)<br />
|-<br />
| <nowiki>{{SUBJECTSPACE}}</nowiki><br />
| {{SUBJECTSPACE}}<br />
| Name of the associated content namespace<br />
|-<br />
| <nowiki>{{TALKSPACE}}</nowiki><br />
| {{TALKSPACE}}<br />
| Name of the associated talk namespace<br />
|}<br />
<br />
The following are URL-encoded equivalents:<br />
* <nowiki>{{NAMESPACEE}}</nowiki><br />
* <nowiki>{{SUBJECTSPACEE}}</nowiki><br />
* <nowiki>{{TALKSPACEE}}</nowiki><br />
<br />
<code><nowiki>{{ns:}}</nowiki></code> returns the localized namespace name for that number of constant. The default values are:<br />
<br />
{| {{prettytable}}<br />
|-<br />
!{{Hl2}}| Usage<br />
!{{Hl2}}| Output<br />
|-<br />
| <nowiki>{{ns:-2}} or {{ns:Media}}</nowiki><br />
| {{ns:-2}}<br />
|-<br />
| <nowiki>{{ns:-1}} or {{ns:Special}}</nowiki><br />
| {{ns:-1}}<br />
|-<br />
| <nowiki>{{ns:0}} or {{ns:Main}}</nowiki><br />
| {{ns:0}}<br />
|-<br />
| <nowiki>{{ns:1}} or {{ns:Talk}}</nowiki><br />
| {{ns:1}}<br />
|-<br />
| <nowiki>{{ns:2}} or {{ns:User}}</nowiki><br />
| {{ns:2}}<br />
|-<br />
| <nowiki>{{ns:3}} or {{ns:User_talk}}</nowiki><br />
| {{ns:3}}<br />
|-<br />
| <nowiki>{{ns:4}} or {{ns:Project}}</nowiki><br />
| {{ns:4}}<br />
|-<br />
| <nowiki>{{ns:5}} or {{ns:Project_talk}}</nowiki><br />
| {{ns:5}}<br />
|-<br />
| <nowiki>{{ns:6}} or {{ns:Image}}</nowiki><br />
| {{ns:6}}<br />
|-<br />
| <nowiki>{{ns:7}} or {{ns:Image_talk}}</nowiki><br />
| {{ns:7}}<br />
|-<br />
| <nowiki>{{ns:8}} or {{ns:MediaWiki}}</nowiki><br />
| {{ns:8}}<br />
|-<br />
| <nowiki>{{ns:9}} or {{ns:MediaWiki_talk}}</nowiki><br />
| {{ns:9}}<br />
|-<br />
| <nowiki>{{ns:10}} or {{ns:Template}}</nowiki><br />
| {{ns:10}}<br />
|-<br />
| <nowiki>{{ns:11}} or {{ns:Template_talk}}</nowiki><br />
| {{ns:11}}<br />
|-<br />
| <nowiki>{{ns:12}} or {{ns:Help}}</nowiki><br />
| {{ns:12}}<br />
|-<br />
| <nowiki>{{ns:13}} or {{ns:Help_talk}}</nowiki><br />
| {{ns:13}}<br />
|-<br />
| <nowiki>{{ns:14}} or {{ns:Category}}</nowiki><br />
| {{ns:14}}<br />
|-<br />
| <nowiki>{{ns:15}} or {{ns:Category_talk}}</nowiki><br />
| {{ns:15}}<br />
|}<br />
<br />
== Custom variables ==<br />
MediaWiki also supports custom variables defined as part of extensions or specific to a particular installation. For example, some installations might find it helpful to have a variable that identifies the name of the sponsoring organization or the portion of the wiki URL that precedes the title if it is liable to change or more complex than <code><nowiki>http://{{SERVERNAME}}</nowiki></code>.<br />
<br />
<br />
For more information, please see [[Manual:Variables]].<br />
<br />
==External links==<br />
{{meta|Help:Variable}}<br />
<br />
{{Languages|Help:Variables}}<br />
<br />
[[Category:Help|Variables]]</div>
Egfrank