Difference between revisions of "Template:InfoboxSector"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
Line 145: Line 145:
  
 
<pre style="clear: both">
 
<pre style="clear: both">
{{InfoboxSector
+
|name       = {{Sector Name}}
|name= {{Sector Name}}
+
|x = X parameter on Charted Space map
|coreward= {{coreward sector}}
+
|y = Y parameter on Charted Space map
|tailing= {{trailing sector}}
+
|
|rimward= {{rimward sector}}
+
|alg        = as
|spinward= {{spinward sector}}
+
|capital    = [[Marlheim (world)]]
|ss1= {{Subsector A}}
+
|domain    = [[Domain of Ilelish]] <br> [[Aslan Hierate]] <br> [[Balkanized Space]] <br> [[Solomani Sphere]]
|ss2= {{Subsector E}}
+
|era        = 1105
    ...
+
|
|ss15= {{Subsector L}}
+
|gsp        = 3,980,385
|ss16= {{Subsector P}}
+
|number    = 366
 
+
|population = 744,139
/* Alternatively */
+
|trade      = 19,700
|ssa= {{Subsector A}}
 
    ...
 
 
  |ssp= {{Subsector P}}
 
  |ssp= {{Subsector P}}
 
  |number= {{number of worlds in sector}}
 
  |number= {{number of worlds in sector}}
Line 165: Line 163:
 
  |gsp= {{Gross sector product (in billions)}}
 
  |gsp= {{Gross sector product (in billions)}}
 
  |trade= {{trade volume (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}}
 
  |domain= {{Domain or Province Name}}
 
  |capital= {{Capital of Sector (or primary empire)}}
 
  |capital= {{Capital of Sector (or primary empire)}}
 
  |x= {{Sector Co-ordinates trailing+, spinward-}}
 
  |x= {{Sector Co-ordinates trailing+, spinward-}}
 
  |y= {{Sector Co-ordinates coreward+, rimward-}}
 
  |y= {{Sector Co-ordinates coreward+, rimward-}}
  |worlds    = true {{include the [[Template: SectorWorlds2]] list}}
+
|
|sectordata = true {{include a link to the source sector data on TravellerMap}}
+
|c1 = {{Name of empire with most stars}}
|source = {{Source of the sector data }}
+
|c1p= {{percentage of stars owned by c1}}
|credits = {{Credits for source of the information about the sector}} -> Use [[Template:Ludography ref]]
+
|c2 = {{Name of empire with second most stars}}
|other_names = {{Comma separated list of other names for this sector}}
+
|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}}
 +
|
 +
|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}}
 +
    ...
 +
|
 +
|worlds    = true {{include the [[Template: SectorWorlds2]] list}}
 +
|sectordata = true {{include a link to the source sector data on TravellerMap}}
 +
|
 +
|source     = {{Source of the sector data }}
 +
|credits   = {{Credits for source of the information about the sector}} -> Use [[Template:Ludography ref]]
 +
|other_names= {{Comma separated list of other names for this sector}}
 
}}</pre>
 
}}</pre>
 
* 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.  

Revision as of 19:15, 5 August 2018

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

{{{name}}} Sector
{{{spinward}}} {{{coreward}}} {{{trailing}}}
Expression error: Unrecognized punctuation character "{".&y=Expression error: Unrecognized punctuation character "{".&scale=8&options=41051&galdir=0 {{{name}}} style="width: 250px; height: 350px; border: solid 1px black;"
map from Travellermap.com
{{{rimward}}}
Subsectors
Unknown Unknown Unknown Unknown
Unknown Unknown Unknown Unknown
Unknown Unknown Unknown Unknown
Unknown Unknown Unknown Unknown
Sector Data

Expression error: Unrecognized punctuation character "{".&y=Expression error: Unrecognized punctuation character "{".&ox=Expression error: Unrecognized punctuation character "{".&oy=Expression error: Unrecognized punctuation character "{".&ow=27.776&oh=40&scale=2&options=859&galdir=0 {{{name}}} style="width: 250px; height: 350px; border: solid 1px black; float: right; clear: left"

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-1: the ssX parameters are numbered in a different order than the subsector letters.

Note-2: Directions below.

|name       = {{Sector Name}}
|x = X parameter on Charted Space map
|y = Y parameter on Charted Space map
|
|alg        = as 
|capital    = [[Marlheim (world)]]
|domain     = [[Domain of Ilelish]] <br> [[Aslan Hierate]] <br> [[Balkanized Space]] <br> [[Solomani Sphere]]
|era        = 1105
|
|gsp        = 3,980,385
|number     = 366
|population = 744,139
|trade      = 19,700
 |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)}}

 |domain= {{Domain or Province Name}}
 |capital= {{Capital of Sector (or primary empire)}}
 |x= {{Sector Co-ordinates trailing+, spinward-}}
 |y= {{Sector Co-ordinates coreward+, rimward-}}
|
|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}} 
|
 |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}}
    ...
|
|worlds     = true {{include the [[Template: SectorWorlds2]] list}}
|sectordata = true {{include a link to the source sector data on TravellerMap}}
|
|source     = {{Source of the sector data }}
|credits    = {{Credits for source of the information about the sector}} -> Use [[Template:Ludography ref]]
|other_names= {{Comma separated list of other names for this sector}}
}}
  • 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 sectordata parameter generates a link to the T5 Second Survey formatted data on the Traveller Map site.
  • The links to the trademap, generated climate data, local copy of the sector and economic data are all generated automatically if the pages exist.
  • New and improved this template now accepts either ss1..ss16 or ssa..ssp (one is the inverse of the other)
  • The Source, credits, and other_names parameters are used as part of the SectorData table and saved to the database, but not displayed in the infobox.