Template:Magic word: Difference between revisions
Jump to navigation
Jump to search
imported>GKFX (Add second parameter for arguments) |
Richardpruen (talk | contribs) m (1 revision imported: Templates and CSS files) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
< | <onlyinclude><!-- | ||
{{ | -->{{#ifexpr:<!-- | ||
-->{{yesno|{{{code|}}}|yes=1|no=0}}<!-- | |||
-->or{{yesno|{{{mono|}}}|yes=1|no=0}}<!-- | |||
-->or{{yesno|{{{nowrap|}}}|yes=1|no=0}}<!-- | |||
-->|<!-- | |||
-->{{#if:{{yesno|{{{mono|}}}}}|<templatestyles src="Template:Mono/styles.css"/>}}<!-- | |||
-->{{#if:{{yesno|{{{nowrap|}}}}}|<templatestyles src="Template:Nowrap/styles.css"/>}}<!-- | |||
--><{{#if:{{yesno|{{{code|}}}}}|code|span}} {{#ifexpr:<!-- | |||
-->{{yesno|{{{mono|}}}|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}} |
Latest revision as of 14:47, 28 October 2022
{{magic word}}
Usage
This is the TemplateData documentation for this template used by VisualEditor and other tools.
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 |