User:JonEastham/Template/doc
This is a documentation subpage for User:JonEastham/Template. It may contain usage information, categories and other content that is not part of the original user template page. |
This template must be used inside the {{Infobox ship career}} template within the WikiProject Ships ship infobox . The template replaces the Ship builder and Ship yard number parameters to enable automatic addition of the page to Category:Ships built by XXXXX, organised by the ships yard number.
Usage
[edit]There are five parameters to be used.
{{Infobox ship builder | yard = | builder = | city = | region = | country = }} |
|
This will display within the infobox as:
Builder: | BUILDER, CITY, REGION, COUNTRY |
Yard Number: | YARD |
If both YARD and BUILDER are defined then it will add the page to Category:Ships built by BUILDER sorted by the Yard Number, otherwise it will be sorted by {{DEFAULTSORT}}.
If COUNTRY is defined then it will add the page to Category:Ships built in COUNTRY
If REGION is defined then it will add the page to Category:REGION-built ships
If CITY is defined then it will add the page to Category:CITY-built ships
Please note, some cities/regions may require disambiguation or an alternate naming form to display correctly. These will need to be defined within the template.
- e.g. United Kingdom has been defined to add the page to Category:Ships built in the COUNTRY
See also
[edit]- {{WikiProject Ships}}
- {{Infobox ship begin}}
- {{Infobox ship career}}