Template documentation (for the above template, sometimes hidden or invisible)
- Description
- This template is used to place icons at the top-right of a page for visual identification and categorisation, as well as provide navigation to associated pages.
- Dependencies
-
- Uses Template:Icons/SubIcon
- Uses javascript from our MediaWiki:Common.js
/* Adds icons to page header bottom border
* by: [[User:The 888th Avatar]]
*/
$(document).ready(function() {
if (skin == "oasis" || skin == "wikia") {
$('.WikiaPageHeader').append($('#icons'));
$('#icons').css({'position' : 'absolute', 'right' : '0', 'bottom' : '-1.2em'});
}
});
- If using Monobook, uses a CSS id "icons" from our MediaWiki:Common.css:
#icons {
position:absolute;
z-index:100;
right:3px;
top:10px;
float: right;
}
- Syntax
- Type
{{Icons|<...>}}
somewhere, with parameters as explained further below. - Sample output
- Indicate that an article is a featured article:
{{Icons|FA}}
gives...- Indicate that an article is an A-class article:
{{Icons|A-class}}
gives...- Indicate that an article is a B-class article:
{Icons|B-class}}
gives...- Indicate that a page is temporarily fully protected:
{{Icons|p-full}}
gives...- Indicate that a page is permanently fully protected:
{{Icons|p-fullp}}
gives...- Indicate that a page is semi-protected:
{{Icons|p-semi}}
gives...- Indicate that a page is create protected:
{{Icons|p-create}}
gives...- Indicate that a page is move protected:
{{Icons|p-move}}
gives...- Indicate that an article is about the real world:
{{Icons|real}}
gives...- Indicate that the subject of an article is a voice actor:
{{Icons|Voice actor}}
gives...- Indicate that the subject of an article is a film crew member:
{{Icons|Film crew}}
gives...- Indicate that the subject of an article is an airbender:
{{Icons|Airbender}}
gives...- Indicate that the subject of an article is a waterbender:
{{Icons|Waterbender}}
gives...- Indicate that the subject of an article is a earthbender:
{{Icons|Earthbender}}
gives...- Indicate that the subject of an article is a firebender:
{{Icons|Firebender}}
gives...- Indicate that the subject of an article is associated with the Air Nomads:
{{Icons|Air Nomads}}
gives...- Indicate that the subject of an article is associated with the Water Tribe:
{{Icons|Water Tribe}}
gives...- Indicate that the subject of an article is associated with the Earth Kingdom:
{{Icons|Earth Kingdom}}
gives...- Indicate that the subject of an article is associated with the Fire Nation:
{{Icons|Fire Nation}}
gives...- Indicate that the subject of an article is associated with the Order of the White Lotus:
{{Icons|Order of the White Lotus}}
gives...- Indicate that the subject of an article is associated with the Red Lotus:
{{Icons|Red Lotus}}
gives...- Indicate that the subject of an article is associated with the Earth Empire:
{{Icons|Earth Empire}}
gives...- Indicate that the subject of an article is a spirit:
{{Icons|Spirit}}
gives...- Indicate that the subject of an article is neutral:
{{Icons|Neutral}}
gives...- Indicate that the subject of an article is associated with the United Republic of Nations:
{{Icons|URN}}
gives...- Indicate that the subject of an article is associated with the Equalists:
{{Icons|Equalist}}
gives...- Indicate that the subject of an article was a former waterbender:
{{Icons|Former waterbender}}
gives...- Indicate that the subject of an article was a former earthbender:
{{Icons|Former earthbender}}
gives...- Indicate that the subject of an article was a former firebender:
{{Icons|Former firebender}}
gives...- Multiple icon parameters may be used. Example of all parameters together:
{{Icons|FA|A-class|B-class|p-full|p-fullp|p-semi|p-create|p-move|real|Voice Actor|Film Crew|Airbender|Waterbender|Earthbender|Firebender|Air Nomads|Water Tribe|Earth Kingdom|Fire Nation|Order of the White Lotus|Spirit|Neutral|URN|Equalist}}
gives...
- You can copy the example with all parameters together, and remove sections of the call code on the desired pages to make your own specific icon setting for the page.
- See also
Visit Template:Icons/doc to edit this text! (How does this work?)
Done editing it? Refresh this page! (Why?)
Done editing it? Refresh this page! (Why?)