Template:MS and Template:Ship call sign/doc: Difference between pages

From IxWiki
(Difference between pages)
Jump to navigation Jump to search
>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:
<includeonly>{{ship|1=MS|2={{{1|}}}|3={{{2|}}}|4={{{3|}}}|up={{{up|}}}}}</includeonly><!--
{{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.


--><noinclude>{{documentation}}</noinclude>
== 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 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}}

Template parameters

ParameterDescriptionTypeStatus
11

The first letter

Default
ERROR
Example
A
Stringrequired
22

The second letter

Default
ERROR
Example
B
Stringrequired
33

The third letter

Default
ERROR
Example
C
Stringrequired
44

The fourth letter

Default
ERROR
Example
D
Stringrequired
Ship nameship name

The name of the ship in question.

Default
PAGENAME
Stringoptional
Referencereference

A citation for the information

Stringoptional