Difference between revisions of "Template:Ship summary list"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
| − | <div class="toccolours inlineb" style="clear: left; margin: 0.5em auto; text-align: left; padding: 0em; border-radius: | + | <div class="toccolours inlineb" style="clear: left; margin: 0.5em auto; text-align: left; padding: 0em; border-radius: 6px; max-width: 94%; overflow: hidden"> |
<div style="padding-top: 0.2em; padding-bottom: 0.2em; background:#ccccff; font-weight:bold; text-align: center"> | <div style="padding-top: 0.2em; padding-bottom: 0.2em; background:#ccccff; font-weight:bold; text-align: center"> | ||
| − | {{#expr: {{#cargo_query: tables=Starships | + | {{#expr: {{#cargo_query: tables=Starships|where=designation like "{{{tdes|E}}}%"|fields=count(*)=ship_count|format=template|template=Ship summary list.display}} }} Representative {{{name|unknown}}} ({{{tdes|D}}}) Classes</div><div style="font-size: 100%; padding: 0.5em 1em"> |
| − | + | {{#cargo_query: | |
| − | tables=Starships | + | 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 | ||
|format=dynamic table | |format=dynamic table | ||
| − | }} | + | |rows per page=100 |
| − | </div></div><noinclude> | + | }}</div></div><noinclude> |
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. | 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. | ||
| Line 21: | Line 22: | ||
[[Category: Templates|Ships summary list]] | [[Category: Templates|Ships summary list]] | ||
| − | [[Category: Cargo Templates|Ships summary list]]</noinclude> | + | [[Category: Cargo Templates|Ships summary list]] |
| + | <!-- | ||
| + | {{#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=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 | ||
| + | |format=dynamic table | ||
| + | |rows per page=100 | ||
| + | }} | ||
| + | --></noinclude> | ||
Revision as of 14:09, 27 June 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.