Template:SandboxShipLine

From VGA Planets Wiki
Revision as of 05:31, 16 May 2014 by ChallengeSpaceYard (talk | contribs) (Testing if parameters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
</noinclude>
        <tr valign="bottom">
          <td bgcolor=#FFFFFF align="left" width="250" valign="top">[[{{{name|Name}}}]]</td>
          <td bgcolor=#FFFFFF align="right" width="32" valign="top">{{{tech|[[Tech Levels|Tc]]}}}</td>
          <td bgcolor=#FFFFFF align="right" width="32" valign="top">{{{beams|0}}}</td>
          <td bgcolor=#FFFFFF align="right" width="32" valign="top">{{{torps|0}}}/{{{fighters|0}}}</td>
          <td bgcolor=#FFFFFF align="right" width="32" valign="top">{{{engines|[[Engines|En]]}}}</td>

          <td bgcolor=#FFFFFF align="right" width="32" valign="top">{{{mc|[[Megacredits|MC]]}}}</td>
          <td bgcolor=#EDDA74 align="right" width="32" valign="top">{{{dur|[[Duranium|Dur]]}}}</td>
          <td bgcolor=#3BB9FF align="right" width="32" valign="top">{{{trit|[[Tritanium|Tri]]}}}</td>
          <td bgcolor=#B5EAAA align="right" width="32" valign="top">{{{moly|[[Molybdenum|Mol]]}}}</td>
          <td bgcolor=#FFFFFF align="right" width="32" valign="top">{{{mass|[[Mass]]}}}</td>
          <td bgcolor=#FFFFFF align="right" width="32" valign="top">{{{cargo|[[Cargo|Car]]}}}</td>

          <td bgcolor=#E77471 align="right" width="32" valign="top">{{{fuel|[[Neutronium|Fuel]]}}}</td>
          <td bgcolor=#FFFFFF align="right" width="32" valign="top">{{{crew|[[Crew]]}}}</td>
          <td bgcolor=#FFFFFF align="left" valign="top">{{{special|none}}}</td>
          <td bgcolor=#FFFFFF align="left" valign="top">{{{adv|0}}}</td>
        </tr>
<noinclude>

Expression error: Unrecognized word "torps". Expression error: Unrecognized word "fighters". Expression error: Unrecognized word "mass".


This template implements a line in a ship table, and categorizes ships with secondary weapons.

Template Syntax:

{{ShipLineSummary
 |name=
 |tech=
 |beams=
 |torps=
 |fighters=
 |engines=
 |mc=
 |dur=
 |trit=
 |moly=
 |mass=
 |cargo=
 |fuel=
 |crew=
 |special=
 |adv=
}}

The |beams=, |torps=, |fighters=, and |adv parameters are optional, and default to 0 when omitted. Likewise, |special= is optional, and defaults to none when omitted.

Examples

{{ShipLineSummary|name=Outrider Class Scout|tech=1|beams=1|engines=1|mc=50|dur=20|trit=40|moly=5|mass=75|cargo=40|fuel=260|crew=180|special=[[Cloak|Cl]]}}