Extensão:ShortUrl

This page is a translated version of the page Extension:ShortUrl and the translation is 38% complete.
Not to be confused with Extension:UrlShortener or Manual:Short URL.
Manual de extensões do MediaWiki
ShortUrl
Estado de lançamento: estável
Implementação Página espacial
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+
Alterações à base de dados Sim
Tabelas shorturls
Licença Licença "Modificada" cláusula 3 BSD
Transferência
  • $wgShortUrlTemplate
  • $wgShortUrlReadOnly
Quarterly downloads 25 (Ranked 124th)
Traduza a extensão ShortUrl se ela estiver disponível em translatewiki.net
Problemas Tarefas em aberto · Reportar um erro

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.
  •   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