Difference between revisions of "Template:Navimg"

From Worms Knowledge Base

Jump to: navigation, search
m (Dummy edit: There's an error in the last edit summary. The text "Obviously there's no "dablink" class in WKB's CSS" was mis-added.)
(description)
Line 17: Line 17:
 
| size (4) / 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/>
 +
| desc = option to show the image description link or not. Can be <code>top-right</code>, <code>bottom-right</code>, <code>bottom-left</code>, <code>top-left</code>, or <code>none</code><br/>
 +
| form = other items you wish to put on the image map
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
  
Line 25: Line 27:
 
===Notes===
 
===Notes===
 
* If the "alt" parameter is not specified, the alt text will be the same as the tooltip.
 
* 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 <code>Main Page|WKB</code> instead of <code><nowiki>[[Main Page|WKB]]</nowiki></code>, for example)
+
* Do not add square brackets in the "link" parameter. (use <code>Main Page|WKB</code> instead of <code><nowiki>[[Main Page|WKB]]</nowiki></code>, for example)</noinclude>
 
+
====To admins:====
+
If you're upgrading the MediaWiki engine, please also change the template code to the one like [[:w:Template:Click|Template:Click]] in wikipedia. This template will be deprecated in MediaWiki 1.14 or later.
+
 
+
</noinclude>
+

Revision as of 07:40, 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
| 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)
Personal tools