Difference between revisions of "Template:UWPexpand"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
m
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<table style="width: 21em; text-align: left; font-size: 95%">
 
<table style="width: 21em; text-align: left; font-size: 95%">
<tr><td>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 157: Line 157:
 
  | 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>

Revision as of 01:36, 30 January 2019

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)

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.