Patrick
Málkassi |
---|
Notendur eftir tungumáli |
Variables
breytaThis 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
breyta{{ns:-2}} or {{ns:Media}} | Miðill |
{{ns:-1}} or {{ns:Special}} | Kerfissíða |
{{ns:1}} or {{ns:Talk}} | Spjall |
{{ns:2}} or {{ns:User}} | Notandi |
{{ns:3}} or {{ns:User_talk}} | Notandaspjall |
{{ns:4}} or {{ns:Project}} | Wikipedia |
{{ns:5}} or {{ns:Project_talk}} | Wikipediaspjall |
{{ns:6}} or {{ns:Image}} | Mynd |
{{ns:7}} or {{ns:Image_talk}} | Myndaspjall |
{{ns:8}} or {{ns:MediaWiki}} | Melding |
{{ns:9}} or {{ns:MediaWiki_talk}} | Meldingarspjall |
{{ns:10}} or {{ns:Template}} | Snið |
{{ns:11}} or {{ns:Template_talk}} | Sniðaspjall |
{{ns:12}} or {{ns:Help}} | Hjálp |
{{ns:13}} or {{ns:Help_talk}} | Hjálparspjall |
{{ns:14}} or {{ns:Category}} | Flokkur |
{{ns:15}} or {{ns:Category_talk}} | Flokkaspjall |
(depending on custom namespaces) | |
{{ns:100}} | Gátt |
{{ns:121}} | |
{{SITENAME}} | Wikipedia |
{{SERVER}} | //is.wikipedia.org |
{{localurl:pagename}} | /wiki/Pagename |
{{localurl:pagename|query string}} | /w/index.php?title=Pagename&query string |
{{int:fromwikipedia}} | Úr Wikipedia, frjálsu alfræðiorðabókinni. |
"INT:" is used to get text from wfMsg, such as messages in the LanguageXx.php file (see example over). It is short for "internal".
Varying with time
breyta{{CURRENTMONTH}} | 12 |
{{CURRENTMONTHNAME}} | desember |
{{CURRENTMONTHNAMEGEN}} | desember |
{{CURRENTDAY}} | 5 |
{{CURRENTDAYNAME}} | fimmtudagur |
{{CURRENTYEAR}} | 2024 |
{{CURRENTTIME}} | 02:05 |
{{NUMBEROFARTICLES}} | 59.448 |
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).
Depending on page
breyta{{NAMESPACE}} | Notandi |
{{PAGENAME}} | Patrick |
{{PAGENAMEE}} | Patrick |
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
breyta{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAMEE}}|action=edit}} | //is.wikipedia.org/w/index.php?title=Notandi:Patrick&action=edit |
{{SERVER}}{{localurl:Special:Whatlinkshere|target={{NAMESPACE}}:{{PAGENAMEE}}}} | //is.wikipedia.org/w/index.php?title=Kerfiss%C3%AD%C3%B0a:Whatlinkshere&target=Notandi:Patrick |
[[{{NAMESPACE}}:{{PAGENAMEE}}_1]] | Notandi:Patrick_1 |
{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAMEE}}_1}} | //is.wikipedia.org/wiki/Notandi:Patrick_1 |
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.