Difference between revisions of "Template:UWPexpand"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
m
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<table style="width: 21em; text-align: left; font-size: 95%; border-style: none"><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 13: Line 13:
 
  | R = Asteroid/Planetoid Ring
 
  | R = Asteroid/Planetoid Ring
 
  | D = Debris (<400 km)
 
  | D = Debris (<400 km)
  | S = Very Small (400 km)
+
  | S = Very Small (400 km, 0.02g - 0.03g)
  | 0 = Asteroid/Planetoid Belt
+
  | 0 = Asteroid/Planetoid Belt  
  | 1 = Small (1,600 km)
+
  | 1 = Small (1,600 km, 0.05g - 0.09g)
  | 2 = Small (3,200 km)
+
  | 2 = Small (3,200 km, 0.10g - 0.17g)
  | 3 = Small (4,800 km)
+
  | 3 = Small (4,800 km, 0.24g - 0.34g)
  | 4 = Small (6,400 km)
+
  | 4 = Small (6,400 km, 0.32g - 0.46g)
  | 5 = Medium (8,000 km)
+
  | 5 = Medium (8,000 km, 0.40g - 0.57g)
  | 6 = Medium (9,600 km)
+
  | 6 = Medium (9,600 km, 0.60g - 0.81g)
  | 7 = Medium (11,200 km)
+
  | 7 = Medium (11,200 km, 0.70g - 0.94g)
  | 8 = Large (12,800 km)
+
  | 8 = Large (12,800 km, 0.80g - 1.08g)
  | 9 = Large (14,400 km)
+
  | 9 = Large (14,400 km, 1.03g - 1.33g)
  | A = Large (16,000 km)
+
  | 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 73: 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 157: Line 161:
 
  | 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.