Difference between revisions of "Template:InfoboxSystem"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
(Thanks!)
(Moving to talk page)
Line 110: Line 110:
 
</nowiki></pre>
 
</nowiki></pre>
 
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).
 
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. [[User:Tjoneslo|Tjoneslo]] 12:49, 11 November 2007 (UTC)
 
::Try the above replacement. See the [[Sandbox]]. [[User:Tjoneslo|Tjoneslo]] 12:49, 11 November 2007 (UTC)
 
:::Yep! That works, thanks. I've taken out the original. :P Those ifs are even more complicated than I thought.... Anyway, I figure doing system articles wherever we have information might make a good 'monthly project'. I've put up the article that inspired this work – [[Talak (system)]].
 
 
:::Do we want a "simple" template to just give what is known through an extended UPP (number of gas giants and belts, star type(s))? Also, feel free to modify this around - for instance, a lot of Traveller system listings do have a 'notes' column, and we might want to insert one. --[[User:Rindis|Rindis]] 18:02, 11 November 2007 (UTC)
 
 
</noinclude>
 
</noinclude>
 
<includeonly>[[Category:Astrography]]</includeonly>
 
<includeonly>[[Category:Astrography]]</includeonly>
 
<noinclude>[[Category:Infobox|System]]</noinclude>
 
<noinclude>[[Category:Infobox|System]]</noinclude>

Revision as of 21:12, 11 November 2007

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

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).