The ScoutWiki Network server was offline since Friday 26th April because of a boot problem in the host server. All services should be back to normal since Sunday 12:00 (UTC). We apologise for any inconvenience caused by the outage.

Difference between revisions of "Template:Imagelink"

From ScoutWiki, For Everyone, Everywhere involved with Scouting and Guiding...
Jump to: navigation, search
(typo)
m (Test)
Line 1: Line 1:
<noinclude>{{uncat}}<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="{{{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}}
 +
 +
==Templateless test==
 +
Simply html + wikicode for image/link, without template nor parameter :
  
;Example:
+
<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>
<pre>{{imagelink|image=BP_small.png|width=50px|height=50px|link=Baden-Powell}}</pre>
 
;Looks like :
 
{{imagelink|image=BP_small.png|width=50px|height=50px|link=Lord Robert BADEN-POWELL}}
 
  
 
[[Category:Template]]
 
[[Category:Template]]

Revision as of 12:46, 2 June 2008


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