Template:Ship/testcases

Recent proposals and tests are discussed at the talkpage.
 * Note that error messages & warnings are shown in Preview only.
 * . Includes warnings.

The default

 * The default, and the 4 format options

wl=no

 * The default, and the 4 format options

wl=foo

 * The default, and the 4 format options

wl= (blank)

 * The default, and the 4 format options

Parameter up=yes, no, (blank), (omitted)

 * up (up="unlink prefix")
 * See also Template:Ship/testcases2 for testing no. -DePiep (talk) 13:03, 30 July 2018 (UTC)

up=(omitted) or (blank)
up omitted

up=yes

 * Also when Y, True, 1: yes

up=no

 * error v2017: *any* input for up is reads "yes"
 * 2018: only yes, y, true, 1 = yes (lc or uc)

up=foo

 * 2017: up not recognised as "yes", so to check (could be "no")


 * 2018: only yes, y, true, 1 = yes
 * 2018: only no, 0, false = no
 * 2018: gobbledeegob all the rest: categorise and up for editing

Missing parameters 1, 2, 3

 * Feb 2018: only missing 2, and in situations missing 3 could be bad. Weird redlinks are not detected by current or proposed version of.

missing para 1, 3

 * Note: Kootenay is a DAB

Hull ID for name

 * German submarine U-238


 * Hull number entered as ship's base name:
 * GERMAN SUBMARINE U-238


 * No ship base name, hull number entered in parameter position 3
 * GERMAN SUBMARINE undefined

Parameter 4 (format): unknown input

 * 4 should be.


 * (hull number missing)

Unknown parameter used

 * For example: 5, bar are not defined
 * Testing: currently the category is shown here
 * Error messages show only in preview rendering
 * Error messages show only in preview rendering

Testing prefix shortcut template
HMCS/sandbox uses

MS prefix
Olau Line


 * Article title does not have a slash: MS Olau Hollandia (1981)