Template:Top icon
Jump to navigation
Jump to search
This is a metatemplate used to help build top icons, little icons placed in the top-right area of pages.
Usage
{{top icon
| imagename = Crystal Clear action run.svg
| wikilink = a page to link the icon to (optional)
| description = a tooltip for the icon (optional)
| id = a page-unique id (optional; used for CSS styling)
| class = one or more custom class names (optional; used for CSS styling)
| icon_nr = offset of the top icon (must be used if you have more than one top icon on a page)
| extra_offset = an additional offset in pixels (if you have >20px top icons in a row)
| width = width of the image (defaults to 15)
| height = height of the image (defaults to width)
| style = add this to the style of the icon div (optional)
}}
Note that for icon_nr to work well, all uses of {{top icon}} on a page should have the same width. If they don't, you may be able to use extra_offset.