Template:Tc-var/doc

From Angelina Jordan Wiki
Revision as of 19:50, 19 June 2023 by Dcljr (talk | contribs) (doc add param)
This is a subpage documenting Template:Tc-var. To change the template, edit that page; to change the template's documentation (seen below), edit this one.

Documentation

Usage

  • {{tc-var|template name|description of parameter 1|description of parameter 2||add=}}

Up to 8 positional parameters can be described using this template. If you need more, or if you need to tack on some additional named parameters, use the add parameter.

Examples

  • {{tc-var}}{{}}
  • {{tc-var|}}{{}}
  • {{tc-var|code}}{{code}}
  • {{tc-var|code|content to be rendered as code}}{{code|content to be rendered as code}}
  • {{tc-var|wl|target|linktext}}{{wl|target|linktext}}
  • {{tc-var|ytv|ID|linktext|add={{pn|t|accessed}}}}{{ytv|ID|linktext|t=|accessed=}}

Obviously, the first three examples are not very useful; they're just here for "completeness".

The last example shows how to use add along with {{pn}} (Template:Param-names) to include additional named parameters. Alternatively, {{pnv}}, {{pnvv}}, or {{pv}} could be used in place of {{pn}}, depending on what kind of formatting is desired.