Difference between revisions of "Template:InfoboxSystem"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
Line 11: Line 11:
 
|{{{type}}}
 
|{{{type}}}
 
|-
 
|-
 +
<!-- orbit 1 -->
 
{{#if:{{{P1|}}}
 
{{#if:{{{P1|}}}
 
{{!}}1
 
{{!}}1
Line 16: Line 17:
 
{{!}}[[{{{P1}}} (world){{!}}{{{P1}}}]]
 
{{!}}[[{{{P1}}} (world){{!}}{{{P1}}}]]
 
{{!}}{{{UWP1}}}
 
{{!}}{{{UWP1}}}
 +
{{!}}-
 +
}}
 +
<!-- orbit 2 -->
 +
{{#if:{{{P2|}}}
 +
{{!}}2
 +
{{!}}{{{Dist2}}}
 +
{{!}}[[{{{P2}}} (world){{!}}{{{P2}}}]]
 +
{{!}}{{{UWP2}}}
 +
{{!}}-
 +
}}
 +
<!-- orbit 3 -->
 +
{{#if:{{{P3|}}}
 +
{{!}}3
 +
{{!}}{{{Dist3}}}
 +
{{!}}[[{{{P3}}} (world){{!}}{{{P3}}}]]
 +
{{!}}{{{UWP3}}}
 +
{{!}}-
 +
}}
 +
<!-- orbit 4 -->
 +
{{#if:{{{P4|}}}
 +
{{!}}4
 +
{{!}}{{{Dist4}}}
 +
{{!}}[[{{{P4}}} (world){{!}}{{{P4}}}]]
 +
{{!}}{{{UWP4}}}
 +
{{!}}-
 +
}}
 +
<!-- orbit 5 -->
 +
{{#if:{{{P5|}}}
 +
{{!}}5
 +
{{!}}{{{Dist5}}}
 +
{{!}}[[{{{P5}}} (world){{!}}{{{P5}}}]]
 +
{{!}}{{{UWP5}}}
 +
{{!}}-
 +
}}
 +
<!-- orbit 6 -->
 +
{{#if:{{{P6|}}}
 +
{{!}}1
 +
{{!}}{{{Dist6}}}
 +
{{!}}[[{{{P6}}} (world){{!}}{{{P6}}}]]
 +
{{!}}{{{UWP6}}}
 +
{{!}}-
 +
}}
 +
<!-- orbit 7 -->
 +
{{#if:{{{P7|}}}
 +
{{!}}7
 +
{{!}}{{{Dist7}}}
 +
{{!}}[[{{{P7}}} (world){{!}}{{{P7}}}]]
 +
{{!}}{{{UWP7}}}
 +
{{!}}-
 +
}}
 +
<!-- orbit 8 -->
 +
{{#if:{{{P18}}}
 +
{{!}}8
 +
{{!}}{{{Dist8}}}
 +
{{!}}[[{{{P8}}} (world){{!}}{{{P8}}}]]
 +
{{!}}{{{UWP8}}}
 +
{{!}}-
 +
}}
 +
<!-- orbit 9 -->
 +
{{#if:{{{P9|}}}
 +
{{!}}9
 +
{{!}}{{{Dist9}}}
 +
{{!}}[[{{{P9}}} (world){{!}}{{{P9}}}]]
 +
{{!}}{{{UWP9}}}
 +
{{!}}-
 +
}}
 +
<!-- orbit 10 -->
 +
{{#if:{{{P10|}}}
 +
{{!}}10
 +
{{!}}{{{Dist10}}}
 +
{{!}}[[{{{P10}}} (world){{!}}{{{P10}}}]]
 +
{{!}}{{{UWP10}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 41: Line 114:
 
'''Under construction—Not Tested'''<br>
 
'''Under construction—Not Tested'''<br>
 
This infobox is used to display basic information about an entire system.
 
This infobox is used to display basic information about an entire system.
<pre><nowiki>
+
<pre style="clear: both"><nowiki>
 
{{InfoboxSystem
 
{{InfoboxSystem
 
   |name={{System name}}
 
   |name={{System name}}

Revision as of 12:55, 11 November 2007

{{{name}}} System
[[{{{subsector}}} Subsector|{{{subsector}}}]]/[[{{{sector}}} Sector|{{{sector}}}]] {{{hex}}}
Position Distance Name UWP
Primary {{{star}}} {{{type}}}

Under construction—Not Tested
This infobox is used to display basic information about an entire system.

{{InfoboxSystem
  |name={{System name}}
  |subsector={{Subsector name}}}
  |sector={{Sector name}}}
  |hex={{Hex location (sector reference)}}
  |star=((Star name}}
  |type={{Star type}}
  |P1={{World 1 name}}
  |Dist1={{World 1 distance (AUs)}}|UWP1={{World 1 UWP/Star type}}}
  |P2={{World 2 name}}
  |Dist2={{World 2 distance (AUs)}}|UWP2={{World 2 UWP/Star type}}}
  ...
}}

Needed: Cleanup, most likely. Ability to insert some sort of moon template. Perhaps be able to insert individual asteroids (as opposed to belts as a whole-no orbit number).

Okay, got over-ambitious. The idea is for each planet entry to have it's own row in the table. I tried doing that direct with html embedded in an #if. Looks like the if is working, but you can't embed html inside template calls. You might be able to do it with wiki-markup table formatting, but I'm not as familiar with that, so it's going to take more poking.

This is correct. This works on Wikipedia because a Wiki extension called HTMLTidy. The request has been made repeatedly. Tjoneslo 12:49, 11 November 2007 (UTC)
Try the above replacement. Tjoneslo 12:49, 11 November 2007 (UTC)