Template:Infobox ship begin/testcases
| This is the template test cases page for the sandbox of Template:Infobox ship begin. 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: |
| Class overview | |
|---|---|
| Builders | {{{Builders}}} |
| Operators | {{{Operators}}} |
| Preceded by | {{{Class before}}} |
| Succeeded by | {{{Class after}}} |
| Subclasses | {{{Subclasses}}} |
| Cost | {{{Cost}}} |
| Built | {{{Built range}}} |
| In service | {{{In service range}}} |
| In commission | {{{In commission range}}} |
| Planned | {{{Total ships planned}}} |
| On order | {{{Total ships on order}}} |
| Building | {{{Total ships building}}} |
| Completed | {{{Total ships completed}}} |
| Cancelled | {{{Total ships cancelled}}} |
| Active | {{{Total ships active}}} |
| Laid up | {{{Total ships laid up}}} |
| Lost | {{{Total ships lost}}} |
| Retired | {{{Total ships retired}}} |
| Scrapped | {{{Total ships scrapped}}} |
| Preserved | {{{Total ships preserved}}} |
| History | |
| malformed flag image{{{Ship country}}} | |
| Name | {{{Ship name}}} |
| Namesake | {{{Ship namesake}}} |
| Owner | {{{Ship owner}}} |
| Operator | {{{Ship operator}}} |
| Port of registry | {{{Ship registry}}} |
| Route | {{{Ship route}}} |
| Ordered | {{{Ship ordered}}} |
| Awarded | {{{Ship awarded}}} |
| Builder | {{{Ship builder}}} |
| Cost | {{{Ship original cost}}} |
| Yard number | {{{Ship yard number}}} |
| Way number | {{{Ship way number}}} |
| Laid down | {{{Ship laid down}}} |
| Launched | {{{Ship launched}}} |
| Sponsored by | {{{Ship sponsor}}} |
| Christened | {{{Ship christened}}} |
| Completed | {{{Ship completed}}} |
| Acquired | {{{Ship acquired}}} |
| Commissioned | {{{Ship commissioned}}} |
| Recommissioned | {{{Ship recommissioned}}} |
| Decommissioned | {{{Ship decommissioned}}} |
| Maiden voyage | {{{Ship maiden voyage}}} |
| In service | {{{Ship in service}}} |
| Out of service | {{{Ship out of service}}} |
| Renamed | {{{Ship renamed}}} |
| Reclassified | {{{Ship reclassified}}} |
| Refit | {{{Ship refit}}} |
| Stricken | {{{Ship struck}}} Error: has synonymous parameter (help) |
| Stricken | {{{Ship stricken}}} Error: has synonymous parameter (help) |
| Reinstated | {{{Ship reinstated}}} |
| Homeport | {{{Ship homeport}}} |
| Identification | {{{Ship identification}}} |
| Motto | {{{Ship motto}}} |
| Nickname(s) | {{{Ship nickname}}} |
| Honours & awards | {{{Ship honours}}} Error: has synonymous parameter (help) |
| Honors & awards | {{{Ship honors}}} Error: has synonymous parameter (help) |
| Captured | {{{Ship captured}}} |
| Fate | {{{Ship fate}}} |
| Status | {{{Ship status}}} |
| Notes | {{{Ship notes}}} |
| Badge | {{{Ship badge}}} |
| General characteristics | |
| Class & type | {{{Ship class}}} |
| Type | {{{Ship type}}} |
| Tonnage | {{{Ship tonnage}}} |
| Displacement | {{{Ship displacement}}} |
| Tons burthen | {{{Ship tons burthen}}} |
| Length | {{{Ship length}}} |
| Beam | {{{Ship beam}}} |
| Height | {{{Ship height}}} |
| Draught | {{{Ship draught}}} Error: has synonymous parameter (help) |
| Draft | {{{Ship draft}}} Error: has synonymous parameter (help) |
| Depth | {{{Ship depth}}} |
| Depth of hold | {{{Ship hold depth}}} |
| Decks | {{{Ship decks}}} |
| Deck clearance | {{{Ship deck clearance}}} |
| Ramps | {{{Ship ramps}}} |
| Ice class | {{{Ship ice class}}} |
| Installed power | {{{Ship power}}} |
| Propulsion | {{{Ship propulsion}}} |
| Sail plan | {{{Ship sail plan}}} |
| Speed | {{{Ship speed}}} |
| Range | {{{Ship range}}} |
| Endurance | {{{Ship endurance}}} |
| Test depth | {{{Ship test depth}}} |
| Boats & landing craft carried | {{{Ship boats}}} |
| Capacity | {{{Ship capacity}}} |
| Troops | {{{Ship troops}}} |
| Complement | {{{Ship complement}}} |
| Crew | {{{Ship crew}}} |
| Time to activate | {{{Ship time to activate}}} |
| Sensors & processing systems | {{{Ship sensors}}} |
| Electronic warfare & decoys | {{{Ship EW}}} |
| Armament | {{{Ship armament}}} |
| Armour | {{{Ship armour}}} Error: has synonymous parameter (help) |
| Armor | {{{Ship armor}}} Error: has synonymous parameter (help) |
| Aircraft carried | {{{Ship aircraft}}} |
| Aviation facilities | {{{Ship aircraft facilities}}} |
| Notes | {{{Ship notes}}} |
| History | |
|---|---|
| Name |
|
| History | |
| Name | Example 2: |Hide header= |
| Name | Example 3: |Hide header=title |
| Name | Example 4: |Hide header=yes |
| Class overview | |
|---|---|
| Builders | {{{Builders}}} |
| Operators | {{{Operators}}} |
| Preceded by | {{{Class before}}} |
| Succeeded by | {{{Class after}}} |
| Subclasses | {{{Subclasses}}} |
| Cost | {{{Cost}}} |
| Built | {{{Built range}}} |
| In service | {{{In service range}}} |
| In commission | {{{In commission range}}} |
| Planned | {{{Total ships planned}}} |
| On order | {{{Total ships on order}}} |
| Building | {{{Total ships building}}} |
| Completed | {{{Total ships completed}}} |
| Cancelled | {{{Total ships cancelled}}} |
| Active | {{{Total ships active}}} |
| Laid up | {{{Total ships laid up}}} |
| Lost | {{{Total ships lost}}} |
| Retired | {{{Total ships retired}}} |
| Scrapped | {{{Total ships scrapped}}} |
| Preserved | {{{Total ships preserved}}} |
| History | |
| malformed flag image{{{Ship country}}} | |
| Name | {{{Ship name}}} |
| Namesake | {{{Ship namesake}}} |
| Owner | {{{Ship owner}}} |
| Operator | {{{Ship operator}}} |
| Port of registry | {{{Ship registry}}} |
| Route | {{{Ship route}}} |
| Ordered | {{{Ship ordered}}} |
| Awarded | {{{Ship awarded}}} |
| Builder | {{{Ship builder}}} |
| Cost | {{{Ship original cost}}} |
| Yard number | {{{Ship yard number}}} |
| Way number | {{{Ship way number}}} |
| Laid down | {{{Ship laid down}}} |
| Launched | {{{Ship launched}}} |
| Sponsored by | {{{Ship sponsor}}} |
| Christened | {{{Ship christened}}} |
| Completed | {{{Ship completed}}} |
| Acquired | {{{Ship acquired}}} |
| Commissioned | {{{Ship commissioned}}} |
| Recommissioned | {{{Ship recommissioned}}} |
| Decommissioned | {{{Ship decommissioned}}} |
| Maiden voyage | {{{Ship maiden voyage}}} |
| In service | {{{Ship in service}}} |
| Out of service | {{{Ship out of service}}} |
| Renamed | {{{Ship renamed}}} |
| Reclassified | {{{Ship reclassified}}} |
| Refit | {{{Ship refit}}} |
| Stricken | {{{Ship struck}}} Error: has synonymous parameter (help) |
| Stricken | {{{Ship stricken}}} Error: has synonymous parameter (help) |
| Reinstated | {{{Ship reinstated}}} |
| Homeport | {{{Ship homeport}}} |
| Identification | {{{Ship identification}}} |
| Motto | {{{Ship motto}}} |
| Nickname(s) | {{{Ship nickname}}} |
| Honours and awards | {{{Ship honours}}} Error: has synonymous parameter (help) |
| Honors and awards | {{{Ship honors}}} Error: has synonymous parameter (help) |
| Captured | {{{Ship captured}}} |
| Fate | {{{Ship fate}}} |
| Status | {{{Ship status}}} |
| Notes | {{{Ship notes}}} |
| Badge | {{{Ship badge}}} |
| General characteristics | |
| Class and type | {{{Ship class}}} |
| Type | {{{Ship type}}} |
| Tonnage | {{{Ship tonnage}}} |
| Displacement | {{{Ship displacement}}} |
| Tons burthen | {{{Ship tons burthen}}} |
| Length | {{{Ship length}}} |
| Beam | {{{Ship beam}}} |
| Height | {{{Ship height}}} |
| Draught | {{{Ship draught}}} Error: has synonymous parameter (help) |
| Draft | {{{Ship draft}}} Error: has synonymous parameter (help) |
| Depth | {{{Ship depth}}} |
| Depth of hold | {{{Ship hold depth}}} |
| Decks | {{{Ship decks}}} |
| Deck clearance | {{{Ship deck clearance}}} |
| Ramps | {{{Ship ramps}}} |
| Ice class | {{{Ship ice class}}} |
| Installed power | {{{Ship power}}} |
| Propulsion | {{{Ship propulsion}}} |
| Sail plan | {{{Ship sail plan}}} |
| Speed | {{{Ship speed}}} |
| Range | {{{Ship range}}} |
| Endurance | {{{Ship endurance}}} |
| Test depth | {{{Ship test depth}}} |
| Boats & landing craft carried | {{{Ship boats}}} |
| Capacity | {{{Ship capacity}}} |
| Troops | {{{Ship troops}}} |
| Complement | {{{Ship complement}}} |
| Crew | {{{Ship crew}}} |
| Time to activate | {{{Ship time to activate}}} |
| Sensors and processing systems | {{{Ship sensors}}} |
| Electronic warfare & decoys | {{{Ship EW}}} |
| Armament | {{{Ship armament}}} |
| Armour | {{{Ship armour}}} Error: has synonymous parameter (help) |
| Armor | {{{Ship armor}}} Error: has synonymous parameter (help) |
| Aircraft carried | {{{Ship aircraft}}} |
| Aviation facilities | {{{Ship aircraft facilities}}} |
| Notes | {{{Ship notes}}} |
| History | |
|---|---|
| Name |
|
| History | |
| Name | Example 2: |Hide header= |
| Name | Example 3: |Hide header=title |
| Name | Example 4: |Hide header=yes |
2021-06-20
[edit]This is a comparison of the live (on the left) and sandbox (on the right) versions of {{Infobox ship career}}, {{Infobox ship characteristics}}, and {{Infobox ship class overview}}. The sandbox templates are implemented in Module:WPSHIPS utilities/sandbox. Shifting to the module removes the redundant html markup; simplifies the markup, and fixes certain anomalies in the markup. The sandbox infoboxen also implement the requested change to how labels in the infoboxen are rendered; see Template talk:Infobox ship begin § Remove colons, add bolding.
Aside from the labeling style change, the sandbox infoboxen now detect the use of synonymous parameters:
{{Infobox ship career}}|Ship struck=and|Ship stricken=|Ship honours=and|Ship honors=
{{Infobox ship characteristics}}|Ship draught=and|Ship draft=|Ship armour=and|Ship armor=
When both of a pair of synonymous parameters have assigned values, the sandbox infobox renders the parameters with an error message: has synonymous parameter.
The live {{Infobox ship characteristics}} emits Category:Pages using infobox ship with both armor and amour when those parameters are both used; the other synonymous parameters are not categorized. The sandbox infoboxen categorize all misuses of synonymous parameters into Category:Pages using infobox ship with synonymous parameters.