Template:Para/doc: Difference between revisions
Page last edited 3 weeks ago by Xeverything11
→Usage: restriction no longer applies |
→Usage: no longer applies |
||
Line 11: | Line 11: | ||
| '''Code''' | | '''Code''' | ||
| '''Result''' | | '''Result''' | ||
| {{tlx|para|value}} | | {{tlx|para|value}} | ||
| {{when in sandbox |{{para/sandbox|value}} |{{para|value}} }} | | {{when in sandbox |{{para/sandbox|value}} |{{para|value}} }} | ||
| {{tlx|para|title|<var>book title</var>}} | | {{tlx|para|title|<var>book title</var>}} | ||
| {{when in sandbox |{{para/sandbox|title|<var>book title</var>}} |{{para|title|<var>book title</var>}} }} | | {{when in sandbox |{{para/sandbox|title|<var>book title</var>}} |{{para|title|<var>book title</var>}} }} | ||
| {{tlx|para|<var>parameter</var>|<var>value</var>}} | | {{tlx|para|<var>parameter</var>|<var>value</var>}} | ||
| {{when in sandbox |{{para/sandbox|plain|<var>parameter</var>|<var>value</var>}} |{{para|<var>parameter</var>|<var>value</var>}} }} | | {{when in sandbox |{{para/sandbox|plain|<var>parameter</var>|<var>value</var>}} |{{para|<var>parameter</var>|<var>value</var>}} }} | ||
}} | }} | ||
Revision as of 20:56, 6 November 2014
Template:Documentation subpage Template:Distinguish
Usage
This template is for giving examples of template parameter source code (useful in template documentation and talk page discussions of template code). It must have one or two parameters. When both are given, the first is the name of the example parameter name to display, and the second one is the value. For an unnamed example parameter, you only need to give the value parameter.
Examples
When illustrating hypothetical, variable or user-definable values, use Template:Plaincode (as in the second example above) and the same should be done for non-literal, example parameters (third example above).
See also
- {{Parameter}}