Difference between revisions of "Template:InfoboxSubsector"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
(Add selective data page link)
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<noinclude>{{#cargo_declare:
 +
_table=SubsectorData
 +
|name=String
 +
|position=String (size=1)
 +
|sector=Page
 +
|capital=Wikitext
 +
|era=String
 +
}}</noinclude>
 
{| class="va-infobox"
 
{| class="va-infobox"
 
|-  
 
|-  
! colspan="2" style="background: #{{Allegiance colors|{{{alg}}}}}" | {{{name}}} Subsector
+
! colspan="2" class="color2" style="background: #{{Allegiance colors|{{{alg}}}}}" | {{{name}}} Subsector
 
|-
 
|-
 
| colspan="2" style="border-bottom: 1px solid #aaa" |
 
| colspan="2" style="border-bottom: 1px solid #aaa" |
 
{|
 
{|
 
|-
 
|-
| rowspan="3" style="width:5%" | [[{{{spinward}}} Subsector|{{{spinward}}}]]
+
| rowspan="3" style="width:10%" class="rotateright" | [[{{{spinward|Unknown}}} Subsector|{{{spinward|Unknown}}}]]
| style="width:80%" align="center" | [[{{{coreward}}} Subsector|{{{coreward}}}]]
+
| style="width:80%; text-align: center" | [[{{{coreward|Unknown}}} Subsector|{{{coreward|Unknown}}}]]
| rowspan="3" style="width:5%" | [[{{{trailing}}} Subsector|{{{trailing}}}]]
+
| rowspan="3" style="width:10%" class="rotateleft" | [[{{{trailing|Unknown}}} Subsector|{{{trailing|Unknown}}}]]
 
|-
 
|-
 
|
 
|
Line 16: Line 24:
 
  |{{{position}}}|{{{name|}}} }}
 
  |{{{position}}}|{{{name|}}} }}
 
|-
 
|-
| align="center" | [[{{{rimward}}} Subsector|{{{rimward}}}]]
+
| style="text-align:center" | [[{{{rimward|Unknown}}} Subsector|{{{rimward|Unknown}}}]]
 
|}
 
|}
 
|-
 
|-
Line 27: Line 35:
 
| No. of Stars
 
| No. of Stars
 
| {{{number}}}
 
| {{{number}}}
{{#ifexist: {{{PAGENAME}}}/data |
+
{{#ifexist: {{PAGENAME}}/data/{{{era|Milieu 1116}}} |
 
{{!}}-
 
{{!}}-
{{!}} Sector and Economic data
+
{{!}} Stellar and Economic data
{{!}} [[{{{PAGENAME}}}/data|data page]]
+
{{!}} [[{{PAGENAME}}/data/{{{era|Milieu 1116}}}|data page]]
|}}
+
|{{#ifexist: {{PAGENAME}}/data |
 +
{{!}}-
 +
{{!}} Stellar and Economic data
 +
{{!}} [[{{PAGENAME}}/data|data page]]
 +
|}} }}
 
|-
 
|-
 
| Majority Control
 
| Majority Control
Line 37: Line 49:
 
|-
 
|-
 
{{#if: {{{c2|}}}|
 
{{#if: {{{c2|}}}|
{{!}} Secondary Control  
+
{{!}} 2nd Control  
 
{{!}} {{{c2}}} - {{{c2p}}}%
 
{{!}} {{{c2}}} - {{{c2p}}}%
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
{{#if: {{{c3|}}}|
 
{{#if: {{{c3|}}}|
{{!}} Tertiary Control  
+
{{!}} 3rd Control  
 
{{!}} {{{c3}}} - {{{c3p}}}%
 
{{!}} {{{c3}}} - {{{c3p}}}%
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
{{#if: {{{c4|}}}|
 
{{#if: {{{c4|}}}|
{{!}} Quaternary Control  
+
{{!}} 4th Control  
 
{{!}} {{{c4}}} - {{{c4p}}}%
 
{{!}} {{{c4}}} - {{{c4p}}}%
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
{{#if: {{{c5|}}}|
 
{{#if: {{{c5|}}}|
{{!}} Quiniary Control  
+
{{!}} 5th Control  
 
{{!}} {{{c5}}} - {{{c5p}}}%
 
{{!}} {{{c5}}} - {{{c5p}}}%
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
{{#if: {{{c6|}}}|
 
{{#if: {{{c6|}}}|
{{!}} Sextenary Control  
+
{{!}} 6th Control  
 
{{!}} {{{c6}}} - {{{c6p}}}%
 
{{!}} {{{c6}}} - {{{c6p}}}%
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
|}
 
|}
<includeonly>[[Category:Subsectors]][[Category: Subsectors in position {{{position}}}]]{{Allegiance subsector categories|{{{alg}}}}}</includeonly><noinclude>
+
<includeonly>
 +
{{#cargo_store:
 +
_table=SubsectorData
 +
|name={{{name|}}}
 +
|position={{{position}}}
 +
|sector={{{sector}}}
 +
|capital={{{capital|}}}
 +
|era={{{era|Milieu 1116}}}
 +
}}[[Category:Subsectors]]
 +
[[Category: Subsectors in position {{{position}}}]]
 +
{{Allegiance subsector categories|{{{alg}}}}}
 +
[[Category:Subsector in {{{sector|}}} Sector]]</includeonly><noinclude>
 
This infobox is to display a subsector with the interactive Traveller map. This allows showing a map with each subsector.  
 
This infobox is to display a subsector with the interactive Traveller map. This allows showing a map with each subsector.  
  
Line 70: Line 93:
 
<pre style="clear:both"><nowiki>
 
<pre style="clear:both"><nowiki>
 
{{InfoboxSubsector
 
{{InfoboxSubsector
  |name={Subsector Name}
+
|name   = {Subsector Name}
  |number={Number of stars}
+
|
  |spinward={subsector to spinward}
+
|alg    = {majority allegiance: Im, So, Hv, Zh, Kk, Va, As }
  |coreward={subsector to coreward}
+
|capital = {Subsector Capital world}
  |trailing={subsector to trailing}
+
|era    = {Era for the posting of the subsector information} (has default of Milieu 1105 or 1116)
  |rimward={subsector to rimward}
+
|
  |sector={sector where located}
+
|number  = {Number of stars}
  |position=(Position within sector: One of A-P)
+
|position= (Position within sector: One of A-P)
  |capital={Subsector Capital world}
+
|sector  = {sector where located}
  |c1={majority control allegiance}
+
|
  |c1p={percent of worlds under majority control}
+
|c1     = {majority control allegiance}
  |c2={secondary control allegiance}
+
|c1p     = {percent of worlds under majority control}
  |c2p={percent of worlds under secondary control}
+
|c2     = {secondary control allegiance}
  |c3={tertiary control allegiance}
+
|c2p     = {percent of worlds under secondary control}
  |c3p={percent of worlds under tertiary control}
+
|c3     = {tertiary control allegiance}
  |c4={quaternary control allegiance}
+
|c3p     = {percent of worlds under tertiary control}
  |c4p={percent of worlds under quaternary control}
+
|c4     = {quaternary control allegiance}
  |c5={quiniary control allegiance}
+
|c4p     = {percent of worlds under quaternary control}
  |c5p={percent of worlds under quiniary control}
+
|c5     = {quiniary control allegiance}
  |c6={sextenary control allegiance}
+
|c5p     = {percent of worlds under quiniary control}
  |c6p={percent of worlds under sextenary control}
+
|c6     = {sextenary control allegiance}
  |alg= {majority allegiance: Im, So, Hv, Zh, Kk, Va, As }
+
|c6p     = {percent of worlds under sextenary control}
}}
+
|
 +
|spinward= {subsector to spinward}
 +
|coreward= {subsector to coreward}
 +
|trailing= {subsector to trailing}
 +
|rimward = {subsector to rimward}
 +
|
 +
|}}
 
</nowiki></pre>
 
</nowiki></pre>
 
 
* The position= parameter uses the letter codes (A-P) to indicate which subsector should be selected by the display map.  
 
* The position= parameter uses the letter codes (A-P) to indicate which subsector should be selected by the display map.  
 
* The sector= parameter should be just the sector name, the template converts it into the correct link for display. In order to make this work correctly the sector page must have the [[Template: InfoboxSector]] included.  
 
* The sector= parameter should be just the sector name, the template converts it into the correct link for display. In order to make this work correctly the sector page must have the [[Template: InfoboxSector]] included.  
 
* The alg= parameter sets the color of the title bar to match the allegiance color of the empire selected, defaulting to gray.  
 
* The alg= parameter sets the color of the title bar to match the allegiance color of the empire selected, defaulting to gray.  
 
+
{{#lsth:Colours|Allegiance standard colors}}
{{:Allegiance standard colors}}
+
[[Category: Infobox|Subsector]][[Category:Templates|Subsector]][[Category: Cargo Templates|Subsector]]
[[Category: Infobox|Subsector]][[Category:Templates|Subsector]]
 
  
 
This template requires the use of the Dynamic Page List.  
 
This template requires the use of the Dynamic Page List.  
 
</noinclude>
 
</noinclude>

Revision as of 23:22, 6 February 2020

This template defines the table "SubsectorData". View table.

{{{name}}} Subsector
Unknown Unknown Unknown

Expression error: Unexpected * operator.&y=Expression error: Unexpected * operator.&scale=32&options=25439&galdir=0 style="width: 250px; height: 350px; border: solid 1px black;"
map from Travellermap.com

Unknown
Sector [[{{{sector}}} Sector|{{{sector}}}]]
Capital {{{capital}}}
No. of Stars {{{number}}}
Majority Control {{{c1}}} - {{{c1p}}}%

This infobox is to display a subsector with the interactive Traveller map. This allows showing a map with each subsector.

A similar infobox without the subsector map is also available see Template: InfoboxSubsectorSimple. If you would like to use an imagemap, see the Template: InfoboxSubsectorImagemap

Use:

{{InfoboxSubsector
|name    = {Subsector Name}
|
|alg     = {majority allegiance: Im, So, Hv, Zh, Kk, Va, As }
|capital = {Subsector Capital world}
|era     = {Era for the posting of the subsector information} (has default of Milieu 1105 or 1116)
|
|number  = {Number of stars}
|position= (Position within sector: One of A-P)
|sector  = {sector where located}
|
|c1      = {majority control allegiance}
|c1p     = {percent of worlds under majority control}
|c2      = {secondary control allegiance}
|c2p     = {percent of worlds under secondary control}
|c3      = {tertiary control allegiance}
|c3p     = {percent of worlds under tertiary control}
|c4      = {quaternary control allegiance}
|c4p     = {percent of worlds under quaternary control}
|c5      = {quiniary control allegiance}
|c5p     = {percent of worlds under quiniary control}
|c6      = {sextenary control allegiance}
|c6p     = {percent of worlds under sextenary control}
|
 |spinward= {subsector to spinward}
 |coreward= {subsector to coreward}
 |trailing= {subsector to trailing}
 |rimward = {subsector to rimward}
|
|}}
  • The position= parameter uses the letter codes (A-P) to indicate which subsector should be selected by the display map.
  • The sector= parameter should be just the sector name, the template converts it into the correct link for display. In order to make this work correctly the sector page must have the Template: InfoboxSector included.
  • The alg= parameter sets the color of the title bar to match the allegiance color of the empire selected, defaulting to gray.

The Traveller wiki has a set of standard colors to be use for backgrounds when representing the larger empires in Charted Space. These colors match the colors used by the Traveller Map for the same empires. They are as follows:

This template requires the use of the Dynamic Page List.