Template:Param/doc

From Black Cat Studios
< Template:Param
Revision as of 16:28, 19 June 2023 by Blackcat (talk | contribs) (Created page with "{{Documentation subpage}} {{Distinguish|Template:Para}} <!-- Categories and interwikis go at the bottom of this page. --> This template is for giving examples of template parameter source code which is useful in template documentation and talk page discussions of template code. ===Usage=== :{{tji|param|foo}} → {{param|foo}} :{{tji|param|foo|tag: kbd}} → {{param|foo|tag=kbd}} :{{tji|param|foo|bar}} → {{param|foo|bar}} :<syntaxhighlight lang="wikitext" inline>{{...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This template is for giving examples of template parameter source code which is useful in template documentation and talk page discussions of template code.

Usage

{{param|foo}}{{{foo}}}
{{param|foo|tag=kbd}}{{{foo}}}
{{param|foo|bar}}{{{foo|bar}}}
<syntaxhighlight lang="wikitext" inline>{{{foo|{{{bar}}}}}}</syntaxhighlight> → {{{foo|{{{bar}}}}}}
<syntaxhighlight lang="wikitext" inline>{{{foo|{{{bar|{{{baz|derp}}}}}}}}}</syntaxhighlight> → {{{foo|{{{bar|{{{baz|derp}}}}}}}}}

Examples involving {{para}}

<syntaxhighlight lang="wikitext" inline>|foo={{{bar}}}</syntaxhighlight> → |foo={{{bar}}}
<syntaxhighlight lang="wikitext" inline>|foo={{{bar}}}</syntaxhighlight> → |foo={{{bar}}}
{{para|foo}}{{param|bar}}|foo={{{bar}}}
<syntaxhighlight lang="wikitext" inline>|foo=bar</syntaxhighlight> → |foo=bar

See also

  • {{para|foo|bar}} → |foo=bar
  • {{param value|baz quux|space=·}}baz··quux