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: 4px; max-width: 94%; overflow: hidden"> | <div class="toccolours inlineb" style="clear: left; margin: 0.5em auto; text-align: left; padding: 0em; border-radius: 4px; 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|where=designation like "{{{tdes| | + | {{#expr: {{#cargo_query: tables=Starships|where=designation like "{{{tdes|E}}}%"|fields=count(*)=ship_count|format=template|template=Ship summary list.display}}+{{#cargo_query: tables=Starships2|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_compound_query: | {{#cargo_compound_query: | ||
| − | tables=Starships;where=designation like "{{{tdes| | + | 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| | + | |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 | |format=dynamic table | ||
| − | |||
}} | }} | ||
</div></div><noinclude> | </div></div><noinclude> | ||
Revision as of 13:22, 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.