Template:X: Difference between revisions
Template page
More actions
update |
+ / prepare for move |
||
| Line 1: | Line 1: | ||
{{#switch:{{{1}}} | {{#switch:{{{1}}} | ||
<!-- __behaviour switches__ --> | <!-- __behaviour switches__ --> | ||
| NOTOC | FORCETOC | TOC | | NOTOC | FORCETOC | TOC | ||
| NOEDITSECTION | NEWSECTIONLINK | NONEWSECTIONLINK | | NOEDITSECTION | NEWSECTIONLINK | NONEWSECTIONLINK | ||
| NOCONTENTCONVERT | NOCC | | NOCONTENTCONVERT | NOCC | ||
| NOTITLECONVERT | NOTC | | NOTITLECONVERT | NOTC | ||
| NOGALLERY | | NOGALLERY | ||
| END | START | | END | START | ||
| NOINDEX | INDEX | | NOINDEX | INDEX | ||
| STATICREDIRECT = [[mw:Help:Magic words#Behaviour switches|{{{2|__{{{1}}}__}}}]] | | STATICREDIRECT | ||
| HIDDENCAT = [[mw:Help:Category#Hidden categories|{{{2|__{{{1}}}__}}}]] | = [[mw:Help:Magic words#Behaviour switches|{{{2|__{{{1}}}__}}}]] | ||
| HIDDENCAT | |||
= [[mw:Help:Category#Hidden categories|{{{2|__{{{1}}}__}}}]] | |||
<!-- {{behaviour switches:}} --> | <!-- {{behaviour switches:}} --> | ||
| PAGESIZE | | PAGESIZE | ||
| PROTECTIONLEVEL | | PROTECTIONLEVEL | ||
| DISPLAYTITLE | | DISPLAYTITLE | ||
| DEFAULTSORT | | DEFAULTSORT | DEFAULTSORTKEY | DEFAULTCATEGORYSORTKEY | ||
| PAGESINCATEGORY | PAGESINCAT | | PAGESINCATEGORY | PAGESINCAT | ||
| NUMBERINGROUP | | NUMBERINGROUP | NUMINGROUP | ||
| PAGESINNAMESPACE | PAGESINNS = {{[[mw:Help:Magic words|{{{2|{{{1}}}:}}}]]}} | | PAGESINNAMESPACE | PAGESINNS = {{[[mw:Help:Magic words|{{{2|{{{1}}}:}}}]]}} | ||
<!-- #redirect: --> | <!-- #redirect: --> | ||
| REDIRECT | redirect = [[mw:Help:Redirect|{{{2|#{{{1}}}}}}]] | | REDIRECT | redirect = [[mw:Help:Redirect|{{{2|#{{{1}}}}}}]] | ||
<!-- {{parser functions:}} --> | <!-- {{parser functions:}} --> | ||
| localurl | localurle | | localurl | localurle | ||
| fullurl | fullurle | | fullurl | fullurle | ||
| filepath | | filepath | ||
| urlencode | | urlencode | anchorencode | ||
| anchorencode = {{[[mw:Help:Magic words#URL data|{{{2|{{{1}}}:}}}]]}} | = {{[[mw:Help:Magic words#URL data|{{{2|{{{1}}}:}}}]]}} | ||
| ns = {{[[mw:Help:Magic words#Namespaces|{{{2|{{{1}}}:}}}]]}} | | ns | ||
| lc | lcfirst | = {{[[mw:Help:Magic words#Namespaces|{{{2|{{{1}}}:}}}]]}} | ||
| uc | ucfirst | | lc | lcfirst | uc | ucfirst | ||
| formatnum | | formatnum | ||
| padleft | padright | | padleft | padright | ||
| grammar | | grammar | plural | ||
| plural = {{[[mw:Help:Magic words#Formatting|{{{2|{{{1}}}:}}}]]}} | = {{[[mw:Help:Magic words#Formatting|{{{2|{{{1}}}:}}}]]}} | ||
| gender | GENDER | | gender | GENDER | ||
| int | | int | msg | msgnw | ||
| msg | msgnw | | raw | subst | ||
| raw | = {{[[mw:Help:Magic words#Miscellaneous|{{{2|{{{1}}}:}}}]]}} | ||
| subst = {{[[mw:Help:Magic words#Miscellaneous|{{{2|{{{1}}}:}}}]]}} | |||
<!-- {{#parser functions:}} --> | <!-- {{#parser functions:}} --> | ||
| formatdate | dateformat = {{[[mw:Help:Magic words#Formatting|{{{2|#{{{1}}}:}}}]]}} | | formatdate | dateformat = {{[[mw:Help:Magic words#Formatting|{{{2|#{{{1}}}:}}}]]}} | ||
| special | | special | ||
| tag | | tag | ||
| language = {{[[mw:Help:Magic words#Miscellaneous|{{{2|#{{{1}}}:}}}]]}} | | language | ||
= {{[[mw:Help:Magic words#Miscellaneous|{{{2|#{{{1}}}:}}}]]}} | |||
<!-- {{#ParserFunctions:}} --> | <!-- {{#ParserFunctions:}} --> | ||
| expr | | expr | if | ifeq | ifexist | ifexpr | iferror | ||
| if | | rel2abs | switch | time | titleparts | ||
| ifeq | = {{[[mw:Help:Extension:ParserFunctions#.23{{{1}}}:|{{{2|#{{{1}}}:}}}]]}} | ||
| ifexist | |||
| ifexpr | |||
| iferror | |||
| rel2abs | |||
| switch | |||
| time | |||
| titleparts = {{[[mw:Help:Extension:ParserFunctions#.23{{{1}}}:|{{{2|#{{{1}}}:}}}]]}} | |||
<!-- {{variables}} / anything else --> | <!-- {{variables}} / anything else --> | ||
| {{[[mw:Help:Magic words|{{{2|{{{1}}}}}}]]}} | | {{[[mw:Help:Magic words|{{{2|{{{1}}}}}}]]}} | ||
}}<noinclude> | }}<noinclude> | ||
---- | ---- | ||
Links to a help page about the magic word and automatically adds the correct syntax (case sensitive in most cases). | |||
* <nowiki>{{</nowiki>mwl|NAMESPACE}} → {{ | * <nowiki>{{</nowiki>mwl|NAMESPACE}} → {{x|NAMESPACE}} | ||
* <nowiki>{{</nowiki>mwl|DEFAULTSORT}} → {{ | * <nowiki>{{</nowiki>mwl|DEFAULTSORT}} → {{x|DEFAULTSORT}} | ||
* <nowiki>{{</nowiki>mwl|ifexist}} → {{ | * <nowiki>{{</nowiki>mwl|ifexist}} → {{x|ifexist}} | ||
* <nowiki>{{</nowiki>mwl|localurl}} → {{ | * <nowiki>{{</nowiki>mwl|localurl}} → {{x|localurl}} | ||
* <nowiki>{{</nowiki>mwl|REDIRECT}} → {{ | * <nowiki>{{</nowiki>mwl|REDIRECT}} → {{x|REDIRECT}} | ||
* <nowiki>{{</nowiki>mwl|NOTOC}} → {{ | * <nowiki>{{</nowiki>mwl|NOTOC}} → {{x|NOTOC}} | ||
... | ... | ||
[[Category:Interwiki link templates|{{PAGENAME}}]] | [[Category:Interwiki link templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||
Revision as of 19:26, 2 May 2009
{{{{{1}}}}}
Links to a help page about the magic word and automatically adds the correct syntax (case sensitive in most cases).
- {{mwl|NAMESPACE}} → {{NAMESPACE}}
- {{mwl|DEFAULTSORT}} → {{DEFAULTSORT:}}
- {{mwl|ifexist}} → {{#ifexist:}}
- {{mwl|localurl}} → {{localurl:}}
- {{mwl|REDIRECT}} → #REDIRECT
- {{mwl|NOTOC}} → __NOTOC__
...