Template:Hyperlink/doc: Difference between revisions
From Official Barotrauma Wiki
Jade Harley (talk | contribs) mNo edit summary |
m (the default image size is now 30x30, not just 30) |
||
Line 6: | Line 6: | ||
</pre> | </pre> | ||
*By default the image and link will be the same as the name | *By default the image and link will be the same as the name | ||
*Default image size is | *Default image size is 30x30(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 | *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 | *The suffix parameter (s=...) can be placed in any position since it is a named parameter |
Revision as of 22:02, 23 April 2023
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 30x30(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:
![](/baro-wiki/images/thumb/a/a2/Tiger_Thresher.png/30px-Tiger_Thresher.png)
{{Hyperlink|Diving Mask|50}}gives:
![](/baro-wiki/images/thumb/a/af/Diving_Mask_icon.png/50px-Diving_Mask_icon.png)
{{Hyperlink|Jumpsuit|3=Uniform}}gives:
![](/baro-wiki/images/thumb/e/e3/Uniform.png/30px-Uniform.png)
{{Hyperlink|Revolver|s=s}}gives:
![](/baro-wiki/images/thumb/6/6d/Revolver.png/30px-Revolver.png)
![](/baro-wiki/images/thumb/6/6d/Revolver.png/30px-Revolver.png)
{{Hyperlink|Crawler|s=s|100|Husked Crawler}}gives:
![](/baro-wiki/images/thumb/3/39/Husked_Crawler.png/100px-Husked_Crawler.png)
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.