Template:Magic word/doc

From Foundry Wiki
Template-info.png Documentation

Creates a formatted link to the documentation of a magic word.

Template parameters

ParameterDescriptionTypeStatus
Magic Word1

The name of the magic word or parser function.

Stringrequired
Parameter 02

The parameter passed immediately after the colon.

Contentoptional
Extensionext

The name of the extension that adds the parser function (without the “Extension:” namespace prefix)

Stringoptional
Code?code

Whether to use <code> styling.

Default
0
Auto value
1
Booleanoptional
Monospaced?mono

Whether to use `style="font-family:monospace"`.

Default
0
Auto value
1
Booleanoptional
Nowrap?nowrap

Whether to use `style="white-space:nowrap"`.

Default
0
Auto value
1
Booleanoptional
Edit parameter translations

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}}}}}}

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.