Difference between revisions of "Template:Infobox ships"
From NSV13
Jump to navigationJump to searchBokkiewokkie (talk | contribs) (adds an infobox for unique ship pages!) |
Bokkiewokkie (talk | contribs) m (me being a dumbass) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
|headerstyle = background:{{{headerbgcolor|#bbbbbb}}};color:{{{headerfontcolor|#000000}}}; | |headerstyle = background:{{{headerbgcolor|#bbbbbb}}};color:{{{headerfontcolor|#000000}}}; | ||
|bodystyle = background:{{{bgcolor|#dddddd}}}; | |bodystyle = background:{{{bgcolor|#dddddd}}}; | ||
+ | |autoheaders = y | ||
|above = {{{name|<includeonly>{{PAGENAME}}</includeonly><noinclude>Page Title</noinclude>}}} | |above = {{{name|<includeonly>{{PAGENAME}}</includeonly><noinclude>Page Title</noinclude>}}} | ||
− | |image = <includeonly>{{#if:{{{image|}}}|[[File:{{{image}}} | + | |image = <includeonly>{{#if:{{{image|}}}|[[File:{{{image}}}]]}}</includeonly><noinclude>[[File:Towercap.png|64px]]</noinclude> |
|caption = {{{caption|}}} | |caption = {{{caption|}}} | ||
|header1 = Information | |header1 = Information | ||
Line 16: | Line 17: | ||
| data5 = {{{captain|}}} | | data5 = {{{captain|}}} | ||
|header6 = Reported Encounters | |header6 = Reported Encounters | ||
− | | | + | | data7 = {{{encounters|}}} |
}} | }} | ||
<noinclude>{{documentation|content= | <noinclude>{{documentation|content= |
Latest revision as of 17:25, 5 June 2022
Page Title | |
---|---|
Information | |
Class | N/A |
Threat level | N/A |
Faction | unaligned |
Template documentation
Infobox for unique ship pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Header Color | headerbgcolor | Text header color, Takes css-valid color constants
| String | required |
Header Font Color | headerfontcolor | Header text color, Takes css-valid color constants
| String | optional |
Background Color | bgcolor | Background of the majority of the template, Takes css-valid color constants
| Unknown | suggested |
Name | name | Header Content
| String | deprecated |
Image | image | Ship image
| File | suggested |
Image Caption | caption | no description | Unknown | optional |
Class | class | What ship class the ship falls under.
| String | suggested |
Threat level | threat | How dangerous this ship usually is in a hostile encounter.
| String | suggested |
Faction | faction | Faction the ship represents on the overmap.
| String | suggested |
Captain | captain | The captain of this vessel.
| String | optional |
Reported Encounters | encounters | All of the reported encounters the vessel has been in. (currently WIP)
| String | optional |
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |