Go to file
Derick Alangi 87ddb7f735 Suppress page translations and render only the default page(s)
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
2019-11-03 14:03:27 +01:00
.phan Migrate to new phan 2019-03-17 21:25:03 +01:00
i18n Localisation updates from https://translatewiki.net. 2019-10-28 16:32:40 +01:00
includes Suppress page translations and render only the default page(s) 2019-11-03 14:03:27 +01:00
modules Remove 'wgCategoryTreePageCategoryOptions' export from pageview HTML 2019-04-05 11:31:03 -07:00
.eslintrc.json Remove 'wgCategoryTreePageCategoryOptions' export from pageview HTML 2019-04-05 11:31:03 -07:00
.gitignore build: Updating npm dependencies for security issues 2019-06-07 22:43:50 -04:00
.gitreview Whoops, track not trace 2016-10-24 17:02:13 -07:00
.phpcs.xml Define visibility on class constant 2019-10-25 19:14:46 +02:00
.stylelintrc.json build: Bump devDependencies to latest 2018-02-14 09:21:40 -08:00
CategoryTree.alias.php Add Serbian aliases 2019-05-13 03:01:36 +02:00
CategoryTree.i18n.magic.php build: Updating mediawiki/mediawiki-codesniffer to 18.0.0 2018-04-13 22:19:35 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.4.0 2018-09-01 06:19:18 +00:00
composer.json build: Upgrade mediawiki-codesniffer to v28.0.0 2019-10-11 13:19:41 -07:00
COPYING Add COPYING 2014-01-22 21:23:36 +00:00
extension.json Suppress page translations and render only the default page(s) 2019-11-03 14:03:27 +01:00
Gruntfile.js Split apihelp messages to a separate file 2019-05-11 11:05:07 +03:00
package-lock.json build: Updating grunt-stylelint to 0.11.1 2019-10-21 01:33:42 +00:00
package.json build: Updating grunt-stylelint to 0.11.1 2019-10-21 01:33:42 +00:00
README Update mediawiki http to https links in CategoryTree extension 2018-10-29 14:44:57 +01:00

--------------------------------------------------------------------------
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>