Template:Param/doc

Not to be confused with Template:Para or Template:Parameter.

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 edit

  • {{param|foo}}{{{foo}}}
  • {{param|foo|tag=kbd}}{{{foo}}}
  • {{param|foo|bar}}{{{foo|bar}}}
  • {{param|foo|{{param|bar|nested=1}}}}{{{foo|{{{bar}}}}}}
  • {{param|foo|{{param|bar|{{param|baz|derp|nested=1}}|nested=1}}}}{{{foo|{{{bar|{{{baz|derp}}}}}}}}}

Examples involving {{para}} edit

  • {{para|foo|{{param|bar}}}}|foo={{{bar}}}
  • {{para|foo|{{param|bar|nested=1}}}}|foo={{{bar}}}
  • {{para|foo}}{{param|bar}}|foo={{{bar}}}
  • {{para|foo|{{var|bar}}}}|foo=bar

TemplateData edit

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Param

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

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Name1

The parameter name

Stringrequired
Value2

The parameter value

Stringoptional
Nested?nested

Whether to not wrap in <{{{tag|code}}}> tags.

Default
0
Auto value
1
Booleanoptional
Nested Tag Nametag

The name of the tag to wrap in. Used only when “nested” is falsy.

Suggested values
code samp var
Default
code
Stringoptional

See also edit

  • {{para|foo|bar}} → |foo=bar