Page status indicators are icons (or short text snippets) displayed outside of the main content that provide quick information about the status of the article (for example whether the page is protected or whether it is a featured article).
They are also variously called top icons, page icons, heading icons or title icons.
This functionality was added to MediaWiki 1.25 in Gerrit change 162609 to solve T25796 and replace the numerous ad-hoc solutions to this problem, such as the English Wikipedia's ‘top icon’ template.
Vector skin screenshot with indicator area marked.Page status indicators are usually displayed in the top-right corner of the page, outside of the main content, or right before page title. Their exact location depends on the skin .
Use the following syntax to add indicators to a page, changing the name
attribute and contents of the tag to suit your tastes.
It is strongly recommended to create a template for each indicator type you're going to need, instead of including the tag syntax directly in articles.
Wikitext syntax:
<indicator name="foo">[[File:Foo.svg|20px]]</indicator>
Lua module syntax:
mw.getCurrentFrame():extensionTag { name = "indicator", content = '[[File:Foo.svg|20px]]', args = { name = "foo" } }
Note that:
title
attribute with the contents of the caption.If the skin you're using supports page status indicators (all default skins do), you can adjust their display using site and user CSS. The CSS classes to style are .mw-indicators
(for the entire containing block) and .mw-indicator
(for each separate indicator).
Each indicator is also given an ID of #mw-indicator-name
, where name
is the name assigned to the indicator using the <indicator name="foo">
syntax.
See array-indicators
on Manual:SkinMustache.php .
Access the OutputPage object and call its setIndicators()
method, passing an ID and the HTML string you want displayed. If you're adding a help link to documentation, call its addHelpLink()
method, also implemented by SpecialPage and other classes. This puts a help link in the indicators area; for example, see Special:WhatLinksHere.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4