Template:Hyperlink/doc: Difference between revisions
From Official Barotrauma Wiki
(Created page with "{{doc/start}} 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...") |
(icon) |
||
Line 9: | Line 9: | ||
==Examples== | ==Examples== | ||
<pre>{{Hyperlink|Tiger Thresher}}</pre> gives: {{Hyperlink|Tiger Thresher}} | <pre>{{Hyperlink|Tiger Thresher}}</pre> gives: {{Hyperlink|Tiger Thresher}} | ||
<pre>{{Hyperlink| | <pre>{{Hyperlink|Diving Mask|50}}</pre> gives: {{Hyperlink|Diving Mask|50}} | ||
<pre>{{Hyperlink|Diving Mask||icon}}</pre> gives: {{Hyperlink|Diving Mask||icon}} | |||
<pre>{{Hyperlink|Jumpsuit||Uniform}}</pre> gives: {{Hyperlink|Jumpsuit||Uniform}} | <pre>{{Hyperlink|Jumpsuit||Uniform}}</pre> gives: {{Hyperlink|Jumpsuit||Uniform}} | ||
{{doc/end}} | {{doc/end}} |
Revision as of 20:28, 14 October 2020
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>}}
- By default the image and link will be the same as the name
- Default image size is 30(px)
Examples
{{Hyperlink|Tiger Thresher}}gives: Tiger Thresher
{{Hyperlink|Diving Mask|50}}gives: Diving Mask
{{Hyperlink|Diving Mask||icon}}gives: Diving Mask
{{Hyperlink|Jumpsuit||Uniform}}gives: Jumpsuit
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.