Template:Click/doc: Difference between revisions

remove instructions; mark deprecated and link to File syntax help
(Create)
 
(remove instructions; mark deprecated and link to File syntax help)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{documentation subpage}}
{{documentation subpage}}  


{{Tdeprecated|Click|new=[[Wikipedia:Extended image syntax#Link|<nowiki>[[File:Example.jpg|link=Link title]]</nowiki>]]|date=September 2009}}
'''Using this template is deprecated because regular File syntax is equivalent''': <nowiki>[[File:Example.jpg|link=Link title]]</nowiki> will just work the same as <nowiki>{{Click|image=File:Example.jpg|link=Link title}}</nowiki>.


This template links an image to a page other than its image description page. It has been updated to avoid the accessibility problems caused by an earlier version. '''Using this template is deprecated to new wiki syntax''': <nowiki>[[File:Example.jpg|link=Link title]]</nowiki> will just work the same as {{Tlf|Click|2=image=File:Example.jpg|3=link=Link title}}
See [[Help:Images]] for more information on using the File syntax.
 
== Prerequisites ==
* MediaWiki 1.14 ([[rev:41789]]) or later
 
== Usage ==
To use this template, simply copy the text below and replace the text between the <...> with the desired result.
<pre>
{{Click
|image  = <image to be linked>
|size  = <size of the image>
|width  = <width of the image> DEPRECATED
|height = <height of the image, optional> DEPRECATED
|link  = <page the image must link to>
|title  = <the label for the image, optional>
|desc  = <location of a description link, optional> DEPRECATED
}}
</pre>
 
* The <code>image</code> parameter specifies the image to be used. It defaults to [[:Image:Transparent.gif]] when not specified.
* The <code>size</code> parameter specified the maximum size of the image, either in the format <code>«width»x«height»px</code>, <code>«width»px</code>, or <code>x«height»px</code>.
* <s>The <code>width</code> parameter specifies the maximum width the image should be scaled to. It defaults to the default size of the image when not specified. '''Do not add "px" to the value'''.</s> '''DEPRECATED'''
* <s>The <code>height</code> parameter specifies the maximum height the image should be scaled to. It defaults to the default size of the image when not specified. '''Do not add "px" to the value'''.</s> '''DEPRECATED'''
* The <code>link</code> parameter specifies the page to which the image should link. It defaults to the [[Main Page]] when not specified.
* The <code>title</code> parameter specifies text to be used in the tooltip (text which appears on hovering the mouse over the image) and as alternative text if the image fails to load. It is entirely optional, and defaults to the text of the title of the page to which the image links.
* <s>The <code>desc</code> parameter specifies a location where an icon linking to the description page for the image can be placed. It is entirely optional, and can take any of the following values: <code>top-right</code>, <code>bottom-right</code>, <code>bottom-left</code>, <code>top-left</code>, or <code>none</code> to disable it completely. It defaults to <code>none</code> when not specified.</s> '''DEPRECATED'''


There shouldn't be any [https://www.familysearch.org/wiki/en/index.php?title=Special%3AWhatLinksHere&limit=500&target=Template%3AClick&namespace=2&invert=1 pages using this template].


<includeonly>
<includeonly>
Line 36: Line 12:


<!--Other languages-->
<!--Other languages-->
[[als:Vorlage:Link-Bild]]
[[ar:قالب:نقر]]
[[ca:Plantilla:Clic]]
[[cs:Šablona:Obrázek v odkazu]]
[[da:Skabelon:Klik]]
[[de:Vorlage:Link-Bild]]
[[et:Mall:Klikk]]
[[eo:Ŝablono:Click]]
[[es:Plantilla:Clic]]
[[eu:Txantiloi:Lotura iruditik]]
[[fa:الگو:کلیک]]
[[fr:Modèle:Lien sur image]]
[[he:תבנית:קליק]]
[[hy:Կաղապար:Կտտոց]]
[[id:Templat:Klik]]
[[is:Snið:Smella]]
[[it:Template:Clic]]
[[ko:Template:그림고리]]
[[na:Template:Click]]
[[nl:Sjabloon:Klik]]
[[ja:Template:Click]]
[[ka:თარგი:ბმული-სურათი]]
[[no:Mal:Klikk]]
[[pl:Szablon:Klik]]
[[pt:Predefinição:Click]]
[[fi:Malline:Kuvalinkki]]
[[th:แม่แบบ:คลิก]]
[[tr:Şablon:Click]]
[[vi:Tiêu bản:Hình tượng]]
[[zh:Template:Click]]
</includeonly>
</includeonly>
53,890

edits