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=CONCAT( '[[', _pageName, '|', name, ']]' )=Supraclass, designation=Superclass, size=Tonnage, TL=TL, origin=Origin, jump=Jump, maneuver=G, canon=Canon
+
   |fields=CONCAT( '[[', _pageName, '|', name, ']]' )=Supraclass, designation=Superclass, size=Tonnage, size-cat=Size-cat, 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 00:14, 7 June 2019

2
Error: No field named "size-cat" found for any of the specified database tables.

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.