Difference between revisions of "Template:Infobox ships"

From NSV13
Jump to navigationJump to search
(Don't lock image size)
m (hide encounter header when not used)
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}}}]]}}</includeonly><noinclude>[[File:Towercap.png|64px]]</noinclude>
 
|image = <includeonly>{{#if:{{{image|}}}|[[File:{{{image}}}]]}}</includeonly><noinclude>[[File:Towercap.png|64px]]</noinclude>

Revision as of 18:24, 5 June 2022

Page Title
Towercap.png
Information
ClassN/A
Threat levelN/A
Factionunaligned
Template documentation

Infobox for unique ship pages.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Header Colorheaderbgcolor

Text header color, Takes css-valid color constants

Default
#bbbbbb
Example
grey, #ff00ff, #abc
Auto value
#bbbbbb
Stringrequired
Header Font Colorheaderfontcolor

Header text color, Takes css-valid color constants

Default
#000000
Example
grey, #ff00ff, #abc
Auto value
Stringoptional
Background Colorbgcolor

Background of the majority of the template, Takes css-valid color constants

Default
#dddddd
Example
grey, #ff00ff, #abc
Unknownsuggested
Namename

Header Content

Default
{{PAGENAME}}
Stringdeprecated
Imageimage

Ship image

Example
Syndicateinterceptor.png
Filesuggested
Image Captioncaption

no description

Unknownoptional
Classclass

What ship class the ship falls under.

Default
N/A
Example
Frigate, Capital, cruiser, fighter.
Stringsuggested
Threat levelthreat

How dangerous this ship usually is in a hostile encounter.

Default
N/A
Example
Extremely low, high, unknown
Stringsuggested
Factionfaction

Faction the ship represents on the overmap.

Default
unaligned
Example
Syndicate, Nanotrasen, SolGov.
Stringsuggested
Captaincaptain

The captain of this vessel.

Default
N/A
Example
Henry Trasen (John Trasen's evil twin brother)
Stringoptional
Reported Encountersencounters

All of the reported encounters the vessel has been in. (currently WIP)

Default
N/A
Example
[[#2106 Battle for sol]]
Stringoptional