Help:Variables

From WaterWiki.net

Jump to: navigation, search

Constants

{{SITENAME}} WaterWiki.net
{{SERVER}} http://waterwiki.net
{{SERVERNAME}} waterwiki.net
{{CONTENTLANGUAGE}} en code of the site's default interface language (Template:H:mwg)

Depending on page

Word Example Explanation
This page "User:Anonymous user/sandbox/my page" page
"User talk:Anonymous user/sandbox/my page" page
{{PAGENAME}} 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}} Variables Anonymous_user/sandbox/my_page More URL-friendly percent encoded special characters (To use an articlename in an external link).
{{BASEPAGENAME}}
{{BASEPAGENAMEE}}
Variables
Variables
Anonymous user/sandbox
Anonymous_user/sandbox
[MW1.7+] The basename of a subpage ("Title/Other" on "Title/Other/Subtitle"), see Help:Link.
{{SUBPAGENAME}}
{{SUBPAGENAMEE}}
Variables
Variables
my page
my_page
[MW1.6+] Name of the current page, excluding parent pages ("Subtitle" on "Title/Other/Subtitle") in namespaces supporting subpages, see Help:Link.
{{NAMESPACE}}
{{NAMESPACEE}}
Help
Help
User
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
User_talk
{{FULLPAGENAME}}
{{FULLPAGENAMEE}}
Help:Variables
Help:Variables
User:Anonymous user/sandbox/my page
User:Anonymous_user/sandbox/my_page
[MW1.6+] Shorthands for NAMESPACE+PAGENAME
User talk:Anonymous user/sandbox/my page
User_talk:Anonymous_user/sandbox/my_page
{{TALKSPACE}}
{{TALKSPACEE}}
Help talk
Help_talk
User talk
User_talk
[MW1.7+] Name of next odd namespace (e.g. 4 => 5)
{{SUBJECTSPACE}}
{{SUBJECTSPACEE}}
Help
Help
User
User
[MW1.7+] Name of last even namespace (e.g. 5 => 4)
{{ARTICLESPACE}}
{{ARTICLESPACEE}}
Help
Help
User
User
[MW1.7+] An alias for SUBJECTSPACE(E)
{{TALKPAGENAME}}
{{TALKPAGENAMEE}}
Help talk:Variables
Help_talk:Variables
User talk:Anonymous user/sandbox/my page
User_talk:Anonymous_user/sandbox/my_page
[MW1.7+] FULLPAGENAME in its TALKSPACE
{{SUBJECTPAGENAME}}
{{SUBJECTPAGENAMEE}}
Help:Variables
Help:Variables
User:Anonymous user/sandbox/my page
User:Anonymous_user/sandbox/my_page
[MW1.7+] FULLPAGENAME in its SUBJECTSPACE
{{ARTICLEPAGENAME}}
{{ARTICLEPAGENAMEE}}
Help:Variables
Help:Variables
User:Anonymous user/sandbox/my page
User:Anonymous_user/sandbox/my_page
[MW1.7+] An alias for SUBJECTPAGENAME(E)
{{REVISIONID}} 29261 N/A [MW1.5+] The unique identifying number of a page, see Help:Diff. Note that when editing a page, this value is null.
{{REVISIONDAY}} 29 N/A [MW1.8+] The day on which the page was last modified.
{{REVISIONDAY2}} 29 N/A [MW1.8+] The day on which the page was last modified, but with a leading zero (01 .. 31).
{{REVISIONMONTH}} 1 N/A [MW1.8+] The month in which the page was last modified.
{{REVISIONYEAR}} 2009 N/A [MW1.8+] The year in which the page was last modified.
{{REVISIONTIMESTAMP}} 20090129135936 N/A [MW1.8+] ISO 8601 time stamp, indicating when the page was last modified.
{{SITENAME}} WaterWiki.net Value of Template:H:mwg.
{{SERVER}} http://waterwiki.net Value of Template:H:mwg
{{SCRIPTPATH}} [MW1.5+] Template:H:mwg
{{SERVERNAME}} waterwiki.net [MW1.5+] Template:H:mwg
Template:-


For a complete list of variables and further help visit WikiMedia-Help