Template:Hyperlink/doc: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
mNo edit summary
(One intermediate revision by the same user not shown)
Line 12: Line 12:
<pre>{{Hyperlink|Tiger Thresher}}</pre> gives: {{Hyperlink|Tiger Thresher}}
<pre>{{Hyperlink|Tiger Thresher}}</pre> gives: {{Hyperlink|Tiger Thresher}}
<pre>{{Hyperlink|Diving Mask|50}}</pre> gives: {{Hyperlink|Diving Mask|50}}
<pre>{{Hyperlink|Diving Mask|50}}</pre> gives: {{Hyperlink|Diving Mask|50}}
<pre>{{Hyperlink|Jumpsuit||Uniform}}</pre> gives: {{Hyperlink|Jumpsuit||Uniform}}
<pre>{{Hyperlink|Jumpsuit|3=Uniform}}</pre> gives: {{Hyperlink|Jumpsuit|3=Uniform}}
<pre>{{Hyperlink|Revolver|s=s}}</pre> gives: {{Hyperlink|Revolver|s=s}} ( as opposed to {{Hyperlink|Revolver}}s )
<pre>{{Hyperlink|Revolver|s=s}}</pre> gives: {{Hyperlink|Revolver|s=s}} ( as opposed to {{Hyperlink|Revolver}}s )
<pre>{{Hyperlink|Crawler|s=s|100|Husked Crawler}}</pre> gives: {{Hyperlink|Crawler|s=s|100|Husked Crawler}}  
<pre>{{Hyperlink|Crawler|s=s|100|Husked Crawler}}</pre> gives: {{Hyperlink|Crawler|s=s|100|Husked Crawler}}  
{{doc/end}}
{{doc/end}}

Revision as of 12:05, 2 July 2022

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.

Syntax

{{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

Examples

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

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.