Template:Magic word
{{{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)