Difference between revisions of "Template:Hyperlink"

From Official Barotrauma Wiki
Jump to: navigation, search
(reverting stupid update. Add an x in front of size to adjust height instead of width. Eg ...|x30|....)
Tag: Undo
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{doc}}<includeonly><onlyinclude><span style="white-space: nowrap">[[File:{{#switch:{{{3|}}}|icon={{{1}}}_icon|sprite={{{1}}}_sprite|{{{3|{{{1}}}}}}}}.png|{{#if:{{{2|}}}|{{{2}}}|30}}px|link={{{4|{{{1}}}}}}]] [[{{{4|{{{1}}}}}}|{{ucfirst:{{{1}}}}}]]{{{s|}}}</span></onlyinclude></includeonly>
<includeonly><span style=white-space:nowrap>[[File:{{#ifeq:{{{3|}}}|icon|{{{1}}}_icon|{{{3|{{{1}}}}}}}}.png|{{#if:{{{2}}}|{{{2}}}|30}}px|link={{{4|{{{1}}}}}}]] [[{{{4|{{{1|}}}}}}|{{ucfirst:{{{1}}}}}]]{{{s|}}}</span></includeonly>

Latest revision as of 00:04, 28 July 2022

Template-info.png Documentation

This template is used for links in some other templates, such as the universal nav. It can also be used in articles. It creates a link and places an appropriate image to the left of the link.


{{Hyperlink|<Name>|<Image size override>|<Image name override>|<Link override>|s=<Suffix>}}
  • By default the image and link will be the same as the name
  • Default image size is 30(px)
  • Adding "s=s" allows the s to be included in the link, instead of the regular (beige) color being used if it was added after the template's closing braces
  • The suffix parameter (s=...) can be placed in any position since it is a named parameter


{{Hyperlink|Tiger Thresher}}
gives: Tiger Thresher.png Tiger Thresher
{{Hyperlink|Diving Mask|50}}
gives: Diving Mask icon.png Diving Mask
gives: Uniform.png Jumpsuit
gives: Revolver.png Revolvers ( as opposed to Revolver.png Revolvers )
{{Hyperlink|Crawler|s=s|100|Husked Crawler}}
gives: Husked Crawler.png Crawlers