Difference between revisions of "Template:InfoboxSubsector"
Jump to navigation
Jump to search
(15 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: | + | | rowspan="3" style="width:10%" class="rotateright" | [[{{{spinward|Unknown}}} Subsector|{{{spinward|Unknown}}}]] |
− | | style="width:80% | + | | style="width:80%; text-align: center" | [[{{{coreward|Unknown}}} Subsector|{{{coreward|Unknown}}}]] |
− | | rowspan="3" style="width: | + | | rowspan="3" style="width:10%" class="rotateleft" | [[{{{trailing|Unknown}}} Subsector|{{{trailing|Unknown}}}]] |
|- | |- | ||
| | | | ||
Line 16: | Line 24: | ||
|{{{position}}}|{{{name|}}} }} | |{{{position}}}|{{{name|}}} }} | ||
|- | |- | ||
− | | | + | | style="text-align:center" | [[{{{rimward|Unknown}}} Subsector|{{{rimward|Unknown}}}]] |
|} | |} | ||
+ | |- | ||
+ | | Sector | ||
+ | | [[{{{sector}}} Sector|{{{sector}}}]] | ||
+ | |- | ||
+ | | Capital | ||
+ | | {{{capital}}} | ||
|- | |- | ||
| 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}}}% | ||
|- | |- | ||
− | | | + | {{#if: {{{c2|}}}| |
− | + | {{!}} 2nd Control | |
− | |- | + | {{!}} {{{c2}}} - {{{c2p}}}% |
− | | | + | {{!}}- |
− | | | + | }} |
− | + | {{#if: {{{c3|}}}| | |
− | | | + | {{!}} 3rd Control |
− | + | {{!}} {{{c3}}} - {{{c3p}}}% | |
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{c4|}}}| | ||
+ | {{!}} 4th Control | ||
+ | {{!}} {{{c4}}} - {{{c4p}}}% | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{c5|}}}| | ||
+ | {{!}} 5th Control | ||
+ | {{!}} {{{c5}}} - {{{c5p}}}% | ||
+ | {{!}}- | ||
+ | }} | ||
+ | {{#if: {{{c6|}}}| | ||
+ | {{!}} 6th Control | ||
+ | {{!}} {{{c6}}} - {{{c6p}}}% | ||
+ | {{!}}- | ||
+ | }} | ||
|} | |} | ||
− | <includeonly> | + | <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 43: | Line 93: | ||
<pre style="clear:both"><nowiki> | <pre style="clear:both"><nowiki> | ||
{{InfoboxSubsector | {{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> | </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 | |
---|---|
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:
- Aslan Hierate - ffff00 Aslan
- The Hive Federation - D090FF Hiver
- Solomani Confederation - ff8000 Solomani
- Third Imperium - FFB0B0 Imperial
- K'Kree (Two Thousand Worlds) - 00FF40 K'kree
- Vargr Extents - 688E23 Vargr
- Zhodani Consulate - 7090FF Zhodani
This template requires the use of the Dynamic Page List.