Jump to content

User:J Clear/test IB2

From Wikipedia, the free encyclopedia

A proof of concept test with limited parameters implemented. Only commissioning, decommissioning and armament work at this point.

Note this is subject to the limitations of the current {{Infobox Ship}}, so many things aren't hidden yet.

In this initial concept, the editor has to select the template name based on the number of "careers" the ship has had. It could be implemented where the editor always picks the same template and adds sets of paramters. But either way, without an "iterator" and arrays, the number of careers will be statically limited, although easy to extend.

Two career example

[edit]
Career InsertAltTextHere
Commissioned:2006-01-01
Decommissioned:2006-06-30
General Characteristics
Armament:Light
The Mighty Lanier
Second career USS Lanier (APA-125) at an undisclosed location
Career InsertAltTextHere
Commissioned:2006-07-01
Decommissioned:2006-12-30
General Characteristics
Armament:Heavy
{{User:J Clear/Infobox Ship 2
  |Ship commissioned1 = [[2006-01-01]]
  |Ship decommissioned1 = [[2006-06-30]]
  |Ship armament1 = '''Light'''
  |Ship image2 = [[Image:The Mighty Lanier.jpg|300px|The Mighty Lanier]]
  |Ship commissioned2 = [[2006-07-01]]
  |Ship decommissioned2 = [[2006-12-30]]
  |Ship armament2 = '''Heavy'''
}}

Backward compatibility test

[edit]

Note that Infobox Ship 1 would replace Infobox Ship, or be a redirect if that works in the template space.


Career InsertAltTextHere
Commissioned:2006-01-01
Decommissioned:2006-06-30
General Characteristics
Armament:Medium
{{User:J Clear/Infobox Ship 1
  |Ship commissioned = [[2006-01-01]]
  |Ship decommissioned = [[2006-06-30]]
  |Ship armament = '''Medium'''
}}