Template:MS and Template:Ship call sign/doc: Difference between pages
(Difference between pages)
>DePiep m (Use template {{Ship}} (no separate code); see also new {{M/S}} for the slash-showing option M/S (via WP:JWB)) |
>Vanisaac m (→TemplateData: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | |||
This template is used to generate a box that shows the [[Call sign#Ships and boats|International radio call sign]] of a ship. | |||
-->< | == Usage == | ||
For example, {{tlx|Ship call sign|A|B|C|D|ship name {{=}} USS ''Ship Name'' (AT-123)}} will give you: | |||
{{Ship call sign|A|B|C|D|ship name = USS ''Ship Name'' (AT-123)}} | |||
{{clear}} | |||
===TemplateData=== | |||
{{TemplateDataHeader}} | |||
<templatedata> | |||
{ | |||
"description": "Ship characteristics, to be used with {{Infobox ship begin}}", | |||
"params": { | |||
"1": { | |||
"label": "1", | |||
"description": "The first letter", | |||
"default": "ERROR", | |||
"example": "A", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "2", | |||
"description": "The second letter", | |||
"default": "ERROR", | |||
"example": "B", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"3": { | |||
"label": "3", | |||
"description": "The third letter", | |||
"default": "ERROR", | |||
"example": "C", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"4": { | |||
"label": "4", | |||
"description": "The fourth letter", | |||
"default": "ERROR", | |||
"example": "D", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"ship name": { | |||
"label": "Ship name", | |||
"description": "The name of the ship in question.", | |||
"default": "PAGENAME", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"reference": { | |||
"label": "Reference", | |||
"description": "A citation for the information", | |||
"type": "string", | |||
"required": false | |||
} | |||
} | |||
} | |||
</templatedata> | |||
<includeonly>{{Sandbox other|| | |||
<!-- Categories below this line, please; interwikis at Wikidata --> | |||
[[Category:Ship templates]] | |||
}}</includeonly> |
Latest revision as of 20:07, 26 April 2020
This is a documentation subpage for Template:Ship call sign. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used to generate a box that shows the International radio call sign of a ship.
Usage
For example, {{Ship call sign|A|B|C|D|ship name = USS Ship Name (AT-123)}} will give you:
International radio call sign of USS Ship Name (AT-123) | |||
Alpha | Bravo | Charlie | Delta |
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Ship call sign in articles based on its TemplateData.
TemplateData for Ship call sign
Ship characteristics, to be used with {{Infobox ship begin}}
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | The first letter
| String | required |
2 | 2 | The second letter
| String | required |
3 | 3 | The third letter
| String | required |
4 | 4 | The fourth letter
| String | required |
Ship name | ship name | The name of the ship in question.
| String | optional |
Reference | reference | A citation for the information | String | optional |