Difference between revisions of "Template:Docs/row/optional"

From The Coppermind
Jump to navigation Jump to search
m
m (+catkey)
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
* <code>desc</code>: A description of how the parameter is to be used
* <code>desc</code>: A description of how the parameter is to be used
* <code>eg</code>: One or more usage examples
* <code>eg</code>: One or more usage examples

[[category: documentation templates|row]]


{{docs|title=Documentation for an optional parameter}}
{{docs|title=Documentation for an optional parameter}}
Line 16: Line 18:
| style="white-space: nowrap;" |
| style="white-space: nowrap;" |
{{{eg}}}
{{{eg}}}
<!-- END OF ROW -->
|-
|-
<noinclude>
<noinclude>
|}
|}


== Templates with Optional Parameters ==
== Usage ==
{{special: whatlinkshere/{{FULLPAGENAME}} }}
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full list of uses|here}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=10}}

Latest revision as of 20:19, 19 April 2020

Helper template to insert an optional parameter row in an infobox template documentation page. It takes 3 parameters:

  • param: The name of the parameter being documented
  • desc: A description of how the parameter is to be used
  • eg: One or more usage examples
Documentation for an optional parameter
Parameter Description Examples
Unknown parameter {{{desc}}}

{{{eg}}}

Templates with Optional Parameters[edit]