Difference between revisions of "Template:Ship"

From EVE University Wiki
Jump to: navigation, search
(changed this template as main entry point to the ship template)
(writing the template's help section)
Line 1: Line 1:
 +
<noinclude>
 +
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
 +
{{Ship|Drake|box}}
 +
With just typing something as simple as this
 +
<div style='background-color: #111111;border: 1px dashed #555555;color: #CCCCCC;line-height: 1.1em;padding: 1em;'>
 +
<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> &sup1;
 +
*<span style='color:red'>Template:ShipBoxLarge</span> &sup1;
 +
*<span style='color:red'>Template:ShipBoxTooltip</span> &sup1;
 +
::&sup1; 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>
 
{{ShipDatabase|{{{1}}}|{{{2}}}}}
 
{{ShipDatabase|{{{1}}}|{{{2}}}}}

Revision as of 12:11, 8 September 2011

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 Template:ShipDatabase (you can try hovering the text to see what i mean) or his bigger brother

Template:ShipDatabase With just typing something as simple as this

{{Ship|Drake|tooltip}} for the tooltip-look, and

{{Ship|Drake|box}} for the bigger box-styled version

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. 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 : this is where the ship database is stored
  • Template:ShipSelector ¹
  • Template:ShipBoxLarge ¹
  • Template:ShipBoxTooltip ¹
¹ these three templates are not meant to be edited, 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

Template:ShipDatabase