Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Sh/doc: Difference between revisions

Template page
m Update doc for new parameter.
m Change trailing to leading. Add sample using width. Reduce the number of samples. Move category to the end.
Line 2: Line 2:
: This template is used to create a link to a ship page and simultaneously generate the appropriate faction icon immediately to the left of the link. The faction icon will have the faction name as mouseover text.
: This template is used to create a link to a ship page and simultaneously generate the appropriate faction icon immediately to the left of the link. The faction icon will have the faction name as mouseover text.


It is intended for use in cases where ship names are being discussed without explicitly referencing the faction to which they belong. Ship faction is an important piece of information, as readers may wish to know which ships they can pilot based on their current racial skills. This template can be used in both tables and in body text. In short, whenever a phrase such as "the Amarr [[Pilgrim]]" or "the [[Nereus]], a Gallente ship" would be appropriate, this template may be substituted to convey that information in a more compact way.
: It is intended for use in cases where ship names are being discussed without explicitly referencing the faction to which they belong. Ship faction is an important piece of information, as readers may wish to know which ships they can pilot based on their current racial skills. This template can be used in both tables and in body text. In short, whenever a phrase such as "the Amarr [[Pilgrim]]" or "the [[Nereus]], a Gallente ship" would be appropriate, this template may be substituted to convey that information in a more compact way.


This template uses the [[Icons#Interbus Ship Identification System (ISIS)|Interbus Ship Identification System (ISIS) icons]] wherever possible. However, some ships belong to factions that lack an ISIS icon as of February 2017. For these rare cases, the normal faction symbol is used.
: This template uses the [[Icons#Interbus Ship Identification System (ISIS)|Interbus Ship Identification System (ISIS) icons]] wherever possible. However, some ships belong to factions that lack an ISIS icon as of February 2017. For these rare cases, the normal faction symbol is used.


; Syntax
; Syntax
Line 16: Line 16:
:<code><nowiki>{{sh|Paladin}}</nowiki></code> gives {{sh|Paladin}}.
:<code><nowiki>{{sh|Paladin}}</nowiki></code> gives {{sh|Paladin}}.
:<code><nowiki>{{sh|Raven State Issue}}</nowiki></code> gives {{sh|Raven State Issue}}.
:<code><nowiki>{{sh|Raven State Issue}}</nowiki></code> gives {{sh|Raven State Issue}}.
:<code><nowiki>{{sh|Hyperion}}</nowiki></code> gives {{sh|Hyperion}}.
:<code><nowiki>{{sh|Raven State Issue|width= 40}}</nowiki></code> gives {{sh|Raven State Issue|width= 40}}.
:<code><nowiki>{{sh|Stabber Fleet Issue}}</nowiki></code> gives {{sh|Stabber Fleet Issue}}.
:<code><nowiki>{{sh|Nestor}}</nowiki></code> gives {{sh|Nestor}}.
:<code><nowiki>{{sh|Nightmare}}</nowiki></code> gives {{sh|Nightmare}}.
:<code><nowiki>{{sh|Gnosis}}</nowiki></code> gives {{sh|Gnosis}}.
:<code><nowiki>{{sh|Pacifier}}</nowiki></code> gives {{sh|Pacifier}}.
:<code><nowiki>{{sh|Kikimora}}</nowiki></code> gives {{sh|Kikimora}}.
<includeonly>[[Category:Data templates]]</includeonly>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>


: Due to the way how the image works there is a slightly increased space on the left of the image
: Due to the way how the image works there is a slightly increased space on the left of the image
:: Demo {{sh|Nestor}} with a space before the template call, i.e. <code><nowiki>Demo {{sh|Nestor}}</nowiki></code>.
:: Demo {{sh|Nestor}} with a space before the template call, i.e. <code><nowiki>Demo {{sh|Nestor}}</nowiki></code>.
:: Demo{{sh|Nestor}} with the template call directly adjacent to to the trailing word, i.e. <code><nowiki>Demo{{sh|Nestor}}</nowiki></code>.
:: Demo{{sh|Nestor}} with the template call directly adjacent to to the leading word, i.e. <code><nowiki>Demo{{sh|Nestor}}</nowiki></code>.
 
<includeonly>[[Category:Data templates]]</includeonly>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>