Template:Imagelink: Difference between revisions
Jump to navigation
Jump to search
Bluegoblin7 (talk | contribs) (typo) |
m (Test) |
||
Line 1: | Line 1: | ||
<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;"> </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=" | |||
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 : | |||
; | <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;"> </span>]]</div>[[Image:Wiki letter w.svg|120px|text]]</div> | ||
< | |||
[[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
Templateless test
Simply html + wikicode for image/link, without template nor parameter :