Help:Variable
Help: | Contents | Getting Started | New to BRWiki | Editing BRWiki | Editing BRWiki (advanced) | Communication and Community | Additional Help |
The help pages are currently being redesigned so they are more helpful. If you have any comments or are interested in helping out, please see the help team. |
This article or section needs to be cleaned up to a higher standard of quality.
style="Template:stub explanationcss;" |
This may include editing to correct spelling and grammar, rewriting sections to ensure they are clear and concise, and wikifying.
This may include editing to correct spelling and grammar, rewriting sections to ensure they are clear and concise, and wikifying.
On the left is the variable, on the right how it is rendered at this time, in this project, on this page.
[top]Constant, only depending on the project and parameters
{{ns:-2}} or {{ns:Media}} | |
{{ns:-1}} or {{ns:Special}} | |
{{ns:1}} or {{ns:Talk}} | Special |
{{ns:2}} or {{ns:User}} | Main |
{{ns:3}} or {{ns:User_talk}} | Island |
{{ns:4}} or {{ns:Project}} | D20 |
{{ns:5}} or {{ns:Project_talk}} | Category |
{{ns:6}} or {{ns:Image}} | Image |
{{ns:7}} or {{ns:Image_talk}} | BRCS |
{{ns:8}} or {{ns:MediaWiki}} | Help |
{{ns:9}} or {{ns:MediaWiki_talk}} | User |
{{ns:10}} or {{ns:Template}} | Template |
{{ns:11}} or {{ns:Template_talk}} | BrWiki |
{{ns:12}} or {{ns:Help}} | Stat Blocks |
{{ns:13}} or {{ns:Help_talk}} | Books |
{{ns:14}} or {{ns:Category}} | |
{{ns:15}} or {{ns:Category_talk}} | |
(depending on custom namespaces) | |
{{ns:100}} | |
{{ns:121}} | |
{{SITENAME}} | Wiki |
{{SERVER}} | http://www.birthright.net/forums |
{{localurl:pagename}} | Template:localurl:pagename |
{{localurl:pagename|query string}} | Template:localurl:pagename |
{{int:fromwikipedia}} | Template:int:fromwikipedia |
"INT:" is used to get text from wfMsg, such as messages in the LanguageXx.php file (see example over). It is short for "internal".
[top]Varying with time
{{CURRENTMONTH}} | 11-16-2024 03:20 AM |
{{CURRENTMONTHNAME}} | 11-16-2024 03:20 AM |
{{CURRENTMONTHNAMEGEN}} | 11-16-2024 03:20 AM |
{{CURRENTDAY}} | 11-16-2024 03:20 AM |
{{CURRENTDAYNAME}} | 11-16-2024 03:20 AM |
{{CURRENTYEAR}} | 11-16-2024 03:20 AM |
{{CURRENTTIME}} | 11-16-2024 03:20 AM |
{{NUMBEROFARTICLES}} | 82 |
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.
CURRENTMONTHNAMEGEN: is the genitive grammatical form of the month name (used in Finnish).
[top]Depending on page
{{NAMESPACE}} | Help |
{{PAGENAME}} | Variable |
{{PAGENAMEE}} | Template:pagenamee |
When used in a template, these three variables refer to the page in which the template is included, not to the template page.
[top]Examples of combinations
{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAMEE}}|a ction=edit}} | http://www.birthright.net/forumsTemplate:localurl:help: -- template pagenamee |
{{SERVER}}{{localurl:Special:Whatlinkshere|target= {{NAMESPACE}}:{{PAGENAMEE}}}} | http://www.birthright.net/forumsTemplate:localurl:special:whatlinkshere |
[[{{NAMESPACE}}:{{PAGENAMEE}}_1]] | Help:Template:pagenamee_1 |
{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAMEE}}_1 }} | http://www.birthright.net/forumsTemplate:localurl:help: -- template pagenamee |
See also m:Template: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.
[top]See also
[list][*]Images in templates.
[*]Template#subst - on applying "subst" to a variable or to a template using a variable
[/redirect]
[*]Template#subst - on applying "subst" to a variable or to a template using a variable
[/redirect]
Contributors: | ,
Created by Last edited by , 10-23-2011 at 03:02 PM 0 Comments, 4,092 Views |
, 11-28-2006 at 08:01 PM
Bookmarks