Extensão:SandboxLink

This page is a translated version of the page Extension:SandboxLink and the translation is 29% complete.
Outdated translations are marked like this.
Manual de extensões do MediaWiki
SandboxLink
Estado da versão: estável
Implementação Interface de usuário, MyWiki
Descrição Adiciona um link para a sandbox pessoal do usuário ao menu de ferramentas pessoais
Autor(es) Bartosz Dziewoński (Matma Rexdiscussão)
Última versão Continuous updates
Política de
compatibilidade
Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki 1.25+
Modifica o banco
de dados
Não
Licença Licença MIT
Download
Help Help:Extension:SandboxLink/pt-br
  • $wgSandboxLinkDisableAnon
Quarterly downloads 62 (Ranked 88th)
Para traduzir a extensão SandboxLink, verifique sua disponibilidade no translatewiki.net
Problemas Tarefas em aberto · Relatar um bug

A extensão SandboxLink adiciona um link para a sandbox pessoal do usuário ao menu de ferramentas pessoais. Presume-se que a sandbox exista, ou será criada, em uma subpágina "/sandbox" da página de usuário do usuário. The extension accurately reflects the existence of the page (redlink, vs always-a-bluelink in the gadget) which will be useful for bringing it to the attention of newcomers. The extension also keeps the link available on restricted special pages (special:preferences and special:userlogin).

Uma versão mais limitada desta funcionalidade pode ser obtida com um snippet de JavaScript: Snippets/MySandbox . Este snippet foi usado anteriormente como um gadget em muitos wikis da Wikimedia, a maioria dos quais tinha definido como default=on. The main disadvantages of the gadget are performance and mis-clicks: Because the snippet only loads after everything else is rendered, it causes a distracting "movement" in the personal bar. This also leads to many mis-clicks, when an editor tries to visit their userpage or usertalkpage, and those links moved just before the click. On the other hand, the disadvantage of the extension is that when installed on a wiki, there is no way for a user to opt out of the sandbox link appearing on the personal toolbar.

Uso

See Help:Extension:SandboxLink.

Instalação

  • Baixe e coloque o(s) arquivo(s) num diretório chamado SandboxLink 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/SandboxLink
  • Adicione o seguinte código ao final do seu arquivo LocalSettings.php :
    wfLoadExtension( 'SandboxLink' );
    
  • Configure as required.
  •   Concluído – Navegue à página Special:Version em sua wiki para verificar se a instalação da extensão foi bem sucedida.


Configuração

Configuração do lado do servidor

This extension provides one configuration option:

$wgSandboxLinkDisableAnon
(Default: true)
Whether to disable the functionality for anonymous users.

Configuração On-wiki

The sandbox link generated by this extension can be tweaked by modifying some system messages.

sandboxlink-subpage-name
(Default in English: "sandbox", varies per language)
The name of user's subpage where the sandbox should be created. By default, the page used will be "User:Example/sandbox".
Set this message to '-' to remove the sandbox link for all users.
The value in wiki's content language will always be used, regardless of user's chosen language. If you're running a multilingual wiki, this can be overridden with the $wgForceUIMsgAsContentMsg MediaWiki configuration setting.
sandboxlink-portlet-label
(Default in English: "Sandbox", varies per language)
The label of the link in the user's personal toolbar.
tooltip-pt-sandbox
(Default in English: "Your sandbox", varies per language)
The text contained in the "title" attribute of the link to the sandbox. This text is displayed when the user hovers their mouse over the link.
sandboxlink-editintro-pagename
sandboxlink-preload-pagename
(Default: '-')
When the sandbox page does not exist, the page title to use for the 'editintro' and 'preload' parameters of the link. See Manual:Parameters to index.php#Options affecting the edit form. Not enabled by default.

Ver também