Template:Ship name format/testcases
Appearance
This is the template test cases page for the sandbox of Template:Ship name format. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Test1 – typical case, name parameter provided, no unnamed parameter
{{Ship name format|name=USS Will Rogers (SSBN-659)}}
{{Ship name format}}
USS Will Rogers (SSBN-659)
USS Will Rogers (SSBN-659)
Test2 – name overrides first unnamed parameter
{{Ship name format|HMS Victory|name=USS Constitution}}
{{Ship name format}}
USS Constitution
USS Constitution
Test3 – name missing, first unnamed parameter used
Test4 – hide dab
{{Ship name format|dab=none |name=USS Will Rogers (SSBN-659)}}
{{Ship name format}}
USS Will Rogers
USS Will Rogers
Test5 – ship class
{{Ship name format|name=Benjamin Franklin-class submarine}}
{{Ship name format}}
Benjamin Franklin-class submarine
Benjamin Franklin-class submarine
Test6 – ship class; class not named for a member of the class
{{Ship name format|name=Flower-class corvette |sclass=2}}
{{Ship name format}}
Flower-class corvette
Flower-class corvette
Test7 – ship class; noun-form
{{Ship name format|adj=off |name=Benjamin Franklin-class submarine}}
{{Ship name format}}
Benjamin Franklin class
Benjamin Franklin class