Template:Magic word: Difference between revisions
Template page
More actions
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude><!-- | ||
-->{{#ifexpr:<!-- | -->{{#ifexpr:<!-- | ||
-->{{yesno|{{{code|}}}|yes=1|no=0}}<!-- | -->{{yesno|{{{code|}}}|yes=1|no=0}}<!-- | ||
Line 10: | Line 10: | ||
-->{{yesno|{{{mono|}}}|yes=1|no=0}}<!-- | -->{{yesno|{{{mono|}}}|yes=1|no=0}}<!-- | ||
-->or{{yesno|{{{nowrap|}}}|yes=1|no=0}}<!-- | -->or{{yesno|{{{nowrap|}}}|yes=1|no=0}}<!-- | ||
-->|<!-- | |||
-->class="{{yesno|{{{mono|}}}|yes=monospaced|no=}} {{yesno|{{{nowrap|}}}|yes=nowrap|no=}}"<!-- | |||
-->}}><!-- | |||
-->}}<!-- | |||
-->{{((}}<!-- | |||
-->[[mw:Special:MyLanguage/{{#switch:{{{ext|}}}<!-- | |||
Extensions with public domain help page documentation: | |||
-->|Translate=Help:Extension:Translate<!-- | |||
-->{{#switch:{{{1}}}<!-- | |||
-->|#translation=/Page translation administration<!-- | |||
-->}}<!-- | |||
-->|ParserFunctions=Help:Extension:ParserFunctions<!-- | |||
Extensions with documentation in subpages of the “Extension:” namespace: | |||
-->|Page Forms=Extension:Page Forms<!-- | |||
-->{{#switch:{{{1}}}<!-- | |||
-->|#arraymap<!-- | |||
-->|#arraymaptemplate<!-- | |||
-->|#template_display<!-- | |||
-->|#template_params<!-- | |||
-->=/Page Forms and templates<!-- | |||
-->|#autoedit<!-- | |||
-->|#forminput<!-- | |||
-->|#formlink<!-- | |||
-->|#formredlink<!-- | |||
-->=/Linking to forms<!-- | |||
-->|#queryformlink<!-- | |||
-->=/Creating query forms<!-- | |||
-->|#default_form<!-- | |||
-->=/The "edit with form" tab<!-- | |||
-->}}<!-- | |||
Default page when `ext` is specified: | |||
-->|#default=Extension:{{{ext}}}<!-- | |||
Default page when `ext` is not specified: | |||
-->|=Help:Magic words<!-- | |||
-->}}<includeonly>#{{#ifeq:{{Str left|{{{1}}}}}|#<!-- | |||
Workaround bug which causes the leading `#`s in the fragment | |||
of a “Special:MyLanguage/...” link to be discarded: | |||
-->|.23{{Str right|{{{1}}}|1}}<!-- | |||
-->|{{{1}}}<!-- | |||
-->}}|{{{1}}}</includeonly><noinclude>|magic word</noinclude>]]<!-- | |||
-->{{#ifexpr:<!-- | |||
-->{{#ifeq:{{{2|¬}}}|{{{2}}}|1|0}}or{{#ifeq:{{Str left|{{{1}}}}}|#|1|0}}<!-- | |||
-->|:{{{2|}}}<!-- | |||
-->}}<!-- | |||
-->{{))}}<!-- | |||
-->{{#ifexpr:<!-- | |||
-->{{yesno|{{{code|}}}|yes=1|no=0}}<!-- | |||
-->or{{yesno|{{{mono|}}}|yes=1|no=0}}<!-- | |||
-->or{{yesno|{{{nowrap|}}}|yes=1|no=0}}<!-- | |||
-->|</{{#if:{{yesno|{{{code|}}}}}|code|span}}><!-- | |||
-->}}<!-- | |||
--></onlyinclude> | |||
{{Documentation}} | |||
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! --> |
Revision as of 15:24, 14 February 2025
{{magic word}}
Usage
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Magic word in articles based on its TemplateData.
TemplateData for Magic word
Creates a link to the description of a magic word at https://www.mediawiki.org/wiki/Help:Magic_words, formatted like the invocation of that word e.g. {{uc:}}.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Magic word | 1 | Name of the word as invoked. May have a trailing colon.
| String | required |