ਫਰਮਾ:Ship/doc/fixed prefix: label format options

This section:

Basically, the template takes up to three parameters to write the target page, and to format the label shown. General setup is:

[[targetpage|label]]
[[HMS Illustrious (R06)|HMS Illustrious (R06)]].

Target page

ਸੋਧੋ

By default, the wikilink is build like this:

  • {{PREFIX|ship's name|ID}}.
With {{HMS|Illustrious|R06}}, the targetpage is
[[HMS Illustrious (R06)]].
Elements PREFIX and ID can be omitted (if they are not part of the targetpage title).

Formatted label

ਸੋਧੋ
Then the template by default adds the formatted label:
[[targetpage|label]]
{{HMS|Illustrious|R06}}
[[HMS Illustrious (R06)|HMS ''Illustrious'' (R06)]], showing as:
ਫਰਮਾ:HMS.

The default label can be changed with a simple parameter. The extra third position, unnamed parameter allows setting which changes the elements of the ship's full name. It sets the label in the link: For example, in your article, the hull number (disambiguator) may not be needed to show. In that case, add option |2, and the result is:

  • {{HMS|Illustrious|R06|2}}
[[HMS Illustrious (R06)|''Illustrious'']]
ਫਰਮਾ:HMS

The options are:

Value Will show Example Wikilink [[targetpage|label]] Shows
(default) PREFIX name (ID) {{HMS|Illustrious|R06}} [[HMS Illustrious (R06)|HMS ''Illustrious'' (R06)]] ਫਰਮਾ:HMS
1 ID {{HMS|Illustrious|R06|1}} [[HMS Illustrious (R06)|R06]] ਫਰਮਾ:HMS
2 name {{HMS|Illustrious|R06|2}} [[HMS Illustrious (R06)|''Illustrious'']] ਫਰਮਾ:HMS
3 name (ID) {{HMS|Illustrious|R06|3}} [[HMS Illustrious (R06)|''Illustrious'' (R06)]] ਫਰਮਾ:HMS
4 (dflt) PREFIX name (ID) {{HMS|Illustrious|R06|4}} [[HMS Illustrious (R06)|HMS ''Illustrious'' (R06)]] ਫਰਮਾ:HMS
5 PREFIX ID {{HMS|Illustrious|R06|5}} [[HMS Illustrious (R06)|HMS ''R06'']] ਫਰਮਾ:HMS
6 PREFIX name {{HMS|Illustrious|R06|6}} [[HMS Illustrious (R06)|HMS ''Illustrious'']] ਫਰਮਾ:HMS
Note: options default (=blank), 2 and 6 are mostly used.