Difference between revisions of "Template:UWPexpand"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
m (Confert to using a table)
(Added size B and C. A world in Valhalla subsector has a size of C in canon sources.)
 
(25 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<table><tr><td>
+
<table style="width: 21em; text-align: left; font-size: 95%">
Starport {{#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 10: Line 10:
 
}}
 
}}
 
</td></tr><tr><td>
 
</td></tr><tr><td>
Size {{#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)
 +
| B = Large (17,600 km, 1.49g - 1.89g)
 +
| C = Large (19,200 km, 1.9g - 2.00g)
 
  | Error in Size Decode
 
  | Error in Size Decode
 
}}</td></tr><tr><td>
 
}}</td></tr><tr><td>
Atmosphere {{#sub:{{{1}}}|2|1}}</td><td> {{#switch: {{#sub:{{{1}}}|2|1}}
+
Atmosphere</td><td>{{#sub:{{{1}}}|2|1}}</td><td> {{#switch: {{#sub:{{{1}}}|2|1}}
 
  | 0 = Vacuum
 
  | 0 = Vacuum
 
  | 1 = Vacuum (trace)
 
  | 1 = Vacuum (trace)
Line 45: Line 48:
 
  | Error in Atmosphere Decode
 
  | Error in Atmosphere Decode
 
}}</td></tr><tr><td>
 
}}</td></tr><tr><td>
Hydrographics {{#sub:{{{1}}}|3|1}}</td><td> {{#switch: {{#sub:{{{1}}}|3|1}}
+
Hydrographics</td><td>{{#sub:{{{1}}}|3|1}}</td><td> {{#switch: {{#sub:{{{1}}}|3|1}}
 
  | 0 = Desert World 0%
 
  | 0 = Desert World 0%
 
  | 1 = Dry World 10%
 
  | 1 = Dry World 10%
Line 59: Line 62:
 
  | Error in Hydrographics Decode
 
  | Error in Hydrographics Decode
 
}}</td></tr><tr><td>
 
}}</td></tr><tr><td>
Population {{#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 <10
+
  | 0 = Barren ({{{2|1}}})
  | 1 = Low (tens)
+
  | 1 = Low ({{{2|1}}}0)
  | 2 = Low (hundreds)
+
  | 2 = Low ({{{2|1}}}00)
  | 3 = Low (thousands)
+
  | 3 = Low ({{{2|1}}} thousand)
  | 4 = Moderate (10 thousands)
+
  | 4 = Moderate ({{{2|1}}}0 thousand)
  | 5 = Moderate (100 thousands)
+
  | 5 = Moderate ({{{2|1}}}00 thousand)
  | 6 = Moderate (millions)
+
  | 6 = Moderate ({{{2|1}}} million)
  | 7 = Moderate (10 millions)
+
  | 7 = Moderate ({{{2|1}}}0 million)
  | 8 = Moderate (100 millions)
+
  | 8 = Moderate ({{{2|1}}}00 million)
  | 9 = High (billions)
+
  | 9 = High ({{{2|1}}} billion)
  | A = High (10 billions)
+
  | A = High ({{{2|1}}}0 billion)
  | B = High (100 billions)
+
  | 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>
Government {{#sub:{{{1}}}|5|1}}</td><td> {{#switch: {{#sub:{{{1}}}|5|1}}
+
Government</td><td>{{#sub:{{{1}}}|5|1}}</td><td> {{#switch: {{#sub:{{{1}}}|5|1}}
 
  | 0 = No Government structure
 
  | 0 = No Government structure
 
  | 1 = Company/Corporation
 
  | 1 = Company/Corporation
Line 90: Line 97:
 
  | 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 {{#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 134:
 
  | 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)
 
  | Error in Law Decode
 
  | Error in Law Decode
 
}}</td></tr><tr><td>
 
}}</td></tr><tr><td>
Tech Level {{#sub:{{{1}}}|8|1}}</td><td> {{#switch: {{#sub:{{{1}}}|8|1}}
+
Tech Level</td><td>{{#sub:{{{1}}}|8|1}}</td><td> {{#switch: {{#sub:{{{1}}}|8|1}}
 
  | 0 = Pre-Industrial (primitive)
 
  | 0 = Pre-Industrial (primitive)
 
  | 1 = Pre-Industrial (bronze, iron)
 
  | 1 = Pre-Industrial (bronze, iron)
Line 136: Line 158:
 
  | 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>
+
</td></tr></table><noinclude>[[Category: Templates|UWPexpand]]
 +
{{:Template:UWPexpand/doc}}
 +
</noinclude>

Latest revision as of 13:24, 13 March 2023

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.