Difference between revisions of "FGC:Imagelink"
Line 2: | Line 2: | ||
{| style="margin-left: auto; margin-right: auto;" | {| style="margin-left: auto; margin-right: auto;" | ||
|- | |- | ||
− | | <div style="border: 2px | + | | <div style="border: 2px solid {{{bcolour|blue}}}">{{#img: image={{{image|}}} |page={{{page|}}} |width={{{width|}}} }}</div> |
|} | |} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
+ | 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. | ||
+ | <pre> | ||
+ | {{FGC:Imagelink | ||
+ | |image= | ||
+ | |page= | ||
+ | |width= | ||
+ | |bcolour= | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ==Example== | ||
+ | |||
+ | The code below produces the image following. Not the image will be automatically centered. | ||
+ | <pre> | ||
+ | {{FGC:Imagelink | ||
+ | |image=Sachiel_Monitor.jpg | ||
+ | |page=Sachiel | ||
+ | |width=150px | ||
+ | |bcolor=blue | ||
+ | }} | ||
+ | </pre> | ||
+ | {{FGC:Imagelink | ||
+ | |image=Sachiel_Monitor.jpg | ||
+ | |page=Sachiel | ||
+ | |width=150px | ||
+ | |bcolor=blue | ||
+ | }} | ||
+ | When clicked on, the image takes the browser to the [[Sachiel]] article. | ||
[[Category: FGC Templates]] | [[Category: FGC Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 18:46, 3 October 2009
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= |width= |bcolour= }}
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 }}
page=Sachiel |width=150px }} |
When clicked on, the image takes the browser to the Sachiel article.