mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-14 19:35:11 +00:00
87ddb7f735
This feature add an option `notranslations` that allows the category tree only to show the default pages and not include their translations equivalents on the tree. For example let's say we have a page (Test_page) that was created in a default language "en" in a category TestCat, and has translations listed: Test_page/es, Test_page/de, Test_page/ar etc. Doing `<categorytree notranslations="on">TestCat</categorytree> will render only the Test_page page with it's link to the page on the tree and nothing more. Note: If page "Foo/hu" exist but "Foo" doesn't, it should include "Foo/hu" in the category tree. In most case though, a base page will exist. Also, the feature is only available if Extension:Translate is made available on that wiki. TODO: If "notranslations" is used along side with "showcount", consider subtracting the number of pages suppressed from the total page count in the category tree for consistency. Bug: T229265 Change-Id: Ib4e7ab6ad98c05857cda1cd98bbc19e0504677bb |
||
---|---|---|
.phan | ||
i18n | ||
includes | ||
modules | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintrc.json | ||
CategoryTree.alias.php | ||
CategoryTree.i18n.magic.php | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gruntfile.js | ||
package-lock.json | ||
package.json | ||
README |
-------------------------------------------------------------------------- README for the CategoryTree extension Copyright © 2006-2008 Daniel Kinzler and others Licenses: GNU General Public Licence (GPL) GNU Free Documentation License (GFDL) -------------------------------------------------------------------------- The CategoryTree extension provides a dynamic view of the wiki's category structure as a tree. It uses AJAX to load parts of the tree on demand. The CategoryTree extension was originally written by Daniel Kinzler in 2006 and is released under the GNU General Public Licence (GPL). The internationalization files contain contributions by several people; they are mentioned in each file individually. Also thanks to Tim Starling for his contributions. Instructions on installing and using this extension are available at <https://www.mediawiki.org/wiki/Extension:CategoryTree>