Difference between revisions of "Template:Click"

From Twinsuniverse
Jump to: navigation, search
m (A new template that enables linking via images. Shamelessly copied from Wikipedia. Might come useful some time)
 
m
Line 1: Line 1:
<div style="position: relative; width: {{{width}}}; height: {{{height}}}; overflow: hidden">
+
<includeonly><div style="position: relative; width: {{{width}}}; height: {{{height}}}; overflow: hidden">
 
<div style="position: absolute; top: 0px; right: 0px; font-size: 100px; overflow: hidden; line-height: 100px; z-index: 3">[[{{{link}}}|&nbsp;&nbsp;&nbsp;]]</div>
 
<div style="position: absolute; top: 0px; right: 0px; font-size: 100px; overflow: hidden; line-height: 100px; z-index: 3">[[{{{link}}}|&nbsp;&nbsp;&nbsp;]]</div>
 
<div style="position: absolute; top: 0px; right: 0px; z-index: 2">[[Image:{{{image}}}|{{{width}}}|{{{link}}}]]</div>
 
<div style="position: absolute; top: 0px; right: 0px; z-index: 2">[[Image:{{{image}}}|{{{width}}}|{{{link}}}]]</div>
 
</div>
 
</div>
 +
</includeonly>
 +
 +
<noinclude>==How to use==
 +
To use this template, copy this line, and fill in the variables:
 +
<nowiki>{{Click|image=|width=|height=|link=}}</nowiki>
 +
 +
Note that the width and height variables should end with "px" (e.g. 200px). The image variable only needs the file name. For example:
 +
<nowiki>{{Click|image=TWINSEN.jpg|width=100px|height=200px|link=Twinsen}}</nowiki>
 +
 +
Result:
 +
{{Click|image=TWINSEN.jpg|width=100px|height=200px|link=Twinsen}}
 +
</noinclude>

Revision as of 14:18, 15 April 2007


How to use

To use this template, copy this line, and fill in the variables:

{{Click|image=|width=|height=|link=}}

Note that the width and height variables should end with "px" (e.g. 200px). The image variable only needs the file name. For example:

{{Click|image=TWINSEN.jpg|width=100px|height=200px|link=Twinsen}}

Result:

100px