Difference between revisions of "Template:Navimg"
From Worms Knowledge Base
Explorer09 (Talk | contribs) (description) |
Explorer09 (Talk | contribs) m (The inline parameter doesn't work according to my testing. I'll remove it) |
||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{#tag:imagemap| |
Image:{{{image|{{{1}}}}}}{{#if:{{{size|}}}{{{xsize|}}}{{{width|}}}{{{4|}}}|{{!}}{{{size|{{{xsize|{{{width|{{{4}}}}}}}}}}}}px}}{{!}}{{{alt|{{{tooltip|{{{3|{{{link|{{{2| }}}}}}}}}}}}}}} | Image:{{{image|{{{1}}}}}}{{#if:{{{size|}}}{{{xsize|}}}{{{width|}}}{{{4|}}}|{{!}}{{{size|{{{xsize|{{{width|{{{4}}}}}}}}}}}}px}}{{!}}{{{alt|{{{tooltip|{{{3|{{{link|{{{2| }}}}}}}}}}}}}}} | ||
{{#if:{{{link|}}}{{{2|}}} | {{#if:{{{link|}}}{{{2|}}} | ||
Line 9: | Line 9: | ||
}} | }} | ||
{{{form|}}} | {{{form|}}} | ||
− | + | }}</includeonly><noinclude>__NOTOC__ | |
===Usage=== | ===Usage=== | ||
<nowiki>{{</nowiki> Navimg<br/> | <nowiki>{{</nowiki> Navimg<br/> |
Revision as of 13:29, 1 December 2009
Usage
{{ Navimg
| image (1) = file.png
| link (2) = image link (e.g. Main Page (internal link) or http://worms2d.info/ (external link))
| tooltip (3) = tooltip
| size (4) / xsize / width = image size (e.g. 100 or 200x150)
| alt = alternate text
| desc = option to show the image description link or not. Can be top-right
, bottom-right
, bottom-left
, top-left
, or none
| form = other items you wish to put on the image map
}}
{{ Navimg | image | link | tooltip | size }}
The "image" and "link" parameter are required; the others are optional.
Notes
- If the "alt" parameter is not specified, the alt text will be the same as the tooltip.
- Do not add square brackets in the "link" parameter. (use
Main Page|WKB
instead of[[Main Page|WKB]]
, for example)