Template:Magic word
Revision as of 01:05, 29 June 2022 by Naginreed (talk | contribs) (Created page with "<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|{{{now...")
{{{magic word}}}
File:Farm-Fresh css add.svg | This template uses TemplateStyles: |
Creates a formatted link to the documentation of a magic word.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Magic Word | 1 | The name of the magic word or parser function. | String | required |
Parameter 0 | 2 | The parameter passed immediately after the colon. | Content | optional |
Extension | ext | The name of the extension that adds the parser function (without the “Extension:” namespace prefix) | String | optional |
Code? | code | Whether to use <code> styling.
| Boolean | optional |
Monospaced? | mono | Whether to use `style="font-family:monospace"`.
| Boolean | optional |
Nowrap? | nowrap | Whether to use `style="white-space:nowrap"`.
| Boolean | optional |
Examples
{{Magic word|nowrap=1|ext=Translate|#translation}}
→
{{{#translation:}}}{{Magic word|mono=1|nowrap=1|ext=Scribunto|#invoke|Example}}
→
{{{#invoke:Example}}}{{Magic word|code=1|#language|
→{{Magic word|PAGELANGUAGE}}
}}{{{#language:{{{PAGELANGUAGE}}}}}}
The above documentation is transcluded from Template:Magic word/doc. (edit | history)
The above documentation is transcluded from Template:Magic word/doc. (edit | history)