This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.
Template:Imagelink: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>AdminBot m Removing Category:Templates from templates which already belong to other categories |
imported>Ryangibsonstewart add external link option |
||
| Line 1: | Line 1: | ||
<div style="position: relative; height: {{{height|78}}}px; width: {{{width|100}}}px; overflow: hidden;"> |
<div style="position: relative; height: {{{height|78}}}px; width: {{{width|100}}}px; overflow: hidden;"> |
||
<div align="center" style="position: absolute; top: 0px; left: 0px; font-size: {{#expr: {{{height|78}}} + 10}}px; overflow: hidden; width: {{{width|100}}}px; height: {{{height|78}}}px; line-height: {{{height|78}}}px; z-index: 3; link-hover: none">[[{{{link|Main Page}}}| ]]</div> |
<div align="center" style="position: absolute; top: 0px; left: 0px; font-size: {{#expr: {{{height|78}}} + 10}}px; overflow: hidden; width: {{{width|100}}}px; height: {{{height|78}}}px; line-height: {{{height|78}}}px; z-index: 3; link-hover: none">{{#if:{{{externallink|}}}|[{{{externallink}}} ]|[[{{{link|Main Page}}}| ]]}}</div> |
||
<div style="position: absolute; top: 0px; left: 0px; z-index: 2"><center>[[Image:{{{image|blank.jpg}}}|{{{width|100}}}px|{{#if:{{{text|}}} | {{{text}}} | {{{link|Main Page}}}}}]]</center></div></div><noinclude> |
<div style="position: absolute; top: 0px; left: 0px; z-index: 2"><center>[[Image:{{{image|blank.jpg}}}|{{{width|100}}}px|{{#if:{{{text|}}} | {{{text}}} | {{{link|Main Page}}}}}]]</center></div></div><noinclude> |
||
==Usage== |
==Usage== |
||
| Line 11: | Line 11: | ||
| link = <!-- Article to link to--> |
| link = <!-- Article to link to--> |
||
| text= <!-- OPTIONAL Alt text for link--> |
| text= <!-- OPTIONAL Alt text for link--> |
||
| externallink= <!-- OPTIONAL external link --> |
|||
|} |
|} |
||
</pre> |
</pre> |
||
Inline for cut and paste: |
Inline for cut and paste: |
||
<pre>{{Imagelink | image= | height= | width= | link= | text=}}</pre> |
<pre>{{Imagelink | image= | height= | width= | link= | text= | externallink= }}</pre> |
||
<tt>Height</tt> and <tt>width</tt> must both be specified. Decide the display width you need and multiply it by the aspect ratio constant for the type of image you are using. Common ratios for image height and width are as follows. |
<tt>Height</tt> and <tt>width</tt> must both be specified. Decide the display width you need and multiply it by the aspect ratio constant for the type of image you are using. Common ratios for image height and width are as follows. |
||
Revision as of 02:05, 20 January 2008
Usage
Produces a linked image.
{{Imagelink
| image = <!--Image filename-->
| height = <!--Height of image-->
| width = <!-- Width of image-->
| link = <!-- Article to link to-->
| text= <!-- OPTIONAL Alt text for link-->
| externallink= <!-- OPTIONAL external link -->
|}
Inline for cut and paste:
{{Imagelink | image= | height= | width= | link= | text= | externallink= }}
Height and width must both be specified. Decide the display width you need and multiply it by the aspect ratio constant for the type of image you are using. Common ratios for image height and width are as follows.
| Image Type | Standard Size | Ratio |
|---|---|---|
| Episode image/other full 16x9 screencaps | 300x169 | Height = Width x .563 |
| Prophecy images | 300x200 | Height = Width x .667 |
| Most images | 450x350 | Height = Width x .778 |
| Portraits | 200x250 | Height = Width x 1.25 |