Template:Magic word

From Foundry Wiki
Revision as of 01:05, 29 June 2022 by Naginreed (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{{magic word}}}

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