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>Hardvice New page: <div style="position: relative; height: {{{height|78}}}px; overflow: hidden;"> <div align="center" style="position: absolute; top: 0px; left: 0px; font-size: {{#expr: {{{height|78}}} + 10}... |
imported>Hardvice fix height |
||
| Line 1: | Line 1: | ||
<div style="position: relative; height: {{{height|78}}}px; overflow: hidden;"> |
<div style="position: relative; height: {{{height|78}}}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">[[{{{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== |
||
Revision as of 20:02, 6 March 2007
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-->
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 |