Extension:ShortUrl/pt

Not to be confused with Extension:UrlShortener or Manual:Short URL.
Category:BSD licensed extensions/pt
Manual de extensões do MediaWiki
ShortUrl
Estado de lançamento: estávelCategory:Stable extensions/pt
Implementação Página espacial Category:Special page extensions/pt
Descrição Adds a special page that redirects to an article based on the given base36-encoded ID
Autor(es) Yuvi Panda
Última versão 1.2.0 (2015-01-29)
MediaWiki 1.25+Category:Extensions with manual MediaWiki version/pt
Alterações à base de dados Sim
Tabelas shorturls
Licença Licença "Modificada" cláusula 3 BSD
Transferência Category:Extensions in Wikimedia version control/pt
  • $wgShortUrlTemplate
  • $wgShortUrlReadOnly
Traduza a extensão ShortUrl se esta estiver disponível em translatewiki.net
Problemas Tarefas em aberto · Reportar um erro
Category:All extensions/pt

ShortUrl is a special page extension that helps create shortened URLs for wiki pages, using their base36 encoded IDs. Adds a 'Short URL' link to the Toolbox. Primarily developed for use in the Indic Language Wikipedias.

Instalação

  • Exporte e coloque o ficheiro, ou ficheiros, num diretório chamado ShortUrl, na sua pasta extensions/.
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ShortUrl
    
  • Acrescente o seguinte código ao fundo do ficheiro $LocalSettings:
    wfLoadExtension( 'ShortUrl' );
    
  • Execute o script de atualização que irá criar automaticamente as tabelas da base de dados necessárias para esta extensão.
  • Yes Pronto – Na página especial Special:Version da sua wiki verifique se a extensão foi instalada.

Uso

  1. When installed redirects are available under Special:ShortUrl/<base36>.
  1. Links to redirects can be found in the Toolbox and under the heading (JavaScript only)

Configuração

  1. (Optional) Run populateShortUrlTable.php maintenance script. Fills the shorturl database table with entries for all namespace/title parts of all currently existing articles.
  1. Set $wgShortUrlTemplate to the template of the path for generating short URLs. $1 is replaced with the actual short URL ID.

Ver também

Category:Extensions used on Wikimedia/pt#ShortUrl/pt
Category:All extensions/pt Category:BSD licensed extensions/pt Category:BeforePageDisplay extensions/pt Category:Extensions in Wikimedia version control/pt Category:Extensions used on Wikimedia/pt Category:Extensions with manual MediaWiki version/pt Category:LoadExtensionSchemaUpdates extensions/pt Category:SidebarBeforeOutput extensions/pt Category:Special page extensions/pt Category:Stable extensions/pt Category:WebRequestPathInfoRouter extensions/pt