Template:Top icon/doc

From Edge of Darkness Wiki

Top icon/doc
Jump to: navigation, search

This is a metatemplate used to help build top icons, little (usually 15x15 pixels) icons in the top-right area of (mostly) userpages and user talk pages.

Usage

{{top icon
| imagename    = Crystal Clear action run.png
| wikilink     = The pagename of a wikipage. This is where you will be taken when clicking the icon.
| description  = This will show in the tooltip when hovering over the icon.
| id           = a page-unique id (used for CSS styling)
| class        = one or more custom class names (used for CSS styling)
| icon_nr      = the icon number determines the offset of the topicon (has to be used if you have more than one top icon)
| extra_offset = an additional offset that you can use to force or adapt (in case you have non-20px wide elements in your topicon row)
}}

Extra options:

| style        = add this to the style of the body
| width        = use a different width for the images. For icon_nr to function, all uses of topicon on a page, require the same width.

Any top icons that use this template are safe for sitenotices etc. However, when sitenotices are active, the icons are likely differently aligned and may cross the header line. ATM there is no way to fix this, and user top icons have a lower priority than the top icons for articles (which do work in all cases). However if you use this template, your icons will be automatically fixed permanently once we do find a solution.

Example

{{Accountcreator topicon|icon_nr=2}}
{{Rollback topicon|icon_nr=1}}
{{Autoreviewer topicon|icon_nr=0}}

Creates three icons, from left ---> right, account creator, rollback, autoreviewer.

Technical details

CSS is used to move a small piece of HTML from the content area of a wikipage to somewhere else on that page, usually in the top-right at the same height as the title of the wikipage. Because CSS is used, the icons require specific CSS for each individual skin. Currently only Monobook, Modern and Vector are supported.

Personal tools
Namespaces
Variants
Actions
Navigation
games
Toolbox