Difference between revisions of "Template:Infobox ships"

From NSV13
Jump to navigationJump to search
(adds an infobox for unique ship pages!)
 
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}}}|64px]]}}</includeonly><noinclude>[[File:Towercap.png|64px]]</noinclude>
+
|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
data6 = {{{encounters|}}}
+
data7 = {{{encounters|}}}
 
}}
 
}}
 
<noinclude>{{documentation|content=
 
<noinclude>{{documentation|content=

Latest revision as of 17:25, 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