From TheBestLinks.com
This is a copy of
m:Help:Variable using Wikipedia-specific templates. Don't edit this page, except to replace the contents with the current version of that master page (please do; first change {{hi}} into {{hh}} in the master page if that has not been done yet). To make changes applicable on all projects, edit the master page; to change Wikipedia-specific content, edit the templates; to make demo's work, copy templates and images to this project. -
Edit this template (http://www.thebestlinks.com/Template__3A__NaodW29__MM__item1c876de754c3e7d7-bp-action-v-edit-ep-.html)
This is a list of variables that can be used in the wikitext. The way they are rendered depends on the time, on the project, or on the page in which it occurs.
On the left is the variable, on the right how it is rendered at this time, in this project, on this page.
Constant, only depending on the project and parameters
| {{ns:-2}} or {{ns:Media}}
| Media
|
| {{ns:-1}} or {{ns:Special}}
| Special
|
| {{ns:1}} or {{ns:Talk}}
| Talk
|
| {{ns:2}} or {{ns:User}}
| User
|
| {{ns:3}} or {{ns:User_talk}}
| User_talk
|
| {{ns:4}} or {{ns:Project}}
| TheBestLinks.com
|
| {{ns:5}} or {{ns:Project_talk}}
| TheBestLinks.com_talk
|
| {{ns:6}} or {{ns:Image}}
| Image
|
| {{ns:7}} or {{ns:Image_talk}}
| Image_talk
|
| {{ns:8}} or {{ns:MediaWiki}}
| MediaWiki
|
| {{ns:9}} or {{ns:MediaWiki_talk}}
| MediaWiki_talk
|
| {{ns:10}} or {{ns:Template}}
| Template
|
| {{ns:11}} or {{ns:Template_talk}}
| Template_talk
|
| {{ns:12}} or {{ns:Help}}
| Help
|
| {{ns:13}} or {{ns:Help_talk}}
| Help_talk
|
| {{ns:14}} or {{ns:Category}}
| Category
|
| {{ns:15}} or {{ns:Category_talk}}
| Category_talk
|
| {{ns:100}}
|
|
| ... (depending on custom namespaces)
|
|
| {{ns:121}}
|
|
| {{SITENAME}}
| TheBestLinks.com
|
| {{SERVER}}
| http://www.thebestlinks.com
|
| {{localurl:pagename}}
| /Pagename.html
|
| {{localurl:pagename|query string}}
| /Pagename-bp-query string-ep-.html
|
Varying with time
| {{CURRENTMONTH}}
| 09
|
| {{CURRENTMONTHNAME}}
| September
|
| {{CURRENTMONTHNAMEGEN}}
| September
|
| {{CURRENTDAY}}
| 6
|
| {{CURRENTDAYNAME}}
| Saturday
|
| {{CURRENTYEAR}}
| 2008
|
| {{CURRENTTIME}}
| 20:56
|
| {{NUMBEROFARTICLES}}
| 18446744073709551613
|
NUMBEROFARTICLES: number of pages in the main namespace which contain a link and are not a redirect, i.e. number of articles, stubs containing a link, and disambiguation pages.
This depends on system variable $wgUseCommaCount If true, article count will only include those with commas (","). If false, will only count those with links ("[["). The default set in DefaultSettings.php is false, this can be changed in LocalSettings.php.
Depending on page
| {{NAMESPACE}}
| Help
|
| {{PAGENAME}}
| Variable
|
| {{PAGENAMEE}}
| Variable
|
PAGENAMEE displays the page title in the form that is used in URLs, i.e. with underscores for spaces, and escape codes for special characters, and is therefore used for constructing URLs. For example, on a page called "Another test", PAGENAMEE would produce "Another_test" rather than "Another test". See also Variables {{PAGENAME}} and {{PAGENAMEE}}
When used in a template, these three variables refer to the page in which the template is included, not to the template page.
Examples of combinations
Here on Meta, due to Template:UTC, {{UTC}} produces: 2008-09-6 T 20:56 in UTC.
In a template, for a link to a page which depends on a template parameter, the external link style is used even for internal links, to avoid that the system links to the edit page even if the page exists. To construct the external link, variables can also be useful.
See also
Wikipedia-specific content and links to other help pages
de:Wikipedia:Variablen
zh:Help:变量
Related links
Top visited
0 of
0 links
[no links posted yet]
>> place link >>
Discussion
Last posted
0 of
0 messages
[no messages posted yet]
>> post message >>
Watch
You can
add this article to your own "watchlist" and receive e-mail notification about all changes in this page.