FGC:Imagelink: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{| {{#if:{{{no_float|}}}||class="fgc_imagelink"}} | <includeonly>{| {{#if:{{{no_float|}}}||class="fgc_imagelink"}} | ||
|- | |- | ||
|<div style="border: 2px solid {{{bcolour|blue}}};">{{#if:{{{height|}}}|{{#if:{{{width|}}}|[[Image:{{{image|}}}| | |<div style="border: 2px solid {{{bcolour|blue}}};">{{#if:{{{height|}}}|{{#if:{{{width|}}}|[[Image:{{{image|}}}|link={{{page|}}} |alt={{{alttext|{{{page|Clickable Image}}}}}} |height={{{height|}}}|width={{{width|}}}]]|[[Image:{{{image|}}} |link={{{page|}}} |alt={{{alttext|{{{page|Clickable Image}}}}}} |height={{{height|}}}]]}}|{{#if: {{{width|}}}|[[Image:{{{image|}}} |link={{{page|}}} |alt={{{alttext|{{{page|Clickable Image}}}}}} |width={{{width|}}} ]]|[[Image:{{{image|}}} |link={{{page|}}} |alt={{{alttext|{{{page|Clickable Image}}}}}}]]}}}}</div> | ||
|}</includeonly> | |}</includeonly> | ||
<noinclude> | <noinclude> |
Revision as of 18:43, 25 June 2012
This template is intended to allow the use of images as clickable links to pages other than the images own page.
Usage
To use this template, simply copy the following wiki code into the page and fill in the required values.
{{FGC:Imagelink |image= |page= |height= |width= |bcolour= |alttext= }}
Example
The code below produces the image following. Not the image will be automatically centered.
{{FGC:Imagelink |image=Sachiel_Monitor.jpg |page=Sachiel |width=150px |bcolor=blue |alttext=Information about Sachiel }}
When clicked on, the image takes the browser to the Sachiel article.