Difference between revisions of "Template:Ship summary list"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
Line 5: Line 5:
 
  |where=designation like "{{{tdes|BB}}}%"
 
  |where=designation like "{{{tdes|BB}}}%"
 
}} {{#cargo_query: table=Starships
 
}} {{#cargo_query: table=Starships
   |fields=designation=Superclass, CONCAT('[[',_pageName,'|',name,']]')=Class, size=Tons, TL=TL, origin=Origin, jump=Jump, maneuver=G, canon=Canon
+
   |fields=designation=Superclass, CONCAT ('[[',_pageName,'|',name,']]')=Class, size=Tons, TL=TL, origin=Origin, jump=Jump, maneuver=G, canon=Canon
 
   |where=designation like "{{{tdes|BB}}}%"
 
   |where=designation like "{{{tdes|BB}}}%"
 
   |format=dynamic table
 
   |format=dynamic table

Revision as of 18:39, 7 June 2019

2 Representative unknown (XX) Classes
Superclass Class Tons TL Origin Jump G Canon
Superclass Class Tons TL Origin Jump G Canon
BB Magada class Battleship 95,000 11 Firstworlds 2 3 No. Unpublished, non-canon fan design.
BB Voroshilef class Battleship 200,000 13 Third Imperium 3 2 Yes. Published, canon starship design.

Generates a summary list of specific classes of starships in the library. This uses the Ship type codes designation as the driver for the ships selected.

Parameters (both required):

name
Name of the class (e.g. Battleship)
tdes
designation for the class (e.g. BB)

The template will show all of the pages using the Template: InfoboxShip template, and show some information from the template.