Template:ShipBox: Difference between revisions
From Shiptest Wiki
Jump to navigationJump to search
m (adds to template category) |
m (Makes title link to webmap) |
||
Line 94: | Line 94: | ||
</noinclude> | </noinclude> | ||
<div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 0 0 0.5em 0; padding: 1px; width: 22em; margin-left: 1.4em; margin-bottom: 0.5em; float: right;"> | <div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 0 0 0.5em 0; padding: 1px; width: 22em; margin-left: 1.4em; margin-bottom: 0.5em; float: right;"> | ||
<div style="background: #{{{color|88cc99}}}; border-radius: .2em; color: #FFF; padding: .4em .4em .4em; font-size: 1.2em;"><center>'''{{{name}}}'''</center></div> | <div style="background: #{{{color|88cc99}}}; border-radius: .2em; color: #FFF; padding: .4em .4em .4em; font-size: 1.2em;"><center>'''[https://shiptest.net/map?map=Box-class {{{name}}}]'''</center></div> | ||
<div style="background: white;"> | <div style="background: white;"> | ||
<div style="padding: 0.2em 0 0.2em 0;"> | <div style="padding: 0.2em 0 0.2em 0;"> |
Revision as of 06:11, 4 February 2023
A sidebar for showing ship info.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | Name of the ship to show at the top of the box. | Line | required |
Short Name | shortname | The shortened name of the ship, usually lacking spaces. | Line | required |
Box Color | color | The hex code for the color of the box's accents. | Line | optional |
Ship Manufacturer | manufacturer | no description | Line | suggested |
Ship Faction | faction | no description | Line | suggested |
Ship Size | size | The approximate size of the ship. No need to be specific. | Line | suggested |
Crew Size | crew | Amount of crew members by default, specified in the JSON file. | Number | suggested |
Propulsion Type | propulsion | The propulsion type(s). | Line | suggested |
Extra Traits | traits | Any extra traits to show. Leave first line blank.
| String | suggested |
Example usage of the template:
{{ShipBox | name = Box-class Hospital Ship | shortname = Box-class | color = 88cc99 | manufacturer = Unknown | faction = Independent | size = Medium | crew = 9 | propulsion = Plasma Engines | traits = * Full medical bay * Little weaponry }}
[{{{url}}} {{{url}}}]
Short Name: | Box-class |
Manufacturer: | Unknown |
Faction: | Independent |
Size: | Medium |
Crew Size: | 9 |
Propulsion: | Plasma Engines |
- Full medical bay
- Little weaponry
[{{{url}}} {{{url}}}]
Short Name: | name |
Manufacturer: | Unknown |
Faction: | Independent |
Size: | Unknown |
Crew Size: | Unspecified |
Propulsion: | Unspecified |
No traits.