Jump to content

Template:YMSsub/doc

From Wikipedia, the free encyclopedia
[edit]

YMSsub is an editor's shortcut for creating properly formatted links to the two subclasses, YMS-135 subclass and YMS-446 subclass, of the YMS-1 class of minesweepers.

The most basic form is:

{{YMSsub | Subclass number }}

This form is appropriate for prose, such as a lead paragraph of an article

The values and resluts for format are:

135 - for YMS ships 135–445, 480–81
446 - for YMS ships 446–479

Using a value other than one of these two will create a red link.

An optional third parameter allows you to format the links into a more infobox-friendly format:

{{YMSsub | Subclass number  | format }}

The values and results for format are:

0 - same as default form above
1 - formats link in infobox style

Examples

[edit]
Para-
meter
Template usage Equivalent wikicode Final result Notes
None {{YMSsub|135}} [[YMS-1-class minesweeper|''YMS-1''-class]] [[minesweeper]] of the [[YMS-135-class minesweeper|''YMS-135'' subclass]] YMS-1-class minesweeper of the YMS-135 subclass Prose form
0 {{YMSsub|135|0}} [[YMS-1-class minesweeper|''YMS-1''-class]] [[minesweeper]] of the [[YMS-135-class minesweeper|''YMS-135'' subclass]] YMS-1-class minesweeper of the YMS-135 subclass Prose form (same as None above)
1 {{YMSsub|135|1}} [[YMS-135-class minesweeper|''YMS-135'' subclass]] of [[YMS-1-class minesweeper|''YMS-1''-class minesweepers]] YMS-135 subclass of YMS-1-class minesweepers Infobox form