Template:X: Difference between revisions
Template page
More actions
+ |
add support for <extension tags> |
||
| Line 11: | Line 11: | ||
| HIDDENCAT | | HIDDENCAT | ||
= [[mw:Help:Magic_words#Behavior_switches|{{{2|__{{{1}}}__}}}]] | = [[mw:Help:Magic_words#Behavior_switches|{{{2|__{{{1}}}__}}}]] | ||
<!-- {{behavior switches:}} --> | <!-- {{behavior switches:}} --> | ||
| PAGESIZE | | PAGESIZE | ||
| Line 20: | Line 21: | ||
| PAGESINNAMESPACE | PAGESINNS | | PAGESINNAMESPACE | PAGESINNS | ||
= {{[[mw:Help:Magic_words|{{{2|{{{1}}}:}}}]]}} | = {{[[mw:Help:Magic_words|{{{2|{{{1}}}:}}}]]}} | ||
<!-- #redirect: --> | <!-- #redirect: --> | ||
| REDIRECT | redirect | | REDIRECT | redirect | ||
= [[mw:Help:Redirects|{{{2|#{{{1}}}}}}]] | = [[mw:Help:Redirects|{{{2|#{{{1}}}}}}]] | ||
<!-- {{parser functions:}} --> | <!-- {{parser functions:}} --> | ||
| localurl | localurle | | localurl | localurle | fullurl | fullurle | filepath | ||
| urlencode | anchorencode | | urlencode | anchorencode | ||
= {{[[mw:Help:Magic_words#URL_data|{{{2|{{{1}}}:}}}]]}} | = {{[[mw:Help:Magic_words#URL_data|{{{2|{{{1}}}:}}}]]}} | ||
| Line 36: | Line 37: | ||
| grammar | plural | | grammar | plural | ||
= {{[[mw:Help:Magic_words#Formatting|{{{2|{{{1}}}:}}}]]}} | = {{[[mw:Help:Magic_words#Formatting|{{{2|{{{1}}}:}}}]]}} | ||
| gender | | GENDER | gender | ||
| int | msg | msgnw | | int | msg | msgnw | ||
| raw | subst | | raw | subst | ||
= {{[[mw:Help:Magic_words#Miscellaneous|{{{2|{{{1}}}:}}}]]}} | = {{[[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}}}:}}}]]}} | ||
| Line 46: | Line 48: | ||
| language | | language | ||
= {{[[mw:Help:Magic_words#Miscellaneous|{{{2|#{{{1}}}:}}}]]}} | = {{[[mw:Help:Magic_words#Miscellaneous|{{{2|#{{{1}}}:}}}]]}} | ||
<!-- {{#ParserFunctions:}} --> | <!-- {{#ParserFunctions:}} --> | ||
| expr | if | ifeq | ifexist | ifexpr | iferror | | expr | if | ifeq | ifexist | ifexpr | iferror | ||
| rel2abs | switch | time | timel | titleparts | | rel2abs | switch | time | timel | titleparts | ||
= {{[[mw:Help:Extension:ParserFunctions#.23{{{1}}}:|{{{2|#{{{1}}}:}}}]]}} | = {{[[mw:Help:Extension:ParserFunctions#.23{{{1}}}:|{{{2|#{{{1}}}:}}}]]}} | ||
<!-- {{variables}} --> | <!-- {{variables}} --> | ||
| SITENAME | SERVER | SERVERNAME | SCRIPTPATH | | SITENAME | SERVER | SERVERNAME | SCRIPTPATH | ||
| Line 64: | Line 68: | ||
| ARTICLESPACE | ARTICLESPACEE | TALKSPACE | TALKSPACEE | | ARTICLESPACE | ARTICLESPACEE | TALKSPACE | TALKSPACEE | ||
= {{[[mw:Help:Magic_words#Namespaces|{{{2|{{{1}}}}}}]]}} | = {{[[mw:Help:Magic_words#Namespaces|{{{2|{{{1}}}}}}]]}} | ||
<!-- <extension tags> --> | |||
| categorytree | |||
= <[[mw:Extension:CategoryTree|{{{2|{{{1}}}}}}]]> | |||
| charinsert | |||
= <[[mw:Extension:CharInsert|{{{2|{{{1}}}}}}]]> | |||
| hiero | |||
= <[[mw:Extension:WikiHiero|{{{2|{{{1}}}}}}]]> | |||
| imagemap | |||
= <[[mw:Extension:ImageMap|{{{2|{{{1}}}}}}]]> | |||
| inputbox | |||
= <[[mw:Extension:InputBox|{{{2|{{{1}}}}}}]]> | |||
| poem | |||
= <[[mw:Extension:Poem|{{{2|{{{1}}}}}}]]> | |||
| ref | references | |||
= <[[mw:Extension:Cite/Cite.php|{{{2|{{{1}}}}}}]]> | |||
| source | syntaxhighlight | |||
= <[[mw:Extension:SyntaxHighlight GeSHi|{{{2|{{{1}}}}}}]]> | |||
| timeline | |||
= <[[mw:Extension:EasyTimeline|{{{2|{{{1}}}}}}]]> | |||
<!-- other {{variables}} / anything else --> | <!-- other {{variables}} / anything else --> | ||
| {{[[mw:Help:Magic words|{{{2|{{{1}}}}}}]]}} | | {{[[mw:Help:Magic words|{{{2|{{{1}}}}}}]]}} | ||
| Line 78: | Line 103: | ||
* <nowiki>{{</nowiki>x|REDIRECT}} → {{x|REDIRECT}} | * <nowiki>{{</nowiki>x|REDIRECT}} → {{x|REDIRECT}} | ||
* <nowiki>{{</nowiki>x|NOTOC}} → {{x|NOTOC}} | * <nowiki>{{</nowiki>x|NOTOC}} → {{x|NOTOC}} | ||
* <nowiki>{{</nowiki>x|categorytree}} → {{x|categorytree}} | |||
... | ... | ||
[[Category:Interwiki link templates|{{PAGENAME}}]] | [[Category:Interwiki link templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||
Revision as of 18:58, 29 January 2010
{{{{{1}}}}}
Links to a help page about the magic word and automatically adds the correct syntax (case sensitive in most cases).
- {{x|NAMESPACE}} → {{NAMESPACE}}
- {{x|DEFAULTSORT}} → {{DEFAULTSORT:}}
- {{x|ifexist}} → {{#ifexist:}}
- {{x|localurl}} → {{localurl:}}
- {{x|REDIRECT}} → #REDIRECT
- {{x|NOTOC}} → __NOTOC__
- {{x|categorytree}} → <categorytree>
...