Wikibooks:Bar: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Riga 467:
<small>Distributed via [[m:Global message delivery|Global message delivery]]. (Wrong page? [[m:Distribution list/Global message delivery|Fix here]].)</small>
<!-- EdwardsBot 0223 -->
 
== Installing [[mw:Extension:SubpageSortkey|Extension:SubpageSortkey]] ==
 
Hi!
 
After the recent review of the [[mw:Extension:SubpageSortkey|Extension:SubpageSortkey]], it is finally ready to be deployed on Wikibooks project(s), to improve the categorization system as described on [[:en:Wikibooks:Reading room/Archives/2010/June#DefaultSortkey for namespaces with subpages]].
 
Per [[bugzilla:22911#c30|Sumana's comment]] on the request, all we need is to confirm we want that feature. From [[bugzilla:22911#c11|comment 11]], the configuration here on Italian Wikibooks would be:
<syntaxhighlight lang="php" enclose="pre">
$wgSubpageSortkeyByNamespace[NS_MAIN] = '-1';
</syntaxhighlight>
 
This way, we would have a page "a/b/c/d" sorted as "d", without needing to ad the "|d" to the category code. E.g., [[:Category:Debian]] has:
* [[Debian/Ottenere Debian/Distribuzione]] sorted as "Distribuzione"
* [[Debian/Ottenere Debian/Supporti]] sorted as "Supporti"
but currently it is used <code><nowiki>[[Categoria:Debian|Distribuzione]]</nowiki></code> and <code><nowiki>[[Categoria:Debian|Supporti]]</nowiki></code>. The extension will permit the simple use of <code><nowiki>[[Categoria:Debian]]</nowiki></code> to get the same effect.
 
So, can it be installed with this configuration? If necessary, please take a look at the [[mw:Extension:SubpageSortkey#Usage|documentation]] to suggest an improved configuration. [[:pt:User:Helder.wiki|Helder]] 16:57, 25 lug 2012 (CEST)