Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:X: Difference between revisions

Template page
update
no docs
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#switch:{{{1}}}
{{{{{|safesubst:}}}#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|&#95;_{{{1}}}_&#95;}}}]]
| STATICREDIRECT
| HIDDENCAT = [[mw:Help:Category#Hidden categories|{{{2|&#95;_{{{1}}}_&#95;}}}]]
| HIDDENCAT
<!-- {{behaviour switches:}} -->
= &#95;_[[mw:Help:Magic_words#Behavior_switches|{{{2|{{{1}}}}}}]]_&#95;
| PAGESIZE
 
| PROTECTIONLEVEL
<!-- {{behavior switches:}} -->
| DISPLAYTITLE
| PAGESIZE
| DEFAULTSORT
| PROTECTIONLEVEL
| PAGESINCATEGORY | PAGESINCAT
| DISPLAYTITLE
| NUMBERINGROUP
| DEFAULTSORT | DEFAULTSORTKEY | DEFAULTCATEGORYSORTKEY
| PAGESINNAMESPACE | PAGESINNS = &#123;&#123;[[mw:Help:Magic words|{{{2|{{{1}}}:}}}]]&#125;&#125;
| PAGESINCATEGORY | PAGESINCAT
| NUMBERINGROUP | NUMINGROUP
| PAGESINNAMESPACE | PAGESINNS
= &#123;&#123;[[mw:Help:Magic_words|{{{2|{{{1}}}:}}}]]&#125;&#125;
 
<!-- #redirect: -->
<!-- #redirect: -->
| REDIRECT | redirect = [[mw:Help:Redirect|{{{2|&#35;{{{1}}}}}}]]
| REDIRECT | redirect
= [[mw:Help:Redirects|{{{2|&#35;{{{1}}}}}}]]
 
<!-- {{parser functions:}} -->
<!-- {{parser functions:}} -->
| localurl | localurle
| localurl | localurle | fullurl | fullurle | filepath
| fullurl | fullurle
| urlencode | anchorencode
| filepath
= &#123;&#123;[[mw:Help:Magic_words#URL_data|{{{2|{{{1}}}:}}}]]&#125;&#125;
| urlencode
| ns | nse
| anchorencode = &#123;&#123;[[mw:Help:Magic words#URL data|{{{2|{{{1}}}:}}}]]&#125;&#125;
= &#123;&#123;[[mw:Help:Magic_words#Namespaces|{{{2|{{{1}}}:}}}]]&#125;&#125;
| ns = &#123;&#123;[[mw:Help:Magic words#Namespaces|{{{2|{{{1}}}:}}}]]&#125;&#125;
| lc | lcfirst | uc | ucfirst
| lc | lcfirst
| formatnum
| uc | ucfirst
| padleft | padright
| formatnum
| grammar | plural
| padleft | padright
= &#123;&#123;[[mw:Help:Magic_words#Formatting|{{{2|{{{1}}}:}}}]]&#125;&#125;
| grammar
| GENDER | gender
| plural = &#123;&#123;[[mw:Help:Magic words#Formatting|{{{2|{{{1}}}:}}}]]&#125;&#125;
| int | msg | msgnw | raw
| gender | GENDER
= &#123;&#123;[[mw:Help:Magic_words#Miscellaneous|{{{2|{{{1}}}:}}}]]&#125;&#125;
| int
| subst | safesubst
| msg | msgnw
= &#123;&#123;[[m:Help:Substitution|{{{2|{{{1}}}:}}}]]&#125;&#125;
| raw
 
| subst = &#123;&#123;[[mw:Help:Magic words#Miscellaneous|{{{2|{{{1}}}:}}}]]&#125;&#125;
<!-- {{#parser functions:}} -->
<!-- {{#parser functions:}} -->
| formatdate | dateformat = &#123;&#123;[[mw:Help:Magic words#Formatting|{{{2|&#35;{{{1}}}:}}}]]&#125;&#125;
| formatdate | dateformat
| special
= &#123;&#123;[[mw:Help:Magic_words#Formatting|{{{2|&#35;{{{1}}}:}}}]]&#125;&#125;
| tag
| special
| language = &#123;&#123;[[mw:Help:Magic words#Miscellaneous|{{{2|&#35;{{{1}}}:}}}]]&#125;&#125;
| tag
| language
= &#123;&#123;[[mw:Help:Magic_words#Miscellaneous|{{{2|&#35;{{{1}}}:}}}]]&#125;&#125;
 
<!-- {{#ParserFunctions:}} -->
<!-- {{#ParserFunctions:}} -->
| expr
| expr | if | ifeq | ifexist | ifexpr | iferror
| if
| rel2abs | switch | time | timel | titleparts
| ifeq
= &#123;&#123;[[mw:Help:Extension:ParserFunctions#.23{{{1}}}:|{{{2|&#35;{{{1}}}:}}}]]&#125;&#125;
| ifexist
 
| ifexpr
<!-- {{variables}} -->
| iferror
| SITENAME | SERVER | SERVERNAME | SCRIPTPATH
| rel2abs
| DIRMARK | DIRECTIONMARK
| switch
| CURRENTVERSION
| time
| CONTENTLANGUAGE | CONTENTLANG
| titleparts = &#123;&#123;[[mw:Help:Extension:ParserFunctions#.23{{{1}}}:|{{{2|&#35;{{{1}}}:}}}]]&#125;&#125;
| REVISIONID | REVISIONUSER
<!-- {{variables}} / anything else -->
| REVISIONDAY | REVISIONDAY2 | REVISIONMONTH | REVISIONYEAR | REVISIONTIMESTAMP
| &#123;&#123;[[mw:Help:Magic words|{{{2|{{{1}}}}}}]]&#125;&#125;
=  &#123;&#123;[[mw:Help:Magic_words#Technical_metadata|{{{2|{{{1}}}}}}]]&#125;&#125;
| NUMBEROFPAGES | NUMBEROFARTICLES | NUMBEROFFILES | NUMBEROFEDITS | NUMBEROFVIEWS
| NUMBEROFUSERS | NUMBEROFADMINS | NUMBEROFACTIVEUSERS
= &#123;&#123;[[mw:Help:Magic_words#Statistics|{{{2|{{{1}}}}}}]]&#125;&#125;
| NAMESPACE | NAMESPACEE | SUBJECTSPACE | SUBJECTSPACEE
| ARTICLESPACE | ARTICLESPACEE | TALKSPACE | TALKSPACEE
= &#123;&#123;[[mw:Help:Magic_words#Namespaces|{{{2|{{{1}}}}}}]]&#125;&#125;
| CURRENTMONTHNAMEGEN | LOCALMONTHNAMEGEN
= &#123;&#123;[[m:Help:Magic_words#Language-dependent_word_conversions|{{{2|{{{1}}}}}}]]&#125;&#125;
 
<!-- <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 -->
| &#123;&#123;[[mw:Help:Magic words|{{{2|{{{1}}}}}}]]&#125;&#125;
}}<noinclude>
}}<noinclude>
 
{{No documentation|Information needs to be added to separate documentation page}}


----
----
'''M'''agic '''W'''ord '''L'''ink (or '''M'''edia'''W'''iki '''L'''ink). Links to a help page about the magic word. Takes any kind and will add the correct syntax.
Links to a help page about the magic word and automatically adds the correct syntax (case sensitive in most cases).


* <nowiki>{{</nowiki>mwl|NAMESPACE}} → {{mwl|NAMESPACE}}
* <nowiki>{{</nowiki>x|NAMESPACE}} → {{x|NAMESPACE}}
* <nowiki>{{</nowiki>mwl|DEFAULTSORT}} → {{mwl|DEFAULTSORT}}
* <nowiki>{{</nowiki>x|DEFAULTSORT}} → {{x|DEFAULTSORT}}
* <nowiki>{{</nowiki>mwl|ifexist}} → {{mwl|ifexist}}
* <nowiki>{{</nowiki>x|ifexist}} → {{x|ifexist}}
* <nowiki>{{</nowiki>mwl|localurl}} → {{mwl|localurl}}
* <nowiki>{{</nowiki>x|localurl}} → {{x|localurl}}
* <nowiki>{{</nowiki>mwl|REDIRECT}} → {{mwl|REDIRECT}}
* <nowiki>{{</nowiki>x|REDIRECT}} → {{x|REDIRECT}}
* <nowiki>{{</nowiki>mwl|NOTOC}} → {{mwl|NOTOC}}
* <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).

...

Template documentation[ view · edit · history · purge ]
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

Contents
Cookies help us deliver our services. By using our services, you agree to our use of cookies.