Difference between revisions of "Template:InfoboxSystem"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
(Thanks!)
Line 92: Line 92:
 
}}
 
}}
 
|}
 
|}
<!--
 
<table style="width: 20em; text-align: left; font-size: 95%; float: right">
 
<tr><th colspan="4" style="font-size: larger; background: #ddd;">{{{name}}} System</th></tr>
 
<tr><th colspan="4" style="font-size: larger; background: #ddd;">[[{{{subsector}}} Subsector|{{{subsector}}}]]/[[{{{sector}}} Sector|{{{sector}}}]] {{{hex}}}</th></tr>
 
 
<tr><td><i>Position</i></td><td><i>Distance</i></td><td><i>Name</i></td><td><i>UWP</i></td></tr>
 
<tr><td colspan="2">Primary</td><td>{{{star}}}</td><td>{{{type}}}</td></tr>
 
{{#if:{{{P1|}}}|<tr><td>1</td><td>{{{Dist1}}}</td><td>[[{{{P1}}} (world)|{{{P1}}}]]</td><td>{{{UWP1}}}</td></tr>}}
 
{{#if:{{{P2|}}}|<tr><td>2</td><td>{{{Dist2}}}</td><td>[[{{{P2}}} (world)|{{{P2}}}]]</td><td>{{{UWP2}}}</td></tr>}}
 
{{#if:{{{P3|}}}|<tr><td>3</td><td>{{{Dist3}}}</td><td>[[{{{P3}}} (world)|{{{P3}}}]]</td><td>{{{UWP3}}}</td></tr>}}
 
{{#if:{{{P4|}}}|<tr><td>4</td><td>{{{Dist4}}}</td><td>[[{{{P4}}} (world)|{{{P4}}}]]</td><td>{{{UWP4}}}</td></tr>}}
 
{{#if:{{{P5|}}}|<tr><td>5</td><td>{{{Dist5}}}</td><td>[[{{{P5}}} (world)|{{{P5}}}]]</td><td>{{{UWP5}}}</td></tr>}}
 
{{#if:{{{P6|}}}|<tr><td>6</td><td>{{{Dist6}}}</td><td>[[{{{P6}}} (world)|{{{P6}}}]]</td><td>{{{UWP6}}}</td></tr>}}
 
{{#if:{{{P7|}}}|<tr><td>7</td><td>{{{Dist7}}}</td><td>[[{{{P7}}} (world)|{{{P7}}}]]</td><td>{{{UWP7}}}</td></tr>}}
 
{{#if:{{{P8|}}}|<tr><td>8</td><td>{{{Dist8}}}</td><td>[[{{{P8}}} (world)|{{{P8}}}]]</td><td>{{{UWP8}}}</td></tr>}}
 
{{#if:{{{P9|}}}|<tr><td>9</td><td>{{{Dist9}}}</td><td>[[{{{P9}}} (world)|{{{P9}}}]]</td><td>{{{UWP9}}}</td></tr>}}
 
{{#if:{{{P10|}}}|<tr><td>9</td><td>{{{Dist10}}}</td><td>[[{{{P10}}} (world)|{{{P9}}}]]</td><td>{{{UWP10}}}</td></tr>}}
 
</table>
 
-->
 
 
<noinclude>
 
<noinclude>
'''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 style="clear: both"><nowiki>
 
<pre style="clear: both"><nowiki>
Line 134: Line 114:
 
: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)
 
: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)
 
::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 18:02, 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).

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. See the Sandbox. 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. --Rindis 18:02, 11 November 2007 (UTC)