|
|
| (39 intermediate revisions by 6 users not shown) |
| Line 1: |
Line 1: |
| <noinclude> | | <includeonly>{{ #if:{{{1|}}} |
| This template works differently than other templates you'll find in the wiki. The main purpose of this template is to produce something like this {{Ship|Drake|tooltip}} (you can try hovering the text to see what i mean) or his bigger brother
| | | {{ :{{{1}}}|mode= {{#if: {{{2|}}} | {{{2}}} | tooltip }} }} |
| {{Ship|Drake|box}} | | | {{Co|red|!!}} No ship name specified [[Template:Ship/doc|(please read the documentation.)]] {{Co|red|!!}} |
| With just typing something as simple as this
| | }}</includeonly><noinclude> |
| <div style='background-color: #111111;border: 1px dashed #555555;color: #CCCCCC;line-height: 1.1em;padding: 1em;'>
| | {{documentation}} |
| <span style='color:white'><nowiki>{{Ship|Drake|tooltip}}</nowiki></span> for the tooltip-look, and<br><br>
| |
| <span style='color:white'><nowiki>{{Ship|Drake|box}}</nowiki></span> for the bigger box-styled version
| |
| </div>
| |
| As you noticed, by using this template we don't need to write any additional ship information to produce something more informative, as long as the ship information is written on the [[Template:ShipDatabase|Template:ShipDatabase]]. This should cut down the time needed for editors and/or contributors to write articles which includes any particular ship information, not to mention the tooltip mode will enable users to put a hoverable ship information text on their articles. The tooltip mode can be used on any place on any form of wiki stylings or locations, for example inside a table or a list, since the hoverable text would be treated as a normal link by the wiki.
| |
| | |
|
| |
| ==Notes==
| |
| This template is the main and entry point for the Ship Template & Database. The contents and behaviour of this template directly affected by contents of the following templates :
| |
| *[[Template:ShipDatabase|Template:ShipDatabase]] : ''this is where the ship database is stored''
| |
| *<span style='color:red'>Template:ShipSelector</span> ¹
| |
| *<span style='color:red'>Template:ShipBoxLarge</span> ¹
| |
| *<span style='color:red'>Template:ShipBoxTooltip</span> ¹
| |
| ::¹ these three templates are <span style='color:red'>not meant to be edited</span>, unless absolutely necessary.
| |
| All these five templates were designed to be work in conjunction to each other, meaning if one of them is missing, all five and especially this ship template won't work!
| |
| The reason why this template exi
| |
| </noinclude> | | </noinclude> |
| {{ShipDatabase|{{{1}}}|{{{2}}}}}
| |