Difference between revisions of "Template:SectorDataQuery"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
 
(16 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
# Generated by http://wiki.travellerrpg.com/
 
# Generated by http://wiki.travellerrpg.com/
 
# {{#time: Y-m-d H:i:sP}}
 
# {{#time: Y-m-d H:i:sP}}
 
 
{{#cargo_query: tables=SectorData
 
{{#cargo_query: tables=SectorData
  |fields=name, pos_x, pos_y, source, credits, other_names
+
  |fields=name, pos_x=posX, pos_y=posY, source, credits, other_names=otherNames, CONCAT('{{#replace:{{{era|}}}|'|''}}')=era
 
  |where=name=CONCAT('{{#replace:{{{sector|}}}|'|''}}')
 
  |where=name=CONCAT('{{#replace:{{{sector|}}}|'|''}}')
  |format=tempate
+
  |format=template
 
  |template=SectorDataQuery.header.layout
 
  |template=SectorDataQuery.header.layout
 
  |named args=yes
 
  |named args=yes
 
  |more results text=
 
  |more results text=
 
}}
 
}}
 
+
{{#cargo_query: tables=SubsectorData
# {{{sector}}}
+
|fields=position,name
# -1,0
+
|where=sector=CONCAT('{{#replace:{{{sector|}}}|'|''}}') and era=CONCAT('{{#replace:{{{era|}}}|'|''}}')
 
+
|order by=position
# Era: {{{era}}}
+
|format=template
 
+
|template=SectorData.subsectors.layout
# Source:    Traveller 5 Second Survey
+
|named args=yes
 
+
}}
# Subsector A:
 
# Subsector B:
 
# Subsector C:
 
# Subsector D:
 
# Subsector E:
 
# Subsector F:
 
# Subsector G:
 
# Subsector H:
 
# Subsector I:
 
# Subsector J:
 
# Subsector K:
 
# Subsector L:
 
# Subsector M:
 
# Subsector N:
 
# Subsector O:
 
# Subsector P:
 
  
 
{{#cargo_query: tables=StellarData,AllegianceCode
 
{{#cargo_query: tables=StellarData,AllegianceCode
Line 48: Line 31:
 
}}
 
}}
  
Hex  Name                UWP      Remarks                               {Ix}  (Ex)    [Cx]  N   B  Z PBG W  A    Stellar         
+
Hex  Name                UWP      Remarks                                             {Ix}  (Ex)    [Cx]  N     B  Z PBG W  A    Stellar         
<nowiki>---- -------------------- --------- -------------------------------------- ------ ------- ------ ---- --- - --- -- ---- ---------------</nowiki>
+
<nowiki>---- -------------------- --------- ---------------------------------------------------- ------ ------- ------ ----- --- - --- -- ---- -------------------</nowiki>
 
{{#cargo_query:
 
{{#cargo_query:
 
   tables=StellarData
 
   tables=StellarData
Line 62: Line 45:
 
  |more results text=
 
  |more results text=
 
}}
 
}}
</pre<noinclude></noinclude> ><noinclude>[[Category:Cargo Templates]][[Category:Templates]]</noinclude>
+
</pre<noinclude></noinclude> ><noinclude>
 +
Used to generate a full listing of sector data in a given era into the T5 Second Survey data format.
 +
 
 +
parameters:
 +
: sector = sector name
 +
: era    = era name
 +
 
 +
Uses the following templates for layout:
 +
* [[Template:SectorDataQuery.header.layout]] - base sector information: credits, location, name
 +
* [[Template:SectorData.subsectors.layout]]  - Subsector information, list by position
 +
* [[Template:SectorDataQuery.allegiance.query]] - Allegiance information, list by code
 +
* [[Template:SectorDataQuery.layout]] - Main data layout, with spacing.
 +
[[Category:Cargo Templates]][[Category:Templates]]
 +
 
 +
</noinclude>

Latest revision as of 10:43, 14 September 2016

# Generated by http://wiki.travellerrpg.com/
# 2025-12-06 06:04:55+00:00
No results
No results

No results

Hex  Name                 UWP       Remarks                                              {Ix}   (Ex)    [Cx]   N     B   Z PBG W  A    Stellar        
---- -------------------- --------- ---------------------------------------------------- ------ ------- ------ ----- --- - --- -- ---- -------------------
No results

Used to generate a full listing of sector data in a given era into the T5 Second Survey data format.

parameters:

sector = sector name
era = era name

Uses the following templates for layout: