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
Steelviper (talk | contribs)
m Unprotected "Template:Click": unprotect to allow categorizing
Joe Beaudoin Jr. (talk | contribs)
mNo edit summary
 
(28 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="position: relative; width: {{{width}}}; height: {{{height}}}; overflow: hidden">
<includeonly><div style="display: inline-block; {{#switch:{{{float|}}}|left|right=float:{{{float}}}; margin: 0 1em 1em 0;|center=margin: 0 auto; display: table;|#default=}}">
<div style="position: absolute; top: 0px; left: 0px; font-size: 100px; overflow: hidden; line-height: 100px; z-index: 3">[[{{{link}}}|&nbsp;&nbsp;&nbsp;]]</div>
[[File:{{{image}}}|{{{width|}}}|link={{#if:{{{link|}}}|{{{link}}}|{{{ex-link|}}}}}|alt={{{alt|}}}|class={{{class|}}}|{{{title|}}}]]
<div style="position: absolute; top: 0px; left: 0px; z-index: 2">[[Image:{{{image}}}|{{{width}}}|{{{link}}}]]</div>
</div></includeonly><noinclude>
</div>
{{/Documentation}}
[[Category:Templates using click|{{PAGENAME}}]]
[[de:Vorlage:Click]]
</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