Editing Parameters/doc
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- 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]]) --> | ||
+ | |||
{{Lua|Module:Parameters}} | {{Lua|Module:Parameters}} | ||
− | |||
== Usage == | == Usage == | ||
− | + | [[Template:Parameters]] extracts a specified template's parameters to aid in its documentation or [[WP:TFD]] merge nominations. It itself takes two parameters: {{Para|1}}, the output format; and {{Para|base}}, the title of a template. [[Template:Parameters]] ''must'' always be substituted. Its usage is demonstrated below. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | = | + | {| class="wikitable" |
− | + | |- | |
− | <pre | + | ! {{Para|1}} |
− | + | ! Input | |
− | <pre>{{Infobox high court | + | ! Output |
+ | |- | ||
+ | ! code | ||
+ | | <pre>{{subst:Parameters|code|base=Infobox high court}}</pre> | ||
+ | | <pre>{{Infobox high court | ||
| court_name = | | court_name = | ||
| native_name = | | native_name = | ||
Line 55: | Line 50: | ||
| termend4 = | | termend4 = | ||
}}</pre> | }}</pre> | ||
− | + | |- | |
− | + | ! compare | |
− | + | | <pre>{{subst:Parameters|compare|base=Infobox London station|other=Infobox station}}</pre> | |
− | + | | <pre>Identical: | |
− | <pre | + | * events2 |
− | + | * years2 | |
− | <pre>Identical: | + | * years4 |
− | * | + | * years10 |
* caption | * caption | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* latitude | * latitude | ||
− | * | + | * years3 |
− | * | + | * platforms |
* name | * name | ||
+ | * postgroup | ||
+ | * years8 | ||
* original | * original | ||
− | * | + | * events9 |
− | * | + | * years9 |
+ | * borough | ||
* pregroup | * pregroup | ||
+ | * events7 | ||
+ | * years7 | ||
+ | * map_type | ||
+ | * years6 | ||
* symbol | * symbol | ||
+ | * events10 | ||
+ | * years11 | ||
+ | * years5 | ||
+ | * years1 | ||
+ | * events11 | ||
+ | * events6 | ||
+ | * events4 | ||
+ | * events3 | ||
+ | * events1 | ||
+ | * events5 | ||
* symbol2 | * symbol2 | ||
− | |||
− | |||
* tracks | * tracks | ||
− | * | + | * longitude |
− | * | + | * events8 |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Similar: | Similar: | ||
− | * | + | * events15 < events11 (events) |
− | * | + | * years15 < years11 (years) |
+ | * symbol4 < symbol2 (symbol) | ||
Disparate: | Disparate: | ||
− | * | + | * symbol3 |
− | * | + | * symbol4 |
* alt_name | * alt_name | ||
* alt_name1 | * alt_name1 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* image_name | * image_name | ||
* image_size | * image_size | ||
* imagesize | * imagesize | ||
− | * | + | * image_alt |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* label_position | * label_position | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* locale | * locale | ||
+ | * gridref | ||
* manager | * manager | ||
* manager1 | * manager1 | ||
Line 149: | Line 116: | ||
* railcode1 | * railcode1 | ||
* railcode2 | * railcode2 | ||
+ | * dft_category | ||
+ | * access | ||
+ | * access_note | ||
+ | * fare_zone | ||
+ | * fare_zone_1 | ||
+ | * fare_zone_note | ||
+ | * interchange | ||
+ | * interchange_note | ||
+ | * interchange1 | ||
+ | * interchange2 | ||
+ | * interchange3 | ||
+ | * interchange4 | ||
+ | * interchange5 | ||
+ | * cyclepark | ||
+ | * toilets | ||
+ | * tubeexits03 | ||
+ | * tubeexits04 | ||
+ | * tubeexits05 | ||
+ | * tubeexits06 | ||
+ | * tubeexits07 | ||
+ | * tubeexits08 | ||
+ | * tubeexits09 | ||
+ | * tubeexits10 | ||
+ | * tubeexits11 | ||
+ | * tubeexits12 | ||
+ | * tubeexits13 | ||
+ | * tubeexits03_ref | ||
+ | * tubeexits04_ref | ||
+ | * tubeexits05_ref | ||
+ | * tubeexits06_ref | ||
+ | * dlrbat0708 | ||
+ | * dlrbat0809 | ||
+ | * dlrbat1011 | ||
+ | * ctbat0910 | ||
+ | * ctbat1011 | ||
* railexits0203 | * railexits0203 | ||
* railexits0405 | * railexits0405 | ||
Line 155: | Line 157: | ||
* railexits0708 | * railexits0708 | ||
* railexits0809 | * railexits0809 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* raillowexits0203 | * raillowexits0203 | ||
* raillowexits0405 | * raillowexits0405 | ||
Line 177: | Line 163: | ||
* raillowexits0708 | * raillowexits0708 | ||
* raillowexits0809 | * raillowexits0809 | ||
+ | * railexits0910 | ||
* raillowexits0910 | * raillowexits0910 | ||
+ | * railexits1011 | ||
* raillowexits1011 | * raillowexits1011 | ||
− | |||
− | |||
− | |||
* raillowint0203 | * raillowint0203 | ||
+ | * railint0203 | ||
* raillowint0405 | * raillowint0405 | ||
+ | * railint0405 | ||
* raillowint0506 | * raillowint0506 | ||
+ | * railint0506 | ||
* raillowint0607 | * raillowint0607 | ||
+ | * railint0607 | ||
* raillowint0708 | * raillowint0708 | ||
+ | * railint0708 | ||
* raillowint0809 | * raillowint0809 | ||
+ | * railint0809 | ||
* raillowint0910 | * raillowint0910 | ||
+ | * railint0910 | ||
* raillowint1011 | * raillowint1011 | ||
+ | * railint1011 | ||
+ | * raillowexits1112 | ||
+ | * railexits1112 | ||
* raillowint1112 | * raillowint1112 | ||
+ | * railint1112 | ||
+ | * raillowexits1213 | ||
+ | * railexits1213 | ||
* raillowint1213 | * raillowint1213 | ||
+ | * railint1213 | ||
+ | * raillowexits1314 | ||
+ | * railexits1314 | ||
* raillowint1314 | * raillowint1314 | ||
+ | * railint1314 | ||
+ | * events12 | ||
+ | * events13 | ||
+ | * events14 | ||
+ | * events15 | ||
+ | * years12 | ||
+ | * years13 | ||
+ | * years14 | ||
+ | * years15 | ||
+ | * replace | ||
+ | * listing_detail | ||
+ | * listing_grade | ||
+ | * listing_entry | ||
+ | * listing_start | ||
+ | * listing_amended | ||
+ | * listing_reference | ||
* railstation | * railstation | ||
− | * | + | * coord_region |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
− | + | |- | |
− | + | ! demo | |
− | = | + | | <pre>{{subst:Parameters|demo|base=Infobox high court}}</pre> |
− | + | | <pre style="white-space: normal; word-break: break-all;">{{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}}</pre> | |
− | <pre style=" | + | |- |
− | + | ! list | |
− | <pre>* court_name | + | | <pre>{{subst:Parameters|list|base=Infobox high court}}</pre> |
+ | | <pre>* court_name | ||
* native_name | * native_name | ||
* image | * image | ||
Line 301: | Line 254: | ||
* termend3 | * termend3 | ||
* termend4</pre> | * termend4</pre> | ||
− | + | |} | |
− | |||
− | |||
− | |||
− | |||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
− | + | ||
− | |||
− | |||
− | |||
}}</includeonly> | }}</includeonly> |