Jump to content

Template:Top icon/doc

From Outreach Wiki

This is a metatemplate used to help build top icons, the little (usually 20x20 pixels) icons in the top-right area of user pages or articles. The template uses the page status indicator system.

Usage

[edit]
{{Top icon
| imagename    = Image file to use as icon.
| wikilink     = The page to link to. This is where you will be taken when clicking the icon.
| description  = The tooltip will display this text when the mouse pointer hovers over the icon.
| id           = A unique id is required when using different top icons on the same page.
}}

Extra options:

| width        = Uses a different width for the images. Default is 20.
| height       = Uses a different height for the images. Default is 20.
| user         = Adds a category to be added in userspace.
| main         = Adds a category to be added in article mainspace.
| subpage      = For categorization on subpages (default = no).
| nocat        = Disables the automatically added category (default = no).

|width= and |height= are restrictive, meaning when one parameter is not set explicitly, the default acts as a maximum, even if the other parameter is set higher. To increase the overall size, both must be specified.

The following parameters are obsolete and no longer functional: |number=, |icon_nr=, |offset=, |extra-offset=, |class= and |style=.

Example

[edit]
{{Accountcreator topicon}}
{{Rollback topicon}}
{{Autopatrolled topicon}}

See also

[edit]

Template:Top icon templates