Difference between revisions of "Parameters/doc"
From Unofficial Stationeers Wiki
< Template:Parameters
({{Lua|Module:Parameters}}) |
(→Example: wl) |
||
Line 13: | Line 13: | ||
|- | |- | ||
| <pre>{{subst:Parameters|list|base=Infobox high court}}</pre> | | <pre>{{subst:Parameters|list|base=Infobox high court}}</pre> | ||
− | | <pre | + | | <pre> |
+ | * 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 | ||
+ | </pre> | ||
|- | |- | ||
| <pre>{{subst:Parameters|demo|base=Infobox high court}}</pre> | | <pre>{{subst:Parameters|demo|base=Infobox high court}}</pre> |
Revision as of 09:50, 5 June 2015
This is a documentation subpage for Template:Parameters. It contains usage information, categories and other content that is not part of the original template page. |
30px | This template uses Lua: |
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}} |
* 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 |
{{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}} |