Difference between revisions of "Template:WorldSummaryComment"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
Line 2: Line 2:
 
  |O:=* The governance of this world is from {{World name from Hex|{{#sub:{{{1|}}}|2}} }}
 
  |O:=* The governance of this world is from {{World name from Hex|{{#sub:{{{1|}}}|2}} }}
 
  |C:=* The world has a colony on  {{World name from Hex|{{#sub:{{{1|}}}|2}} }}
 
  |C:=* The world has a colony on  {{World name from Hex|{{#sub:{{{1|}}}|2}} }}
  |{{#dpl:title=Trade classification/summaries|include="{{{1}}}"}} }}<noinclude>
+
  |{{#cargo_query: tables=TradeSummary|fields=description|where=code=CONCAT('{{{1}}}')}}<noinclude>
 
[[Category:Templates|World summary]]
 
[[Category:Templates|World summary]]
 
[[Category:DPL Templates|World summary]]
 
[[Category:DPL Templates|World summary]]
Line 12: Line 12:
  
 
* trade = A single trade code. These need to match the code in [[Trade classification/summaries#Additional Comments]]. Add new ones if required.
 
* trade = A single trade code. These need to match the code in [[Trade classification/summaries#Additional Comments]]. Add new ones if required.
 +
 +
 
</noinclude>
 
</noinclude>

Revision as of 15:49, 7 May 2016

{{#switch:

|O:=* The governance of this world is from 
|C:=* The world has a colony on  

|

Error: operator for the virtual field 'TradeSummary.code' must be 'HOLDS', 'HOLDS NOT', 'HOLDS LIKE' or 'HOLDS NOT LIKE'.

Expands the additional Trade classification comments(e.g. Da, Pz, Mr, etc) into a text summary from Trade classification/summaries. This is designed to be used with the Template:World summary as a lead in.

Parameters are: