Template:Infobox wormhole line: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#invoke:infobox|infoboxTemplate | {{#invoke:infobox|infoboxTemplate | ||
| autoheaders = y | | autoheaders = y | ||
| bodystyle = width:{{{box_width|25em}}}; float:right; | | bodystyle = width:{{{box_width|25em}}}; float:right; border:1px solid #999; | ||
| above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}} | | above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}} | ||
| abovestyle = {{#if:{{{color|}}}|border-top: 4px solid #{{{color}}}; border-bottom: 4px solid #{{#if:{{{color2|}}}|{{{color2}}}|{{{color}}}}};}} | | abovestyle = {{#if:{{{color|}}}|border-top: 4px solid #{{{color}}}; border-bottom: 4px solid #{{#if:{{{color2|}}}|{{{color2}}}|{{{color}}}}};}} | ||
Latest revision as of 18:23, 28 February 2024
| Infobox wormhole line |
|---|
| This template uses Lua: |
Usage
{{Infobox wormhole line}} is used for wormhole lines.
| {{{name}}} | |||
|---|---|---|---|
| Overview | |||
| Other name(s) | {{{other_name}}} | ||
| Native name | {{{native_name}}} | ||
| Status | {{{status}}} | ||
| Termini |
| ||
| Continues from | {{{continuesfrom}}} | ||
| Continues as | {{{continuesas}}} | ||
| Connecting lines | {{{connectinglines}}} | ||
| Former connections | {{{formerconnections}}} | ||
| Stations | {{{stations}}} | ||
| Service | |||
| Services | {{{routes}}} | ||
| History | |||
| Discovered | {{{yearcommenced}}} | ||
| Technical | |||
| Line length | {{{linelength_ly}}} | ||
| |||
{{Infobox wormhole line
| box_width =
| name =
| other_name =
| native_name =
| native_name_lang =
| color =
| status =
| start =
| end =
| stations =
| yearcommenced = <!--{{Start date|YYYY|MM|DD|df=y}}-->
| linelength_ly =
| linelength_pc =
| linelength =
| map =
| map_name = map_name
| map_state = uncollapsed
| embedded =
}}Parameters
| Parameter | Required | Definition |
|---|---|---|
box_width |
No | Width of infobox, default: 25em; Note: use auto for automatic width (nb long image captions will not wrap if |box_width=auto is specified)
|
name |
No | Name of wormhole line; default:Article Name |
other_name |
No | Alternative name of wormhole line |
native_name |
No | Non-English name of wormhole line |
native_name_lang |
No | ISO 639-2 code e.g. "fr" for French. If more than one, use {{lang}} instead |
color |
No | Color of wormhole line (6-digit hex code without "#") |
start |
No | Name of starting station/junction |
end |
No | Name of ending station/junction |
stations |
No | Number of stations/stops |
| History | ||
yearcommenced |
No | Year the wormhole was discovered |
| Technical | ||
linelength_ly |
No | Length of the line length in light years: auto-converts to parsecs |
linelength_pc |
No | Length of the line length in parsecs: auto-converts to light years |
linelength |
No | Use as an alternative to the auto-conversion parameters or for extra info |
mapcolourmapcolor |
No | The colour or color of the line on route maps; Use either mapcolour for colour or mapcolor for color, but not both
|
mapcolourlinkmapcolorlink |
No | The name of an article for wikilinking the word "map" in the mapcolour and mapcolor field label
|
map |
No | Map of line |
map_name |
No | Title of map; default: Route map |
map_state |
No | Shows or hides map. Use show or collapsed
|
embedded |
No | Use to embed other infobox templates in this one |
Examples
Basic
| Alpha Line | |||
|---|---|---|---|
| Overview | |||
| Other name(s) | Line Alpha | ||
| Termini |
| ||
| Stations | 15 | ||
| Technical | |||
| Line length | 13.8 pc (45 ly) | ||
| |||
Junction
| Centauri Capella | |
|---|---|
| Overview | |
| Connecting lines | |
{{Infobox wormhole line
| name = Centauri Capella
| start =
| end =
| stations =
| connectinglines = {{Plainlist|
* [[Another Line]]
* [[Another 2 Line]]
}}
}}Including a route diagram
A route diagram (based on template {{BS-map}})) can be included via |map=. It can be composed right in this template (see first example), or it can be a complete template like |map={{Centauri Capella Line}} (second example).
Note that parameter |inline= must be set to a non-empty value, like {{BS-map|inline=yes}}.
{{Infobox wormhole line
| map =
{{BS-map
|title=Centauri Capella Line
|map=
{{BS2|fKDSTa|||[[Alpha Centauri system|Alpha Centauri]]}}
{{BS2|fBHF|||[[Sol system|Sol]]}}
{{BS2|fKDSTe|||[[Capella system|Capella]]}}
}}
}} |
| |||||||||||||||||||||||||||
{{Infobox wormhole line
| map = {{Centauri Capella Line map}}
}} |
| |||||||||||||||||||||||||||
Tracking categories
Added by this template:
Added by supporting template:
See also
- Template:Infobox station for space stations stations