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

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>MiamiVolts
add note about hoverbox for future ref
imported>Ryangibsonstewart
m Reverted edits by Martin Van Buren (Talk); changed back to last version by Ryangibsonstewart
 
(2 intermediate revisions by 2 users not shown)
Line 17: Line 17:
Inline for cut and paste:
Inline for cut and paste:
<pre>{{Imagelink | image= | height= | width= | link= | text= | externallink= }}</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.<br />
The <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.<br />
Note: For internal links (image or otherwise), the hover box text for most browsers always shows as the title of the page linked to. For external links (image or otherwise), the hover box text for most browsers always shows as the URL. The <tt>text=</tt> attribute in this template sets the alternative text that appears in place of the image in text browsers.
Note: For internal links (image or otherwise), the hover box text for most browsers always shows as the title of the page linked to. For external links (image or otherwise), the hover box text for most browsers always shows as the URL. The <tt>text=</tt> attribute in this template sets the alternative text that appears in place of the image in text browsers.



Latest revision as of 04:49, 25 August 2011

Main Page

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 used in place of link -->
}}

Inline for cut and paste:

{{Imagelink | image= | height= | width= | link= | text= | externallink= }}

The 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.
Note: For internal links (image or otherwise), the hover box text for most browsers always shows as the title of the page linked to. For external links (image or otherwise), the hover box text for most browsers always shows as the URL. The text= attribute in this template sets the alternative text that appears in place of the image in text browsers.

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