Difference between revisions of "Template:InfoboxSector"
Jump to navigation
Jump to search
| Line 13: | Line 13: | ||
|} | |} | ||
|- | |- | ||
| − | !style="background: #b0c4de; text-align: center" colspan="2"|Subsectors | + | !style="background: #b0c4de; text-align: center" colspan="2" |
| + | |Subsectors | ||
|- | |- | ||
|colspan="2" align="center" | | |colspan="2" align="center" | | ||
| Line 50: | Line 51: | ||
{{!}}{{{population}}} million | {{!}}{{{population}}} million | ||
{{!}}-}} | {{!}}-}} | ||
| + | |||
{{#if: {{{c1|}}}| | {{#if: {{{c1|}}}| | ||
{{!}}Majority Control | {{!}}Majority Control | ||
{{!}}{{{c1}}} - {{{c1p}}}% | {{!}}{{{c1}}} - {{{c1p}}}% | ||
{{!}}-}} | {{!}}-}} | ||
| + | |||
{{#if: {{{c2|}}}| | {{#if: {{{c2|}}}| | ||
{{!}}Secondary Control | {{!}}Secondary Control | ||
{{!}}{{{c2}}} - {{{c2p}}}% | {{!}}{{{c2}}} - {{{c2p}}}% | ||
{{!}}-}} | {{!}}-}} | ||
| + | |||
{{#if: {{{c3|}}}| | {{#if: {{{c3|}}}| | ||
{{!}}Tertiary Control | {{!}}Tertiary Control | ||
{{!}}{{{c3}}} - {{{c3p}}}% | {{!}}{{{c3}}} - {{{c3p}}}% | ||
{{!}}-}} | {{!}}-}} | ||
| + | |||
| + | {{#if: {{{c4|}}}| | ||
| + | {{!}}Quaternary Control | ||
| + | {{!}}{{{c4}}} - {{{c4p}}}% | ||
| + | {{!}}-}} | ||
| + | |||
| + | {{#if: {{{c5|}}}| | ||
| + | {{!}}Quiniary Control | ||
| + | {{!}}{{{c5}}} - {{{c5p}}}% | ||
| + | {{!}}-}} | ||
| + | |||
{{#if: {{{domain|}}}| | {{#if: {{{domain|}}}| | ||
{{!}}{{#ifexpr:{{{x}}}<-4|Province|Domain}} | {{!}}{{#ifexpr:{{{x}}}<-4|Province|Domain}} | ||
| Line 108: | Line 123: | ||
<pre style="clear: both"> | <pre style="clear: both"> | ||
{{InfoboxSector | {{InfoboxSector | ||
| − | + | |name= {{Sector Name}} | |
| − | + | |coreward= {{coreward sector}} | |
| − | + | |tailing= {{trailing sector}} | |
| − | + | |rimward= {{rimward sector}} | |
| − | + | |spinward= {{spinward sector}} | |
| − | + | |ss1= {{Subsector A}} | |
| − | + | |ss2= {{Subsector E}} | |
... | ... | ||
| − | + | |ss15= {{Subsector L}} | |
| − | + | |ss16= {{Subsector P}} | |
/* Alternatively */ | /* Alternatively */ | ||
| − | + | |ssa= {{Subsector A}} | |
... | ... | ||
|ssp= {{Subsector P}} | |ssp= {{Subsector P}} | ||
| Line 147: | Line 162: | ||
}}</pre> | }}</pre> | ||
| − | * The list parameter include the text "this sector has a worlds list" and replaces the use of the [[Template:WorldList]] in the sector page. Include it with "list=true" to turn it on. | + | * The list parameter include the text "this sector has a worlds list" and replaces the use of the [[Template: WorldList]] in the sector page. Include it with "list=true" to turn it on. |
* The worlds parameter include the [[Template: SectorWorlds2]] which provides a complete list of worlds in the wiki that are in this sector. This can be quite long for sectors which have many articles in the wiki. | * The worlds parameter include the [[Template: SectorWorlds2]] which provides a complete list of worlds in the wiki that are in this sector. This can be quite long for sectors which have many articles in the wiki. | ||
* The trademap parameters contains a link to an "Image" pdf file, which is the trade map of the sector. These [[Trade map summary|trade maps]] are generated by Anthony Jackson's [[nroute.c]] program. | * The trademap parameters contains a link to an "Image" pdf file, which is the trade map of the sector. These [[Trade map summary|trade maps]] are generated by Anthony Jackson's [[nroute.c]] program. | ||
Revision as of 01:18, 17 April 2015
The Infobox Sector is a display of basic information about a sector, including the display of subsectors. Previously if you don't know what the subsectors are, you would have used the Template:InfoboxSectorNoSS, this does not apply any further the template will detect if the ss1 parameter is set.
Note: the ssX parameters are numbered in a different order than the subsector letters.
{{InfoboxSector
|name= {{Sector Name}}
|coreward= {{coreward sector}}
|tailing= {{trailing sector}}
|rimward= {{rimward sector}}
|spinward= {{spinward sector}}
|ss1= {{Subsector A}}
|ss2= {{Subsector E}}
...
|ss15= {{Subsector L}}
|ss16= {{Subsector P}}
/* Alternatively */
|ssa= {{Subsector A}}
...
|ssp= {{Subsector P}}
|number= {{number of worlds in sector}}
|population= {{population of the sector (in millions)}}
|gsp= {{Gross sector product (in billions)}}
|trade= {{trade volume (in billions)}}
|c1= {{Name of empire with most stars}}
|c1p= {{percentage of stars owned by c1}}
|c2= {{Name of empire with second most stars}}
|c2p= {{percentage of stars owned by c2}}
|c3= {{Name of empire with third most stars}}
|c3p= {{percentage of stars owned by c3}}
|c4= {{Name of empire with fourth most stars}}
|c4p= {{percentage of stars owned by c4}}
|c5= {{Name of empire with fifth most stars}}
|c5p= {{percentage of stars owned by c5}}
|domain= {{Domain or Province Name}}
|capital= {{Capital of Sector (or primary empire)}}
|x= {{Sector Co-ordinates trailing+, spinward-}}
|y= {{Sector Co-ordinates coreward+, rimward-}}
|list= true{{this sector has a world list page}}
|worlds= true {{include the [[Template: SectorWorlds2]] list}}
|trademap= true {{{This sector has a pdf trade map}}}
|sectorfile= true {{{This sector has a sector data .sec file}}}
|climatefile= true {{{This sector has a sector climate data file}}}
}}
- The list parameter include the text "this sector has a worlds list" and replaces the use of the Template: WorldList in the sector page. Include it with "list=true" to turn it on.
- The worlds parameter include the Template: SectorWorlds2 which provides a complete list of worlds in the wiki that are in this sector. This can be quite long for sectors which have many articles in the wiki.
- The trademap parameters contains a link to an "Image" pdf file, which is the trade map of the sector. These trade maps are generated by Anthony Jackson's nroute.c program.
- The sectorfile parameter is a link to the sector data (.sec) file used to generate the trade maps above.
- The climatefile parameter generates a link to the climate data file generated from the .sec file.
- New and improved this template now accepts either ss1..ss16 or ssa..ssp (one is the inverse of the other)