Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Click: Difference between revisions

Template page
Joe Beaudoin Jr. (talk | contribs)
No edit summary
Joe Beaudoin Jr. (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="position: relative; width: {{{width}}}; height: {{{height}}}; overflow: hidden; {{#switch:{{{float}}}|left|right=float:{{{float}}};|center=margin:0 auto;|#default=float:none;}}" ><div {{#if:{{{class|}}}|class="{{{class}}}"|{{void}}}} style="position: absolute; top: 0px; left: 0px; font-size: {{{height}}}; overflow: hidden; line-height: {{{height}}}; line-width: {{{width}}}; z-index: 3">{{#if:{{{link|}}}|[[{{{link}}}|&nbsp;&nbsp;&nbsp;]]|[{{{ex-link}}} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]}}</div><div {{#if:{{{class|}}}|class="{{{class}}}"|{{void}}}} style="position: absolute; top: 0px; left: 0px; z-index: 2">[[File:{{{image}}}|{{{width}}}|{{#if:{{{link|}}}|{{{link}}}|{{{ex-link}}}}}]]</div></div></includeonly><noinclude>
<includeonly><div style="display: inline-block; {{#switch:{{{float|}}}|left|right=float:{{{float}}}; margin: 0 1em 1em 0;|center=margin: 0 auto; display: table;|#default=}}">
All items are required.
[[File:{{{image}}}|{{{width|}}}|link={{#if:{{{link|}}}|{{{link}}}|{{{ex-link|}}}}}|alt={{{alt|}}}|class={{{class|}}}|{{{title|}}}]]
<pre>
</div></includeonly><noinclude>
{{Click
{{/Documentation}}
| image = Image.jpg
| width = 15px
| height = 15px
| link = Battlestar Wiki:Main page
| ex-link = http://www.somebsgwebsite.com
| float=right
}}
</pre>
[[Category:Templates using click|{{PAGENAME}}]]
[[Category:Templates using click|{{PAGENAME}}]]
[[de:Vorlage:Click]]
[[de:Vorlage:Click]]
</noinclude>
</noinclude>

Latest revision as of 03:39, 3 December 2025

Displays a clickable image linking to a specific page or URL.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Image Filenameimage

The name of the file without 'File:' prefix.

Filerequired
Widthwidth

Width of the image (e.g., 50px).

Stringrequired
Internal Linklink

Wiki page to link to (e.g., Main Page).

Page nameoptional
External Linkex-link

URL to link to (e.g., http://google.com).

Stringoptional
Floatfloat

Positioning: left, right, or center.

Suggested values
left right center
Stringoptional
Alt Textalt

Description for screen readers.

Stringoptional