Template:X: Difference between revisions
Template page
More actions
No edit summary |
no docs |
||
| (31 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{ #switch:{{{1}}} | {{{{{|safesubst:}}}#switch:{{{1}}} | ||
| NOTOC | <!-- __behaviour switches__ --> | ||
| FORCETOC | | NOTOC | FORCETOC | TOC | ||
| TOC | | NOEDITSECTION | NEWSECTIONLINK | NONEWSECTIONLINK | ||
| NOEDITSECTION | | NOCONTENTCONVERT | NOCC | ||
| NEWSECTIONLINK | | NOTITLECONVERT | NOTC | ||
| NOCONTENTCONVERT | NOCC | | NOGALLERY | ||
| NOGALLERY | | END | START | ||
| | | NOINDEX | INDEX | ||
| | | STATICREDIRECT | ||
| | | HIDDENCAT | ||
| HIDDENCAT = [[ | = __[[mw:Help:Magic_words#Behavior_switches|{{{2|{{{1}}}}}}]]__ | ||
| REDIRECT = [[ | <!-- {{behavior switches:}} --> | ||
| | | PAGESIZE | ||
| | | PROTECTIONLEVEL | ||
| DISPLAYTITLE | |||
| DEFAULTSORT | DEFAULTSORTKEY | DEFAULTCATEGORYSORTKEY | |||
| PAGESINCATEGORY | PAGESINCAT | |||
| NUMBERINGROUP | NUMINGROUP | |||
| PAGESINNAMESPACE | PAGESINNS | |||
= {{[[mw:Help:Magic_words|{{{2|{{{1}}}:}}}]]}} | |||
| lc | <!-- #redirect: --> | ||
| lcfirst | | REDIRECT | redirect | ||
| uc | = [[mw:Help:Redirects|{{{2|#{{{1}}}}}}]] | ||
| ucfirst | |||
| formatnum | <!-- {{parser functions:}} --> | ||
| padleft | | localurl | localurle | fullurl | fullurle | filepath | ||
| padright | | urlencode | anchorencode | ||
= {{[[mw:Help:Magic_words#URL_data|{{{2|{{{1}}}:}}}]]}} | |||
| ns | nse | |||
= {{[[mw:Help:Magic_words#Namespaces|{{{2|{{{1}}}:}}}]]}} | |||
| grammar | | lc | lcfirst | uc | ucfirst | ||
| plural = [[ | | formatnum | ||
| | | padleft | padright | ||
| | | grammar | plural | ||
| | = {{[[mw:Help:Magic_words#Formatting|{{{2|{{{1}}}:}}}]]}} | ||
| | | GENDER | gender | ||
| | | int | msg | msgnw | raw | ||
| | = {{[[mw:Help:Magic_words#Miscellaneous|{{{2|{{{1}}}:}}}]]}} | ||
| | | subst | safesubst | ||
| | = {{[[m:Help:Substitution|{{{2|{{{1}}}:}}}]]}} | ||
| | |||
| | <!-- {{#parser functions:}} --> | ||
| | | formatdate | dateformat | ||
| | = {{[[mw:Help:Magic_words#Formatting|{{{2|#{{{1}}}:}}}]]}} | ||
| [[ | | special | ||
| tag | |||
| language | |||
= {{[[mw:Help:Magic_words#Miscellaneous|{{{2|#{{{1}}}:}}}]]}} | |||
<!-- {{#ParserFunctions:}} --> | |||
| expr | if | ifeq | ifexist | ifexpr | iferror | |||
| rel2abs | switch | time | timel | titleparts | |||
= {{[[mw:Help:Extension:ParserFunctions#.23{{{1}}}:|{{{2|#{{{1}}}:}}}]]}} | |||
<!-- {{variables}} --> | |||
| SITENAME | SERVER | SERVERNAME | SCRIPTPATH | |||
| DIRMARK | DIRECTIONMARK | |||
| CURRENTVERSION | |||
| CONTENTLANGUAGE | CONTENTLANG | |||
| REVISIONID | REVISIONUSER | |||
| REVISIONDAY | REVISIONDAY2 | REVISIONMONTH | REVISIONYEAR | REVISIONTIMESTAMP | |||
= {{[[mw:Help:Magic_words#Technical_metadata|{{{2|{{{1}}}}}}]]}} | |||
| NUMBEROFPAGES | NUMBEROFARTICLES | NUMBEROFFILES | NUMBEROFEDITS | NUMBEROFVIEWS | |||
| NUMBEROFUSERS | NUMBEROFADMINS | NUMBEROFACTIVEUSERS | |||
= {{[[mw:Help:Magic_words#Statistics|{{{2|{{{1}}}}}}]]}} | |||
| NAMESPACE | NAMESPACEE | SUBJECTSPACE | SUBJECTSPACEE | |||
| ARTICLESPACE | ARTICLESPACEE | TALKSPACE | TALKSPACEE | |||
= {{[[mw:Help:Magic_words#Namespaces|{{{2|{{{1}}}}}}]]}} | |||
| CURRENTMONTHNAMEGEN | LOCALMONTHNAMEGEN | |||
= {{[[m:Help:Magic_words#Language-dependent_word_conversions|{{{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 --> | |||
| {{[[mw:Help:Magic words|{{{2|{{{1}}}}}}]]}} | |||
}}<noinclude> | }}<noinclude> | ||
{{No documentation|Information needs to be added to separate documentation page}} | |||
---- | ---- | ||
Links to a help page about the magic word and automatically adds the correct syntax (case sensitive in most cases). | |||
* <nowiki>{{</nowiki> | * <nowiki>{{</nowiki>x|NAMESPACE}} → {{x|NAMESPACE}} | ||
* <nowiki>{{</nowiki> | * <nowiki>{{</nowiki>x|DEFAULTSORT}} → {{x|DEFAULTSORT}} | ||
* <nowiki>{{</nowiki> | * <nowiki>{{</nowiki>x|ifexist}} → {{x|ifexist}} | ||
* <nowiki>{{</nowiki> | * <nowiki>{{</nowiki>x|localurl}} → {{x|localurl}} | ||
* <nowiki>{{</nowiki> | * <nowiki>{{</nowiki>x|REDIRECT}} → {{x|REDIRECT}} | ||
* <nowiki>{{</nowiki>x|safesubst}} → {{x|safesubst}} | |||
* <nowiki>{{</nowiki>x|NOTOC}} → {{x|NOTOC}} | |||
* <nowiki>{{</nowiki>x|categorytree}} → {{x|categorytree}} | |||
... | ... | ||
{{Documentation}} | |||
[[Category:Interwiki link templates|{{PAGENAME}}]] | [[Category:Interwiki link templates|{{PAGENAME}}]] | ||
[[Category:Typing-aid templates|{{PAGENAME}}]] | |||
[[Category:One-letter templates| ]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 00:04, 31 July 2026
{{{{{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|safesubst}} → {{safesubst:}}
- {{x|NOTOC}} → __NOTOC__
- {{x|categorytree}} → <categorytree>
...
This documentation is transcluded from Template:X/doc.
Helper template that links to a magic-word or parser-function help page on MediaWiki.org with the correct syntax. Case-sensitive in most cases.
Examples
{{x|NAMESPACE}}- {{NAMESPACE}}{{x|DEFAULTSORT}}- {{DEFAULTSORT:}}{{x|ifexist}}- {{#ifexist:}}{{x|localurl}}- {{localurl:}}{{x|REDIRECT}}- #REDIRECT{{x|safesubst}}- {{safesubst:}}{{x|NOTOC}}- __NOTOC__{{x|categorytree}}- <categorytree>