Actions

Template

Difference between revisions of "Parameters/doc"

From Unofficial Stationeers Wiki

< Template:Parameters
(ce)
(ce)
Line 2: Line 2:
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
== Usage ==
 
== Usage ==
[[Template:Parameters]] extracts a specified template's parameters;. It itself takes two parameters: {{Para|1}}, the output format; and {{Para|base}}, the title of a template. The output format must be one of: <code>list</code>, which produces a bulleted list of the base template's parameters; or <code>demo</code>, which produces a {{tl|Parameter names example}}. [[Template:Parameters]] template ''must'' always be substituted.
+
[[Template:Parameters]] extracts a specified template's parameters;. It itself takes two parameters: {{Para|1}}, the output format; and {{Para|base}}, the title of a template. The output format must be one of: <code>list</code>, which produces a bulleted list of the base template's parameters; or <code>demo</code>, which produces a {{tl|Parameter names example}}. [[Template:Parameters]] ''must'' always be substituted.
  
 
== Example ==
 
== Example ==

Revision as of 09:40, 5 June 2015

Usage

Template:Parameters extracts a specified template's parameters;. It itself takes two parameters: |1=, the output format; and |base=, the title of a template. The output format must be one of: list, which produces a bulleted list of the base template's parameters; or demo, which produces a {{Parameter names example}}. Template:Parameters must always be substituted.

Example

Input Output
{{subst:Parameters|list|base=Infobox high court}}
<div><ul><li>court_name</li><li>native_name</li><li>image</li><li>imagesize</li><li>width</li><li>height</li><li>caption</li><li>image2</li><li>imagesize2</li><li>caption2</li><li>established</li><li>dissolved</li><li>country</li><li>location</li><li>coordinates</li><li>motto</li><li>type</li><li>at</li><li>authority</li><li>appeals</li><li>terms</li><li>positions</li><li>budget</li><li>website</li><li>chiefjudgetitle</li><li>chiefjudgename</li><li>termstart</li><li>termend</li><li>termend2</li><li>chiefjudgetitle2</li><li>chiefjudgename2</li><li>termstart2</li><li>termend3</li><li>termend4</li></ul></div>
{{subst:Parameters|demo|base=Infobox high court}}
{{Parameter names example|court_name|native_name|image|imagesize|width|height|caption|image2|imagesize2|caption2|established|dissolved|country|location|coordinates|motto|type|at|authority|appeals|terms|positions|budget|website|chiefjudgetitle|chiefjudgename|termstart|termend|termend2|chiefjudgetitle2|chiefjudgename2|termstart2|termend3|termend4}}