Help:Page status indicators/pt-br

Indicadores de situação de página são ícones (ou breves textos) exibidos fora do conteúdo principal que fornecem informações rápidas acerca da situação do artigo (por exemplo, se a página está protegida ou se é um artigo destacado).

Eles também são conhecidos por ícones superiores, de página, de cabeçalho ou de título.

Essa funcionalidade foi adicionada ao MediaWiki 1.25 na para resolver a  e substituir as numerosas soluções ad-hoc para esse problema, como a predefinição top icon da Wikipédia anglófona.

Vendo os indicadores de situação de página
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.

Adding page status indicators in wikitext
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.

Note that:


 * Every indicator must have a unique identifier (name). It's not possible to have several indicators with the same name – in case of duplicates, the latest occurrence of the tag wins.
 * Indicators are displayed ordered by their names (case-sensitive) and not in order of their occurrence. This ensures consistency across pages and provides a simple means of ordering or grouping them.
 * Indicators are not tracked. They are intended to merely reflect the content or metadata that is already present on the page, and not be data themselves. You should be able to use the appropriate tracking category, template transclusions list, special page report, or other means to list pages that include a given indicator.

Customizing display on your wiki
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  (for the entire containing block) and   (for each separate indicator).

Each indicator is also given an id of, where name is the name assigned to the indicator using the   syntax.

Adding support for indicators in skins
See.

Using indicators from PHP code
Access the object and call its   method, passing an ID and the HTML string you want displayed. If you're adding a help link to documentation, call its  method, also implemented by  and other classes. This puts a help link in the indicators area; for example, see Special:WhatLinksHere.