Vereadores
Prefeitos
Governadores
Empresarios
Advogados
Contatos
|
20h07min, Sábado, 19 de Maio de 2012
375 pessoas cadastradas "Um povo de cordeiros sempre terá um governo de lobos".
|
Corruptopedia:Ajuda
De Corruptopedia
Tabela de conteúdo |
[editar] Categoria da Ajuda
[editar] Links da Administração
Quais páginas apontam para esta? [Especial:Whatlinkshere/NOME_DA_PAGINA]
MediaWiki:Sitenotice - Linha que aparece em cima
MediaWiki:Sidebar - Barra que aparece na esquerda
[editar] Constantes da Programação Wiki
{{NUMBEROFARTICLES}} -- Mostra o número atual de artigos --> 375
{{SITENAME}} -- Titulo do site --> Corruptopedia
{{SERVER}} = http://www.corruptopedia.org
{{SERVERNAME}} = www.corruptopedia.org
{{localurl:fullpagename}} = /enciclopedia/Fullpagename
{{localurl:a&b!}} = /enciclopedia/A%26b!
{{localurle:a&b!}} = /enciclopedia/A%26b!
{{localurl:page|query=x}} = /w/index.php?title=Page&query=x
{{CURRENTYEAR}}
| 2012 | {{CURRENTMONTH}}
| 05 | |
{{CURRENTMONTHNAME}}
| Maio | {{CURRENTMONTHABBREV}}
| Mai | |
{{CURRENTMONTHNAMEGEN}}
| Maio | {{CURRENTWEEK}}
| 20 | |
{{CURRENTDAY}}
| 19 | {{CURRENTDAY2}}
| 19 | |
{{CURRENTDAYNAME}}
| Sábado | {{CURRENTDOW}}
| 6 | |
{{CURRENTTIME}}
| 20h09min | {{REVISIONID}}
| 2151 | |
{{NUMBEROFARTICLES}}
| 375 | {{NUMBEROFARTICLES|R}}
| Predefinição:NUMBEROFARTICLES | |
{{NUMBEROFFILES}}
| 159 | {{NUMBEROFFILES|R}}
| Predefinição:NUMBEROFFILES | |
{{NUMBEROFUSERS}}
| 791 | {{NUMBEROFUSERS|R}}
| Predefinição:NUMBEROFUSERS |
NUMBEROFARTICLES: number of pages in the main namespace which contain a link and are not a redirect, i.e. number of articles, stubs containing a link, and disambiguation pages.
This depends on system variable $wgUseCommaCount If true, article count will only include those with commas (","). If false, will only count those with links ("[["). The default set in DefaultSettings.php is false, this can be changed in LocalSettings.php. See also Help:Article count.
Time variables which change more often than once a day are generally useful only as curiosities. Because of the way article HTML is cached, these variables may be wrong by up to 24 hours, and so are not a reliable way to tell the user the current time.
- CURRENTWEEK ranges from 1 to 54 Predefinição:Unclear.
- CURRENTMONTHNAMEGEN is the genitive grammatical form of the month name (used in Finnish).
- CURRENTDAY2 adds a leading zero to days 1...9, this allows to construct the ISO date formats like 2012-05-19T20h09minZ.
[editar] Dependendo da página
| Plain | Encoded | ||
|---|---|---|---|
{{PAGENAME}} | Ajuda | {{NAMESPACE}} | Corruptopedia |
{{PAGENAMEE}} | Ajuda | TESTE1 | TESTE2-!!- |
{{NAMESPACE}} and {{NAMESPACEE}} both return nothing (not even a space) in the article namespace.
PAGENAMEE displays the page title in the form that is used in URLs, i.e. with underscores for spaces, and escape codes for special characters, and is therefore used for constructing URLs. For example, on a page called "Grand café", PAGENAMEE would produce "Grand_caf%C3%A9". Do not use PAGENAMEE as the pagename in first part of the variable localurl, see above.
When used in a template, these twenty variables refer to the page in which the template is included, not to the template page.
In a subpage, [[../]] renders as a link to the parent page. For example, on m:Link/a/b it gives an internal link to m:Link/a, see Help:Link#Subpage feature.
[editar] Configurações do Settings.php
The changes will be effective the moment you save LocalSettings.php – you do not need to restart any servers.
[editar] Variaveis do Name space
Goto /includes/DefaultSettings.php and copy the variables $wgExtraNamespaces, $wgNamespacesWithSubpages, and $wgNamespacesToBeSearchedDefault into LocalSettings.php
Note: If $wgExtraNamespaces is not in DefaultSettings.php, you probably have a very old version of MediaWiki (1.3.2 or older). You should upgrade to the current release, as there have been bug and security fixes since then.
[editar] Addicionando NameSpace Extras
To $wgExtraNamespaces, add the name of your namespace and its talk page, using the names and numbers chosen in step 1.
- Example:
$wgExtraNamespaces = array(100 => "Foo", 101 => "Foo_Talk");
Note: Any existing pages whose titles start with the letters "Foo:" or "Foo talk:" will become unavailable, so you'd better rename them first.
[editar] Subdiretórios no NameSpace
Se você quer sub pages, então adicione $wgNamespacesWithSubpages
- Example for MediaWiki 1.5.x:
$wgNamespacesWithSubpages = array(
NS_TALK => true,
NS_USER => true,
NS_USER_TALK => true,
NS_PROJECT_TALK => true,
NS_IMAGE_TALK => true,
NS_MEDIAWIKI_TALK => true,
NS_TEMPLATE_TALK => true,
NS_HELP_TALK => true,
NS_CATEGORY_TALK => true,
100 => true,
101 => true
);
[editar] Como mandar pesquisar nos novos NameSpaces
The new namespaces can be searched by default, by enabling their variables in $wgNamespacesToBeSearchedDefault
- Example for MediaWiki 1.5.x:
$wgNamespacesToBeSearchedDefault = array(
-1 => 0,
NS_MAIN => 1,
NS_USER => 0,
NS_USER_TALK => 0,
NS_PROJECT_TALK => 0,
NS_IMAGE_TALK => 0,
NS_IMAGE_TALK => 0,
NS_TEMPLATE_TALK => 0,
NS_HELP_TALK => 0,
NS_CATEGORY_TALK => 0,
100 => 1,
101 => 1
);
The changes will be effective the moment you save LocalSettings.php – you do not need to restart any servers.
[editar] Disabilitar Edições Anônimas
- By adding the following line to LocalSettings.php, it is possible to entirely disable anonymous edits:
Pre-1.5
#Entirely disable Anonymous Edits in Wiki versions 1.4 and before $wgWhitelistEdit = true;
1.5 upwards
# This snippet prevents editing from anonymous users $wgGroupPermissions['*']['edit'] = false;
[editar] Disable anonymous reading
- If you want anonymous users not to be able to read or edit your MediaWiki, add this line to your LocalSettings.php:
# Pages anonymous (not-logged-in) users may see $wgWhitelistRead = array( "Main Page", "Special:Userlogin", "-", "MediaWiki:Monobook.css", "Wikipedia:Help" );
This way anonymous users can only see the Main Page, the user login page and the help page. Caution: if your MediaWiki is in a language different than English, you need to translate the titles in the array. For instance, in Spanish the line will look like this one:
$wgWhitelistRead = array ("Portada", "Especial:Userlogin", "-", "MediaWiki:Monobook.css", "MiWiki:Ayuda");
For more esoteric languages, for which your editor and PHP parser might be in disagreement over file encoding, you could use the PHP urldecode() to input the page names. For example in Hebrew you could use:
- "Special":Userlogin (in Hebrew)
$wgWhitelistRead = array( urldecode("%D7%9E%D7%99%D7%95%D7%97%D7%93:Userlogin"),
- "MainPage" in Hebrew
urldecode("%D7%A2%D7%9E%D7%95%D7%93_%D7%A8%D7%90%D7%A9%D7%99") ) ;
You may find more information about user access restriction on Setting user rights in MediaWiki
1.5.x
In 1.5, in order to prevent readings from anonymous users you also need to set:
$wgWhitelistRead = array( "Main Page", "Special:Userlogin", "-", "MediaWiki:Monobook.css" ); $wgGroupPermissions['*' ]['read'] = false;
- The first line allows users to view the main page and log in. Without this line, no one can log in.
- To prevent a special page from being listed at Special:Specialpages, edit SpecialPage.php and change the relevant entry to be an instance of UnlistedSpecialPage instead of SpecialPage.
[editar] Preventing access to some SpecialPages
According to what is mentioned on Writing a new special page, you need to make changes in DefaultSettings.php as well as in SpecialPage.php. If, for example, you only want normal registered users see the Specialpage "Specialpages", which lists all specialpages, you need to do the following:
In Specialpage.php you change:
'Recentchanges' => new SpecialPage( 'Recentchanges'),
to:
'Recentchanges' => new SpecialPage( 'Recentchanges', 'onlyuser'),
and in DefaultSettings you need to define "onlyuser":
$wgGroupPermissions['user']['onlyuser'] = true;
This assignes all users the new generated "onlyuser"-right.
[editar] Paginas importantes
Predefinição:Políticas da Corruptopedia

