Ajuda: Identificador de Página
Appearance
Para informação orientada para os programadores, consulte Manual:Page ID.
O Identificador de página, algumas vezes 'Identificador de artigo' (se a página representa um artigo), é um número que é único dentro do âmbito da wiki e identifica a página da wiki.
Funcionalidades gerais
- A page ID is generally more stable, and often shorter, than a page title. Consequently, URLs based on page IDs may be more useful as persistent identifiers than canonical URLs based on page titles. See #How to access a page by page ID below.
- A page ID does not change when a page is moved.
- If a page is deleted, its historical page ID persists in the archive table. If the page is restored, it attempts to reclaim its old page ID. This was not yet the case in MediaWiki 1.27 and before.
- Special pages do not come with page IDs.
Como procurar o Identificador de página
- The page ID of any wiki page can be looked up in the "page information" link from the menu which is called Tools.
- The magic word
{{PAGEID}}can be used to return the page ID of a page. For instance, it reveals that the page ID of the current page is: 2287024. - Some APIs, such as API: Consulta, let you fetch the page ID by providing a page title. Por exemplo, https://www.mediawiki.org/w/api.php?action=query&prop=info&titles=Manual:Page%20ID
Como aceder à página pelo Identificador de página
- The special page Special:Redirect can be used to access pages via their page IDs. For example, Special:Redirect/page/2287024, redirects to the present page.
- index.php accepts the parameter
curidto access pages via their page IDs. For example, /w/index.php?curid=2287024 will load the present page.
Serviços que utilizam o 'Identificador de página'
APIs
Existem muitas funcionalidades de API que devolvem o 'Identificador de página' ou utilizam-no como uma entrada. Por exemplo, para a página presente, consulte https://www.mediawiki.org/w/api.php?action=query&prop=info&pageids=1902463.
What links here (O que interliga para aqui)
A funcionalidade What links here ordena as hiperligações por espaço nominal depois pelo 'Identificador de página'.