Manual:$wgSitename

This page is a translated version of the page Manual:$wgSitename and the translation is 68% complete.
Configurações gerais: $wgSitename
O nome do site.
Introduzida na versão:pre 1.1.0
Removida na versão:ainda em uso
Valores permitidos:(string)
Valor por omissão:'MediaWiki'
'Wikipedia' (até à v1.2.0)

Detalhes

Este é o nome do site, conforme exibido em todo o site.

Esta definição deveria definir-se sempre em LocalSettings.php . Normalmente, o instalador do MediaWiki encarrega-se disto – o valor indicado durante a configuração inicial está incluído em Localsettings.php uma vez que o processo de configuração seja concluído com sucesso.

Este nome é incluído várias vezes em todo o sistema. Por exemplo, o lema da Wikipédia Da Wikipédia, a enciclopédia livre utiliza esta definição. É utilizado principalmente através da palavra mágica "{{SITENAME}}".

If $wgMetaNamespace (the "project" namespace) is not set, it will be automatically initialized to this value. Make sure the name is appropriately formatted with valid title characters, etc. Also, it cannot be empty, contain the # character, or be the string "MediaWiki".[1]

If you need to supply different grammatical forms for the site name, use $wgGrammarForms in your LocalSettings.php, for example for Polish:

$wgSitename = "Encyklopedia";
$wgGrammarForms['pl']['D.lp'][$wgSitename] = "Encyklopedii";
$wgGrammarForms['pl']['C.lp'][$wgSitename] = "Encyklopedii";
$wgGrammarForms['pl']['B.lp'][$wgSitename] = "Encyklopedię";
$wgGrammarForms['pl']['N.lp'][$wgSitename] = "Encyklopedią";
$wgGrammarForms['pl']['MS.lp'][$wgSitename] = "Encyklopedii";
$wgGrammarForms['pl']['W.lp'][$wgSitename] = "Encyklopedio";

$wgGrammarForms['pl']['M.lm'][$wgSitename] = "Encyklopedie";
$wgGrammarForms['pl']['D.lm'][$wgSitename] = "Encyklopedie";
$wgGrammarForms['pl']['C.lm'][$wgSitename] = "Encyklopediom";
$wgGrammarForms['pl']['B.lm'][$wgSitename] = "Encyklopedie";
$wgGrammarForms['pl']['N.lm'][$wgSitename] = "Encyklopediami";
$wgGrammarForms['pl']['MS.lm'][$wgSitename] = "Encyklopediach";
$wgGrammarForms['pl']['W.lm'][$wgSitename] = "Encyklopedie";

This can be quickly checked using MediaWiki:Userlogin-joinproject and MediaWiki:Createacct-benefit-heading messages.


  1. Other namespace names are technically possible, but will usually make the interface behave in unexpected ways when a page in the project namespace is visited (such as "no such user/file/special page found"-type messages).

Ver também