Difference between revisions of "Template:Click"

From Twinsuniverse
Jump to: navigation, search
m (4 revisions)
Line 1: Line 1:
<includeonly><div style="position: relative; width: {{{width}}}; height: {{{height}}}; overflow: hidden">
+
<includeonly>
<div style="position: absolute; top: 0px; right: 0px; font-size: 100px; overflow: hidden; line-height: 100px; z-index: 3">[[{{{link}}}|&nbsp;&nbsp;&nbsp;]]</div>
+
[[File:{{{image}}}|{{{width}}}|link={{{link}}}]]
<div style="position: absolute; top: 0px; right: 0px; z-index: 2">[[Image:{{{image}}}|{{{width}}}|{{{link}}}]]</div>
+
</includeonly><noinclude>
</div>
+
This template is used to create an image that points to it's article page, rather than it's file description page.
</includeonly>
+
  
<noinclude>==How to use==
+
==Syntax==
 
To use this template, copy this line, and fill in the variables:
 
To use this template, copy this line, and fill in the variables:
  <nowiki>{{Click|image=|width=|height=|link=}}</nowiki>
+
  <nowiki>{{click|image=|width=|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:
+
==Parameters==
<nowiki>{{Click|image=TWINSEN.jpg|width=100px|height=200px|link=Twinsen}}</nowiki>
+
* '''image''':  
 +
* '''width''':
 +
* '''link''':
  
Result:
+
'''''Note''': the '''width''' parameter should end with "px" (e.g. 200px).''
{{Click|image=TWINSEN.jpg|width=100px|height=200px|link=Twinsen}}
+
  
[[Category:Twinsunica - Templates|{{PAGENAME}}]]</noinclude>
+
==Example==
 +
Filling in all parameters, this template could be used like this:
 +
<nowiki>{{click|image=Twinsen.jpg|width=100px|link=Twinsen}}</nowiki>
 +
 
 +
:{{click|image=Twinsen.jpg|width=100px|link=Twinsen}}
 +
 
 +
[[Category:Twinsuniverse - Templates]]
 +
</noinclude>

Revision as of 18:25, 13 January 2013

This template is used to create an image that points to it's article page, rather than it's file description page.

Syntax

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

{{click|image=|width=|link=}}

Parameters

  • image:
  • width:
  • link:

Note: the width parameter should end with "px" (e.g. 200px).

Example

Filling in all parameters, this template could be used like this:

{{click|image=Twinsen.jpg|width=100px|link=Twinsen}}

Twinsen.jpg