Template:H:Page name variables
![]() | This template is being considered for deletion at requests for deletion. Please see the discussion there. If this page matches one of the criteria for speedy deletion, use{{delete|reason}} instead.Please consider notifying the author and/or the principal contributors of this template using {{subst:RfD notice|Template:H:Page name variables}} --~~~~ on their talk pages. You may use {{subst:RFD2|Template:H:Page name variables|Reasons here. --~~~~}} under the appropriate section of Meta:Requests for deletion to start the deletion discussion. |
Word | Example | Explanation | |
---|---|---|---|
This page | "User:Anonymous user/sandbox/my page " page
| ||
"User talk:Anonymous user/sandbox/my page " page
| |||
{{PAGENAME}} | H:Page name variables
|
Anonymous user/sandbox/my page
|
Returns the name of the current page, including all levels (Title/Subtitle). This does not include the name of the namespace. |
{{PAGENAMEE}} | H:Page_name_variables
|
Anonymous_user/sandbox/my_page
|
More URL-friendly percent encoded special characters (to use an article name in an external link). |
{{BASEPAGENAME}} {{BASEPAGENAMEE}} |
H:Page name variables
|
Anonymous user/sandbox
|
[MW 1.7+] The basename of a subpage ("Title/Other" on "Title/Other/Subtitle"), see Help:Link. |
{{SUBPAGENAME}} {{SUBPAGENAMEE}} |
H:Page name variables
|
my page
|
[MW 1.6+] Name of the current page, excluding parent pages ("Subtitle" on "Title/Other/Subtitle") in namespaces supporting subpages, see Help:Link. |
{{NAMESPACE}} {{NAMESPACEE}} |
Template
|
User
|
Returns the name of the namespace the current page resides in. Note that this returns an empty string for the main (article) space. |
User talk
| |||
{{NAMESPACENUMBER}} | 10
|
2
|
Returns the number of the namespace the current page resides in. This makes templates more portable between various languages. For example, File: on the German Wikipedia is "Datei:", but the file namespace number on English, German and any other Wikimedia wiki is always 6. |
3
| |||
{{FULLPAGENAME}} {{FULLPAGENAMEE}} |
Template:H:Page name variables
|
User:Anonymous user/sandbox/my page
|
[MW 1.6+] Shorthands for NAMESPACE+PAGENAME. |
User talk:Anonymous user/sandbox/my page
| |||
{{TALKSPACE}} {{TALKSPACEE}} |
Template talk
|
User talk
|
[MW 1.7+] Name of next odd namespace (e.g. 4 ⇒ 5). |
{{SUBJECTSPACE}} {{SUBJECTSPACEE}} |
Template
|
User
|
[MW 1.7+] Name of last even namespace (e.g. 5 ⇒ 4). |
{{ARTICLESPACE}} {{ARTICLESPACEE}} |
Template
|
User
|
[MW 1.7+] An alias for SUBJECTSPACE(E). |
{{TALKPAGENAME}} {{TALKPAGENAMEE}} |
Template talk:H:Page name variables
|
User talk:Anonymous user/sandbox/my page
|
[MW 1.7+] FULLPAGENAME in its TALKSPACE. |
{{SUBJECTPAGENAME}} {{SUBJECTPAGENAMEE}} |
Template:H:Page name variables
|
User:Anonymous user/sandbox/my page
|
[MW 1.7+] FULLPAGENAME in its SUBJECTSPACE. |
{{ARTICLEPAGENAME}} {{ARTICLEPAGENAMEE}} |
Template:H:Page name variables
|
User:Anonymous user/sandbox/my page
|
[MW 1.7+] An alias for SUBJECTPAGENAME(E). |
{{REVISIONDAY}} | 26
|
N/A | [MW 1.8+] The day on which the page was last modified. |
{{REVISIONDAY2}} | 26
|
N/A | [MW 1.8+] The day on which the page was last modified, but with a leading zero (01 … 31). |
{{REVISIONMONTH}} | 03
|
N/A | [MW 1.8+] The month in which the page was last modified. |
{{REVISIONYEAR}} | 2023
|
N/A | [MW 1.8+] The year in which the page was last modified. |
{{REVISIONTIMESTAMP}} | 20230326163443
|
N/A | [MW 1.8+] ISO 8601 time stamp, indicating when the page was last modified. |
{{SITENAME}} | Meta
|
Value of $wgSitename. | |
{{SERVER}} | //meta.wikimedia.org | Value of $wgServer. | |
{{SCRIPTPATH}} | /w
|
[MW 1.5+] $wgScriptPath. | |
{{SERVERNAME}} | meta.wikimedia.org
|
[MW 1.5+] $wgServerName. |
Note to future editors: this page is referenced from help pages so that all references to this table can use the same information so that different help pages that reference this table don't have different information.