Difference between revisions of "Template:UWPexpand"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
m (Fix population text)
m
 
(19 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<table style="width: 21em; text-align: left; font-size: 95%"><tr><td>
+
<table style="width: 21em; text-align: left; font-size: 95%">
Starport</td><td>{{#sub:{{{1}}}|0|1}}</td><td> {{#switch: {{#sub:{{{1}}}|0|1}}
+
<tr><td style="border-style: none">Starport</td><td>{{#sub:{{{1}}}|0|1}}</td><td> {{#switch: {{#sub:{{{1}}}|0|1}}
 
  | A = Excellent: Starship Construction, Overhaul, Refined fuel
 
  | A = Excellent: Starship Construction, Overhaul, Refined fuel
 
  | B = Good: Spacecraft Construction, Overhaul, Refined fuel
 
  | B = Good: Spacecraft Construction, Overhaul, Refined fuel
Line 12: Line 12:
 
Size</td><td>{{#sub:{{{1}}}|1|1}}</td><td> {{#switch: {{#sub:{{{1}}}|1|1}}
 
Size</td><td>{{#sub:{{{1}}}|1|1}}</td><td> {{#switch: {{#sub:{{{1}}}|1|1}}
 
  | R = Asteroid/Planetoid Ring
 
  | R = Asteroid/Planetoid Ring
  | S = Very Small (400 km)
+
| D = Debris (<400 km)
  | 0 = Asteroid/Planetoid Belt
+
  | S = Very Small (400 km, 0.02g - 0.03g)
  | 1 = Small (1,600 km)
+
  | 0 = Asteroid/Planetoid Belt  
  | 2 = Small (3,200 km)
+
  | 1 = Small (1,600 km, 0.05g - 0.09g)
  | 3 = Small (4,800 km)
+
  | 2 = Small (3,200 km, 0.10g - 0.17g)
  | 4 = Small (6,400 km)
+
  | 3 = Small (4,800 km, 0.24g - 0.34g)
  | 5 = Medium (8,000 km)
+
  | 4 = Small (6,400 km, 0.32g - 0.46g)
  | 6 = Medium (9,600 km)
+
  | 5 = Medium (8,000 km, 0.40g - 0.57g)
  | 7 = Medium (11,200 km)
+
  | 6 = Medium (9,600 km, 0.60g - 0.81g)
  | 8 = Large (12,800 km)
+
  | 7 = Medium (11,200 km, 0.70g - 0.94g)
  | 9 = Large (14,400 km)
+
  | 8 = Large (12,800 km, 0.80g - 1.08g)
  | A = Large (16,000 km)
+
  | 9 = Large (14,400 km, 1.03g - 1.33g)
 +
  | A = Large (16,000 km, 1.14g - 1.48g)
 
  | Error in Size Decode
 
  | Error in Size Decode
 
}}</td></tr><tr><td>
 
}}</td></tr><tr><td>
Line 60: Line 61:
 
}}</td></tr><tr><td>
 
}}</td></tr><tr><td>
 
Population</td><td>{{#sub:{{{1}}}|4|1}}</td><td> {{#switch: {{#sub:{{{1}}}|4|1}}
 
Population</td><td>{{#sub:{{{1}}}|4|1}}</td><td> {{#switch: {{#sub:{{{1}}}|4|1}}
  | 0 = Low ({{{2|1}}})
+
  | 0 = Barren ({{{2|1}}})
 
  | 1 = Low ({{{2|1}}}0)
 
  | 1 = Low ({{{2|1}}}0)
 
  | 2 = Low ({{{2|1}}}00)
 
  | 2 = Low ({{{2|1}}}00)
Line 72: Line 73:
 
  | A = High ({{{2|1}}}0 billion)
 
  | A = High ({{{2|1}}}0 billion)
 
  | B = High ({{{2|1}}}00 billion)
 
  | B = High ({{{2|1}}}00 billion)
 +
| C = High ({{{2|1}}} trillion)
 +
| D = High ({{{2|1}}}0 trillion)
 +
| E = High ({{{2|1}}}00 trillion)
 +
| F = High ({{{2|1}}} quadrillion)
 
  | Error in Population Decode
 
  | Error in Population Decode
 
}}</td></tr><tr><td>
 
}}</td></tr><tr><td>
Line 90: Line 95:
 
  | D = Religious Dictatorship
 
  | D = Religious Dictatorship
 
  | E = Religious Autocracy
 
  | E = Religious Autocracy
  | F = Tolitaian Oligarchy
+
  | F = Totalitarian Oligarchy
 +
| G = Aslan station or facility
 +
| H = Aslan split clan control
 +
| J = Aslan single clan control
 +
| K = Aslan single clan multi-world control
 +
| L = Aslan major clan control
 +
| M = Aslan vassal clan control
 +
| N = Aslan major clan control
 +
| P = K'kree station or facility
 +
| Q = K'kree Krurruna off-world
 +
| R = K'kree steppelord
 +
| S = Hiver sept
 +
| T = Hiver unsupervised anarchy
 +
| U = Hiver supervised anarchy
 +
| W = Hiver Committee
 +
| X = Droyne Hierarchy
 
  | Error in Government Decode
 
  | Error in Government Decode
 
}}</td></tr><tr><td>
 
}}</td></tr><tr><td>
 
Law</td><td>{{#sub:{{{1}}}|6|1}}</td><td> {{#switch: {{#sub:{{{1}}}|6|1}}
 
Law</td><td>{{#sub:{{{1}}}|6|1}}</td><td> {{#switch: {{#sub:{{{1}}}|6|1}}
 
  | 0 = No Law
 
  | 0 = No Law
  | 1 = Low Law
+
  | 1 = Low Law (no explosives, poison gas)
  | 2 = Low Law
+
  | 2 = Low Law (no energy weapons)
  | 3 = Low Law
+
  | 3 = Low Law (no automatic weapons)
  | 4 = Moderate Law
+
  | 4 = Moderate Law (no light assault weapons)
  | 5 = Moderate Law
+
  | 5 = Moderate Law (no concealable weapons)
  | 6 = Moderate Law
+
  | 6 = Moderate Law (no firearms except shotguns)
 
  | 7 = Moderate Law (no firearms)
 
  | 7 = Moderate Law (no firearms)
 
  | 8 = High Law (controlled blades)
 
  | 8 = High Law (controlled blades)
Line 112: Line 132:
 
  | G = Extreme Law (severe punishment)
 
  | G = Extreme Law (severe punishment)
 
  | H = Extreme Law (legalized oppressive)
 
  | H = Extreme Law (legalized oppressive)
  | J = Extreme Law (routine oppressive)
+
  | J = Extreme Law (routinely oppressive)
 
  | K = Extreme Law (excessively oppressive)
 
  | K = Extreme Law (excessively oppressive)
 
  | L = Extreme Law (totally oppressive)
 
  | L = Extreme Law (totally oppressive)
Line 136: Line 156:
 
  | G = High Stellar (terraforming)
 
  | G = High Stellar (terraforming)
 
  | H = Extreme Stellar (antimatter)
 
  | H = Extreme Stellar (antimatter)
  | J = Extreme Stellar (self-aware robots)
+
  | I = Extreme Stellar (self-aware robots)
  | K = Extreme Stellar (total terraforming)
+
  | J = Extreme Stellar (total terraforming)
  | L = Extreme Stellar (matter transport)
+
  | K = Extreme Stellar (matter transport)
 
  | Error in Tech Decode}}
 
  | Error in Tech Decode}}
 
</td></tr></table><noinclude>[[Category: Templates|UWPexpand]]
 
</td></tr></table><noinclude>[[Category: Templates|UWPexpand]]
This template expands the UPW code into a table of expanded text with a description for each position.
+
{{:Template:UWPexpand/doc}}  
 
 
The template assumes the UWP is in the standard format of AXXXXXX-T. If not, the template may return an "Error in xxx decode".
 
 
 
The template takes a second parameter, which is a population multiplier, it appears in the population description. The template assumes a multiplier of 1 if not supplied.
 
{{Sources|S1=[[Imperial Encyclopedia]]}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 12:34, 9 May 2021

Starport{ Error in Starport Decode
Size{ Error in Size Decode
Atmosphere{ Error in Atmosphere Decode
Hydrographics1 Dry World 10%
Population} Error in Population Decode
Government} Error in Government Decode
Law} Error in Law Decode
Tech Level Error in Tech Decode

This template expands the UWP code into a table of expanded text with a description for each position. The template assumes the UWP is in the standard format of AXXXXXX-T. If not, the template may return an "Error in xxx decode".

The template takes a second parameter, which is a population multiplier, it appears in the population description. The template assumes a multiplier of 1 if not supplied.

The Template:UWP and Template:StellarData.layout use this template to add a mouse-over popup of the expanded information for the user. The mouse-over effect uses CSS to achieve this. In order to make this work, you need to wrap the template (and the corresponding UWP Code) in div / span tags to flag the CSS to work correctly.

 
<div class="UWPInfo">{{{UWP code}}}<span>{{UWPexpand‎|{{{UWP Code}}}|{{{Pop code|}}}}}</span></div>


References & Contributors (Sources)[edit]

This list of sources was used by the Traveller Wiki Editorial Team and individual contributors to compose this article. Copyrighted material is used under license from Far Future Enterprises or by permission of the author. The page history lists all of the contributions.