Difference between revisions of "Template:InfoboxSubsector"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
m
(47 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| style="width: 20em; text-align: left; font-size: 95%;" align="right"
+
<noinclude>{{#cargo_declare:
 +
_table=SubsectorData
 +
|name=String
 +
|position=String (size=1)
 +
|sector=Page
 +
|capital=Wikitext
 +
|era=String
 +
}}</noinclude>
 +
{| class="va-infobox"
 
|-  
 
|-  
! colspan="2" style="font-size: larger; background: #ddd;" | {{{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}}}
+
| rowspan="3" style="width:10%" class="rotateright" | [[{{{spinward|Unknown}}} Subsector|{{{spinward|Unknown}}}]]
| style="width:80%" align="center" | {{{coreward}}}
+
| style="width:80%; text-align: center" | [[{{{coreward|Unknown}}} Subsector|{{{coreward|Unknown}}}]]
| rowspan="3" style="width:5%" | {{{trailing}}}
+
| rowspan="3" style="width:10%" class="rotateleft" | [[{{{trailing|Unknown}}} Subsector|{{{trailing|Unknown}}}]]
 
|-
 
|-
 
|
 
|
{| border="1"
+
{{Travellermap Subsector
| rowspan="2" | {{{p0101}}}
+
|{{#dpl: title={{{sector|}}} Sector|include={InfoboxSector}:x}}
| &nbsp;&nbsp;&nbsp;&nbsp;
+
|{{#dpl: title={{{sector|}}} Sector|include={InfoboxSector}:y}}
| rowspan="2" | {{{p0301}}}
+
|{{{position}}}|{{{name|}}} }}
| &nbsp;&nbsp;&nbsp;&nbsp;
 
| rowspan="2" | {{{p0501}}}
 
| &nbsp;&nbsp;&nbsp;&nbsp;
 
| rowspan="2" | {{{p0701}}}
 
| &nbsp;&nbsp;&nbsp;&nbsp;
 
 
|-
 
|-
| rowspan="2" | {{{p0201}}}
+
| style="text-align:center" | [[{{{rimward|Unknown}}} Subsector|{{{rimward|Unknown}}}]]
| rowspan="2" | {{{p0401}}}
+
|}
| rowspan="2" | {{{p0601}}}
 
| rowspan="2" | {{{p0801}}}
 
 
|-
 
|-
| rowspan="2" | {{{p0102}}}
+
| Sector
| rowspan="2" | {{{p0302}}}
+
| [[{{{sector}}} Sector|{{{sector}}}]]
| rowspan="2" | {{{p0502}}}
 
| rowspan="2" | {{{p0702}}}
 
 
|-
 
|-
| rowspan="2" | {{{p0202}}}
+
| Capital
| rowspan="2" | {{{p0402}}}
+
| {{{capital}}}
| rowspan="2" | {{{p0602}}}
 
| rowspan="2" | {{{p0802}}}
 
|-
 
| rowspan="2" | {{{p0103}}}
 
| rowspan="2" | {{{p0303}}}
 
| rowspan="2" | {{{p0503}}}
 
| rowspan="2" | {{{p0703}}}
 
|-
 
| rowspan="2" | {{{p0203}}}
 
| rowspan="2" | {{{p0403}}}
 
| rowspan="2" | {{{p0603}}}
 
| rowspan="2" | {{{p0803}}}
 
|-
 
| rowspan="2" | {{{p0104}}}
 
| rowspan="2" | {{{p0304}}}
 
| rowspan="2" | {{{p0504}}}
 
| rowspan="2" | {{{p0704}}}
 
|-
 
| rowspan="2" | {{{p0204}}}
 
| rowspan="2" | {{{p0404}}}
 
| rowspan="2" | {{{p0604}}}
 
| rowspan="2" | {{{p0804}}}
 
|-
 
| rowspan="2" | {{{p0105}}}
 
| rowspan="2" | {{{p0305}}}
 
| rowspan="2" | {{{p0505}}}
 
| rowspan="2" | {{{p0705}}}
 
|-
 
| rowspan="2" | {{{p0205}}}
 
| rowspan="2" | {{{p0405}}}
 
| rowspan="2" | {{{p0605}}}
 
| rowspan="2" | {{{p0805}}}
 
|-
 
| rowspan="2" | {{{p0106}}}
 
| rowspan="2" | {{{p0306}}}
 
| rowspan="2" | {{{p0506}}}
 
| rowspan="2" | {{{p0706}}}
 
|-
 
| rowspan="2" | {{{p0206}}}
 
| rowspan="2" | {{{p0406}}}
 
| rowspan="2" | {{{p0606}}}
 
| rowspan="2" | {{{p0806}}}
 
|-
 
| rowspan="2" | {{{p0107}}}
 
| rowspan="2" | {{{p0307}}}
 
| rowspan="2" | {{{p0507}}}
 
| rowspan="2" | {{{p0707}}}
 
|-
 
| rowspan="2" | {{{p0207}}}
 
| rowspan="2" | {{{p0407}}}
 
| rowspan="2" | {{{p0607}}}
 
| rowspan="2" | {{{p0807}}}
 
|-
 
| rowspan="2" | {{{p0108}}}
 
| rowspan="2" | {{{p0308}}}
 
| rowspan="2" | {{{p0508}}}
 
| rowspan="2" | {{{p0708}}}
 
|-
 
| rowspan="2" | {{{p0208}}}
 
| rowspan="2" | {{{p0408}}}
 
| rowspan="2" | {{{p0608}}}
 
| rowspan="2" | {{{p0808}}}
 
|-
 
| rowspan="2" | {{{p0109}}}
 
| rowspan="2" | {{{p0309}}}
 
| rowspan="2" | {{{p0509}}}
 
| rowspan="2" | {{{p0709}}}
 
|-
 
| rowspan="2" | {{{p0209}}}
 
| rowspan="2" | {{{p0409}}}
 
| rowspan="2" | {{{p0609}}}
 
| rowspan="2" | {{{p0809}}}
 
|-
 
| rowspan="2" | {{{p0110}}}
 
| rowspan="2" | {{{p0310}}}
 
| rowspan="2" | {{{p0510}}}
 
| rowspan="2" | {{{p0710}}}
 
|-
 
| rowspan="2" | {{{p0210}}}
 
| rowspan="2" | {{{p0410}}}
 
| rowspan="2" | {{{p0610}}}
 
| rowspan="2" | {{{p0810}}}
 
|-
 
| &nbsp;&nbsp;&nbsp;&nbsp;
 
| &nbsp;&nbsp;&nbsp;&nbsp;
 
| &nbsp;&nbsp;&nbsp;&nbsp;
 
| &nbsp;&nbsp;&nbsp;&nbsp;
 
|}
 
|-
 
| align="center" | {{{rimward}}}
 
|}
 
 
|-
 
|-
 
| No. of Stars
 
| No. of Stars
 
| {{{number}}}
 
| {{{number}}}
 +
{{#ifexist: {{PAGENAME}}/data/{{{era|Milieu 1116}}} |
 +
{{!}}-
 +
{{!}} Stellar and Economic data
 +
{{!}} [[{{PAGENAME}}/data/{{{era|Milieu 1116}}}|data page]]
 +
|{{#ifexist: {{PAGENAME}}/data |
 +
{{!}}-
 +
{{!}} Stellar and Economic data
 +
{{!}} [[{{PAGENAME}}/data|data page]]
 +
|}} }}
 
|-
 
|-
 
| Majority Control
 
| Majority Control
 
| {{{c1}}} - {{{c1p}}}%
 
| {{{c1}}} - {{{c1p}}}%
 
|-
 
|-
| Secondary Control
+
{{#if: {{{c2|}}}|
| {{{c2}}} - {{{c2p}}}%
+
{{!}} 2nd Control  
|-
+
{{!}} {{{c2}}} - {{{c2p}}}%
| Sector
+
{{!}}-
| {{{sector}}}
+
}}
|-
+
{{#if: {{{c3|}}}|
| Capital
+
{{!}} 3rd Control
| {{{capital}}}
+
{{!}} {{{c3}}} - {{{c3p}}}%
 +
{{!}}-
 +
}}
 +
{{#if: {{{c4|}}}|
 +
{{!}} 4th Control
 +
{{!}} {{{c4}}} - {{{c4p}}}%
 +
{{!}}-
 +
}}
 +
{{#if: {{{c5|}}}|
 +
{{!}} 5th Control
 +
{{!}} {{{c5}}} - {{{c5p}}}%
 +
{{!}}-
 +
}}
 +
{{#if: {{{c6|}}}|
 +
{{!}} 6th Control
 +
{{!}} {{{c6}}} - {{{c6p}}}%
 +
{{!}}-
 +
}}
 
|}
 
|}
[[Category:Astrography]][[Category:Subsector]]
+
<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.
 +
 
 +
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:
 +
<pre style="clear:both"><nowiki>
 +
{{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}
 +
|
 +
|}}
 +
</nowiki></pre>
 +
* 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.
 +
{{#lsth:Colours|Allegiance standard colors}}
 +
[[Category: Infobox|Subsector]][[Category:Templates|Subsector]][[Category: Cargo Templates|Subsector]]
 +
 
 +
This template requires the use of the Dynamic Page List.
 +
</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.