Difference between revisions of "Template:InfoboxSystem"
Jump to navigation
Jump to search
m (tweak) |
m (Fix the #if) |
||
| Line 12: | Line 12: | ||
|- | |- | ||
<!-- orbit 1 --> | <!-- orbit 1 --> | ||
| − | {{#if:{{{P1|}}} | + | |Orbit 0 |
| + | {{#if:{{{P1|}}}| | ||
{{!}}1 | {{!}}1 | ||
{{!}}{{{Dist1}}} | {{!}}{{{Dist1}}} | ||
| Line 20: | Line 21: | ||
}} | }} | ||
<!-- orbit 2 --> | <!-- orbit 2 --> | ||
| − | {{#if:{{{P2|}}} | + | {{#if:{{{P2|}}}| |
{{!}}2 | {{!}}2 | ||
{{!}}{{{Dist2}}} | {{!}}{{{Dist2}}} | ||
| Line 28: | Line 29: | ||
}} | }} | ||
<!-- orbit 3 --> | <!-- orbit 3 --> | ||
| − | {{#if:{{{P3|}}} | + | {{#if:{{{P3|}}}| |
{{!}}3 | {{!}}3 | ||
{{!}}{{{Dist3}}} | {{!}}{{{Dist3}}} | ||
| Line 36: | Line 37: | ||
}} | }} | ||
<!-- orbit 4 --> | <!-- orbit 4 --> | ||
| − | {{#if:{{{P4|}}} | + | {{#if:{{{P4|}}}| |
{{!}}4 | {{!}}4 | ||
{{!}}{{{Dist4}}} | {{!}}{{{Dist4}}} | ||
| Line 44: | Line 45: | ||
}} | }} | ||
<!-- orbit 5 --> | <!-- orbit 5 --> | ||
| − | {{#if:{{{P5|}}} | + | {{#if:{{{P5|}}}| |
{{!}}5 | {{!}}5 | ||
{{!}}{{{Dist5}}} | {{!}}{{{Dist5}}} | ||
| Line 52: | Line 53: | ||
}} | }} | ||
<!-- orbit 6 --> | <!-- orbit 6 --> | ||
| − | {{#if:{{{P6|}}} | + | {{#if:{{{P6|}}}| |
{{!}}1 | {{!}}1 | ||
{{!}}{{{Dist6}}} | {{!}}{{{Dist6}}} | ||
| Line 60: | Line 61: | ||
}} | }} | ||
<!-- orbit 7 --> | <!-- orbit 7 --> | ||
| − | {{#if:{{{P7|}}} | + | {{#if:{{{P7|}}}| |
{{!}}7 | {{!}}7 | ||
{{!}}{{{Dist7}}} | {{!}}{{{Dist7}}} | ||
| Line 68: | Line 69: | ||
}} | }} | ||
<!-- orbit 8 --> | <!-- orbit 8 --> | ||
| − | {{#if:{{{P18}}} | + | {{#if:{{{P18}}}| |
{{!}}8 | {{!}}8 | ||
{{!}}{{{Dist8}}} | {{!}}{{{Dist8}}} | ||
| Line 76: | Line 77: | ||
}} | }} | ||
<!-- orbit 9 --> | <!-- orbit 9 --> | ||
| − | {{#if:{{{P9|}}} | + | {{#if:{{{P9|}}}| |
{{!}}9 | {{!}}9 | ||
{{!}}{{{Dist9}}} | {{!}}{{{Dist9}}} | ||
| Line 84: | Line 85: | ||
}} | }} | ||
<!-- orbit 10 --> | <!-- orbit 10 --> | ||
| − | {{#if:{{{P10|}}} | + | {{#if:{{{P10|}}}| |
{{!}}10 | {{!}}10 | ||
{{!}}{{{Dist10}}} | {{!}}{{{Dist10}}} | ||
Revision as of 13:06, 11 November 2007
| {{{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.