Template:Imagelink: Difference between revisions

From ScoutWiki, For Everyone, Everywhere involved with Scouting and Guiding...
Jump to navigation Jump to search
(+uncat)
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{uncat}}
<includeonly><div style="position:relative;width:{{{width}}};height:{{{height}}};z-index:2;overflow:hidden;vertical-align:middle;"><div class="nodeco" style="position:absolute;font-size:{{{height}}};overflow:hidden;line-height:{{{height}}};letter-spacing:{{{width}}};">[[{{{link}}}|<span title="{{{link}}}" style="text-decoration:none;">&nbsp; &nbsp;</span>]]</div>[[Image:{{{image}}}|{{{width}}}|{{{link}}}]]</div></includeonly><noinclude>


<includeonly><div style="position:relative;width:{{{width}}};height:{{{height}}};z-index:2;overflow:hidden;vertical-align:middle;"><div class="nodeco" style="position:absolute;font-size:{{{height}}};overflow:hidden;line-height:{{{height}}};letter-spacing:{{{width}}};">[[{{{link}}}|<span title="{{{text|{{{link}}}}}}" style="text-decoration:none;">&nbsp; &nbsp;</span>]]</div>[[Image:{{{image}}}|{{{width}}}|{{{text|{{{link}}}}}}]]</div></includeonly><noinclude>
This templates enables you to create a link on an image. That link replaces the traditionnal link to the image's description page.
This templates enables you to create a link on an image. That link replaces the traditionnal link to the image's description page.


==Example==
<pre>{{imagelink|image=Wiki letter w.svg|width=50px|height=50px|link=Main Page}}</pre>
;Looks like :
{{imagelink|image=Wiki letter w.svg|width=50px|height=50px|link=Main Page}}


;Exemple:
==Templateless test==
<pre>{{imagelink|image=BP_small.png|width=50px|height=50px|link=Baden-Powell}}</pre>
Simply html + wikicode for image/link, without template nor parameter :
;Looks like :
 
{{imagelink|image=BP_small.png|width=50px|height=50px|link=Lord Robert BADEN-POWELL}}
<div style="position:relative;width:120px;height:130px;z-index:2;overflow:hidden;vertical-align:middle;"><div class="nodeco" style="position:absolute;font-size:120px;overflow:hidden;line-height:120px;letter-spacing:130px;">[[Main Page|<span title="text" style="text-decoration:none;">&nbsp; &nbsp;</span>]]</div>[[Image:Wiki letter w.svg|120px|text]]</div>


[[Category:Template]]
[[Category:Template]]


[[da:Skabelon:Billedlink]]
[[da:Skabelon:Billedlink]]
[[fr:Modèle:Lien sur image]]</noinclude>
[[fr:Modèle:Lien sur image]]
[[it:Template:Img-Link]]
[[nl:Sjabloon:Klik]]
</noinclude>

Latest revision as of 14:00, 25 January 2009


This templates enables you to create a link on an image. That link replaces the traditionnal link to the image's description page.

Example

{{imagelink|image=Wiki letter w.svg|width=50px|height=50px|link=Main Page}}
Looks like
Main Page

Templateless test

Simply html + wikicode for image/link, without template nor parameter :

text