Template:Sclass/core/testcases




 * hyphened

Basic (1, 2)

 * undefined-class undefined
 * One-class Two
 * One-class Two
 * One-class Two -- hardcoded
 * One-class Two (Five) Two (Four) -- targets



Errors
Benjamin Franklin-class submarine

Format (3)
An optional third parameter allows you to control the format and use the template if Ship type is not an article:

The values and results for format are:
 * 0: suppresses ship type display entirely. Adjectival form
 * 1: displays ship type as part of the single link to the class article
 * 2: displays ship type, but unlinked
 * 3: displays ship type as a separate link. Ship type must be the name of an article
 * 4: suppresses ship type display entirely. Noun form.
 * 5: class name only, suitable for tables
 * 6: Deprecated Use Option 1

To avoid the dreaded red link, one of the first three options must be used if Ship type is not already an article. Note that option 3 is the default, so may be omitted. Other values of format will let you know the error of your ways.


 * Haskell-class attack transport
 * Target article:

DAB (4, 5)

 * DAB-4=1967
 * target: Redoutable-class submarine (dab-4 unused)
 * opt9:
 * Redoutable-class submarine
 * Target article:
 * DAB article:




 * Redoutable-class submarine (1931)
 * Redoutable-class submarine (1967)

5

 * DAB-5=1939
 * target: King George V-class battleship (1939)
 * opt9:
 * King George V-class battleship
 * Target article:
 * DAB article:

Basic2 (1, 2)

 * undefined-class undefined
 * Flower-class corvette

Errors2
Tribal-class destroyer Flower corvette Flower-class corvette

Format2 (3)
An optional third parameter allows you to control the format and use the template if Ship type is not an article:

The values and results for format are:
 * 0: suppresses ship type display entirely. Adjectival form
 * 1: displays ship type as part of the single link to the class article
 * 2: displays ship type, but unlinked
 * 3: displays ship type as a separate link. Ship type must be the name of an article
 * 4: suppresses ship type display entirely. Noun form.
 * 5: class name only, suitable for tables
 * 6: Deprecated Use Option 1

To avoid the dreaded red link, one of the first three options must be used if Ship type is not already an article. Note that option 3 is the default, so may be omitted. Other values of format will let you know the error of your ways.


 * Target article: Flower-class corvette


 * Flower-class corvette

DAB2 (4, 5)

 * Tribal-class destroyer
 * Tribal-class destroyer


 * Tribal-class destroyer