Difference between revisions of "Template:Ship summary list"
Jump to navigation
Jump to search
| Line 5: | Line 5: | ||
tables=Starships | tables=Starships | ||
|where=designation like "{{{tdes|E}}}%" | |where=designation like "{{{tdes|E}}}%" | ||
| − | |fields=CONCAT('[[',_pageName,'|',name,']]')=Class, designation=Superclass, size=Tons, CONCAT('[[', sizeCategory, ']]')=Category, TL=TL, CONCAT('[[', origin, ']]')=Origin, jump=Jump, maneuver=G, canon=Canon | + | |fields=CONCAT('[[',_pageName,'|',name,']]')=Class, designation=Superclass, size=Tons, CONCAT('[[', sizeCategory, ']]')=Category, TL=TL, CONCAT('[[', origin, ']]')=Origin, jump=Jump, maneuver=G, illustration=Image, canon=Canon |
|format=dynamic table | |format=dynamic table | ||
|rows per page=100 | |rows per page=100 | ||
| Line 26: | Line 26: | ||
{{#cargo_compound_query: | {{#cargo_compound_query: | ||
tables=Starships;where=designation like "{{{tdes|E}}}%";fields=CONCAT('[[',_pageName,'|',name,']]')=Class, designation=Superclass, size=Tons, CONCAT('[[', sizeCategory, ']]')=Category, TL=TL, CONCAT('[[', origin, ']]')=Origin, jump=Jump, maneuver=G, canon=Canon | tables=Starships;where=designation like "{{{tdes|E}}}%";fields=CONCAT('[[',_pageName,'|',name,']]')=Class, designation=Superclass, size=Tons, CONCAT('[[', sizeCategory, ']]')=Category, TL=TL, CONCAT('[[', origin, ']]')=Origin, jump=Jump, maneuver=G, canon=Canon | ||
| − | |tables=Starships2;where=designation like "{{{tdes|E}}}%";fields=CONCAT('[[',_pageName,'|',name,']]')=Class, designation=Superclass, format(size,2)=Tons, CONCAT('[[', sizeCategory, ']]')=Category, TL=TL, CONCAT('[[', origin, ']]')=Origin, jump=Jump, maneuver=G, canon=Canon | + | |tables=Starships2;where=designation like "{{{tdes|E}}}%";fields=CONCAT('[[',_pageName,'|',name,']]')=Class, designation=Superclass, format(size,2)=Tons, CONCAT('[[', sizeCategory, ']]')=Category, TL=TL, CONCAT('[[', origin, ']]')=Origin, jump=Jump, maneuver=G, illustration=Image, canon=Canon |
|format=dynamic table | |format=dynamic table | ||
|rows per page=100 | |rows per page=100 | ||
}} | }} | ||
--></noinclude> | --></noinclude> | ||
Revision as of 13:57, 25 July 2019
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 or the Template:InfoboxShip2 template, and show some information from the template.