Template:Navimg

From Worms Knowledge Base

Jump to: navigation, search

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
| inline = set "1" for inline image
}}

{{ Navimg | image | link | tooltip | size }}}}

The "image" and "link" parameter are required; the others are optional.

Notes

  • This template is deprecated. The new wiki syntax [[File:Example.jpg|link=Link title]] (introduced in MediaWiki 1.14) could work the same.
  • 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 instead of [[Main Page]], for example)
  • The equal sign "=" in URLs must be escaped with {{=}} if used in the unnamed parameter. For example: {{navimg|Wkblarge.png|http://worms2d.info/?title{{=}}Main_Page}}


Personal tools