Difference between revisions of "User:Andre"
From Beyond Social
Line 5: | Line 5: | ||
[[Category:BS]] | [[Category:BS]] | ||
+ | |||
+ | =Wiki Settings= | ||
+ | ==Extensions== | ||
+ | ===SelectCategory=== | ||
+ | [https://www.mediawiki.org/wiki/Extension:SelectCategory SelectCategory] is responsible for the bottom category selection in menus | ||
+ | |||
+ | '''Extension does not work with skin Vector in MW 1.26. Needs to be changed to''' <code>wfLoadSkin( 'MonoBook' );</code> | ||
+ | |||
+ | Requires Categories to be organized as parents and children, with the parent category defined in extensions/SelectCategory/SelectCategory.php | ||
+ | |||
+ | <source lang="php"> | ||
+ | #$wgSelectCategoryNamespaces - list of namespaces in which this extension should be active | ||
+ | if( !isset( $wgSelectCategoryNamespaces ) ) $wgSelectCategoryNamespaces = array( | ||
+ | NS_MEDIA => true, | ||
+ | NS_MAIN => true, | ||
+ | NS_TALK => false, | ||
+ | NS_USER => false, | ||
+ | NS_USER_TALK => false, | ||
+ | NS_PROJECT => true, | ||
+ | NS_PROJECT_TALK => false, | ||
+ | NS_IMAGE => true, | ||
+ | NS_IMAGE_TALK => false, | ||
+ | NS_MEDIAWIKI => false, | ||
+ | NS_MEDIAWIKI_TALK => false, | ||
+ | NS_TEMPLATE => false, | ||
+ | NS_TEMPLATE_TALK => false, | ||
+ | NS_HELP => true, | ||
+ | NS_HELP_TALK => false, | ||
+ | NS_CATEGORY => true, | ||
+ | NS_CATEGORY_TALK => false | ||
+ | ); | ||
+ | |||
+ | # $wgSelectCategoryRoot - root category to use for which namespace, otherwise self detection (expensive) | ||
+ | if( !isset( $wgSelectCategoryRoot ) ) $wgSelectCategoryRoot = array( | ||
+ | NS_MEDIA => "BS", | ||
+ | NS_MAIN => "BS", | ||
+ | NS_TALK => false, | ||
+ | NS_USER => false, | ||
+ | NS_USER_TALK => false, | ||
+ | NS_PROJECT => "BS", | ||
+ | NS_PROJECT_TALK => false, | ||
+ | NS_IMAGE => "BS", | ||
+ | NS_IMAGE_TALK => false, | ||
+ | NS_MEDIAWIKI => false, | ||
+ | NS_MEDIAWIKI_TALK => false, | ||
+ | NS_TEMPLATE => false, | ||
+ | NS_TEMPLATE_TALK => false, | ||
+ | NS_HELP => "BS", | ||
+ | NS_HELP_TALK => false, | ||
+ | NS_CATEGORY => "BS", | ||
+ | NS_CATEGORY_TALK => false | ||
+ | ); | ||
+ | </source> |
Revision as of 20:12, 19 April 2016
<categorytree mode=pages depth=3 showcount=true>BS</categorytree>
Wiki Settings
Extensions
SelectCategory
SelectCategory is responsible for the bottom category selection in menus
Extension does not work with skin Vector in MW 1.26. Needs to be changed to wfLoadSkin( 'MonoBook' );
Requires Categories to be organized as parents and children, with the parent category defined in extensions/SelectCategory/SelectCategory.php
<source lang="php">
- $wgSelectCategoryNamespaces - list of namespaces in which this extension should be active
if( !isset( $wgSelectCategoryNamespaces ) ) $wgSelectCategoryNamespaces = array(
NS_MEDIA => true, NS_MAIN => true, NS_TALK => false, NS_USER => false, NS_USER_TALK => false, NS_PROJECT => true, NS_PROJECT_TALK => false, NS_IMAGE => true, NS_IMAGE_TALK => false, NS_MEDIAWIKI => false, NS_MEDIAWIKI_TALK => false, NS_TEMPLATE => false, NS_TEMPLATE_TALK => false, NS_HELP => true, NS_HELP_TALK => false, NS_CATEGORY => true, NS_CATEGORY_TALK => false
);
- $wgSelectCategoryRoot - root category to use for which namespace, otherwise self detection (expensive)
if( !isset( $wgSelectCategoryRoot ) ) $wgSelectCategoryRoot = array(
NS_MEDIA => "BS", NS_MAIN => "BS", NS_TALK => false, NS_USER => false, NS_USER_TALK => false, NS_PROJECT => "BS", NS_PROJECT_TALK => false, NS_IMAGE => "BS", NS_IMAGE_TALK => false, NS_MEDIAWIKI => false, NS_MEDIAWIKI_TALK => false, NS_TEMPLATE => false, NS_TEMPLATE_TALK => false, NS_HELP => "BS", NS_HELP_TALK => false, NS_CATEGORY => "BS", NS_CATEGORY_TALK => false
); </source>