Template:Click: Difference between revisions

From Yogstation-13
Jump to navigation Jump to search
(Updated documentation of template)
mNo edit summary
 
Line 19: Line 19:
|-
|-
!img
!img
|Sun.png
|SGlasses.png
|Image to be displayed, default Empty.png
|Image to be displayed, default Empty.png
|-
|-
Line 30: Line 30:
=== Minimal ===
=== Minimal ===
<pre>{{click
<pre>{{click
|img=Sun.png
|img=SGlasses.png
|link=Sunglasses
|link=Sunglasses
}}</pre>
}}</pre>
{{click|img=Sun.png|link=Sunglasses}}
{{click|img=SGlasses.png|link=Sunglasses}}


=== Missing image ===
=== Missing image ===
Line 43: Line 43:
=== Full with adjusted size ===
=== Full with adjusted size ===
<pre>{{click
<pre>{{click
|img=Sun.png
|img=SGlasses.png
|link=Sunglasses
|link=Sunglasses
|size=64px
|size=64px
}}</pre>
}}</pre>
{{click|img=Sun.png|link=Sunglasses|size=64px}}
{{click|img=SGlasses.png|link=Sunglasses|size=64px}}


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 09:33, 18 July 2022

About

Inserted images normally refer to the corresponding File:-page, which is not intuitive for some cases. This template provides a method to make an image a direct link to a target instead.

Parameter-Usage

Parameter Example Description
link Sunglasses Linktarget
img SGlasses.png Image to be displayed, default Empty.png
size 32px Size of the image, default 32px

Examples

Minimal

{{click
|img=SGlasses.png
|link=Sunglasses
}}

SGlasses.png

Missing image

{{click
|link=Sunglasses
}}

Empty.png

Full with adjusted size

{{click
|img=SGlasses.png
|link=Sunglasses
|size=64px
}}

SGlasses.png