Template:InfoboxSystem

From Traveller Wiki - Science-Fiction Adventure in the Far future
Revision as of 13:06, 11 November 2007 by Tjoneslo (talk | contribs) (Fix the #if)
Jump to navigation Jump to search
{{{name}}} System
[[{{{subsector}}} Subsector|{{{subsector}}}]]/[[{{{sector}}} Sector|{{{sector}}}]] {{{hex}}}
Position Distance Name UWP
Primary {{{star}}} {{{type}}}
Orbit 0




8 {{{Dist8}}} [[{{{P8}}} (world)|{{{P8}}}]] {{{UWP8}}}

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)