Difference between revisions of "Template:Navimg"

From Worms Knowledge Base

Jump to: navigation, search
(fix the code & add description text)
(Usage: description)
Line 12: Line 12:
 
===Usage===
 
===Usage===
 
<nowiki>{{</nowiki> Navimg<br/>
 
<nowiki>{{</nowiki> Navimg<br/>
| image = ''file.png''<br/>
+
| image (1) = ''file.png''<br/>
| link = ''image link'' (e.g. ''[[Main Page]]'' (internal link) or ''http://worms2d.info/'' (external))<br/>
+
| link (2) = ''image link'' (e.g. ''[[Main Page]]'' (internal link) or ''http://worms2d.info/'' (external link))<br/>
| tooltip = ''tooltip''<br/>
+
| tooltip (3) = ''tooltip''<br/>
| size / xsize / width = ''image size'' (e.g. ''100'' or ''200x150'')<br/>
+
| size (4) / xsize / width = ''image size'' (e.g. ''100'' or ''200x150'')<br/>
 
| alt = ''alternate text''<br/>
 
| alt = ''alternate text''<br/>
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
  
 
<nowiki>{{ Navimg | image | link | tooltip | size }}</nowiki>
 
<nowiki>{{ Navimg | image | link | tooltip | size }}</nowiki>
 +
 +
The "image" and "link" parameter are required; the others are optional.
  
 
===Notes===
 
===Notes===

Revision as of 06:28, 28 November 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
}}

{{ 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)
Personal tools