Extension:ContainerFilter

Category:Extensions without an imageCategory:Extensions with invalid or missing typeCategory:GPL licensed extensions
MediaWiki extensions manual
ContainerFilter
Release status: stableCategory:Stable extensions
Description Allows to filter content elements within a page
Author(s) Hallo Welt! GmbH
Latest version 3.0.0-alpha
Compatibility policy For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.Category:Extensions with long-term support release branches compatibility policy
MediaWiki 1.39+Category:Extensions with manual MediaWiki version
License GNU General Public License 3.0 only
Download Category:Extensions in Wikimedia version control
Quarterly downloads 10 (Ranked 104th)
Translate the ContainerFilter extension if it is available at translatewiki.net
Category:All extensions

You can now mark sections of a page for filtering and display a filter just for the content located within these sections of the page.

Installation

  • Download and move the extracted ContainerFilter folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ContainerFilter
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'ContainerFilter' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage

For use with a table, you must use class=wikitable. Other class definitions are possible:

<containerfilter />
{| class="wikitable sortable"
 ! Item      !! Type 
 |-
 | Apple     || Fruit
 |-
 | Potato    || Vegetable
 |-
 | Pear      || Fruit 
 |-
 | Pumpkin   || Vegetable
 |-
 | Raspberry || Fruit
 |-
 | Spinach   || Vegetable 
 |}

With Semantic MediaWiki

When using Semantic MediaWiki, you can use ContainerFilter with the following syntax:

{{#ask: [[Category:Cities]]
 |format=ul
 |class=filterexample
 |intro=<containerfilter selector=".filterexample li">
 |outro=</containerfilter>
}}


Category:Extensions by HalloWelt
Category:All extensions Category:Extensions by HalloWelt Category:Extensions in Wikimedia version control Category:Extensions included in BlueSpice Category:Extensions with invalid or missing type Category:Extensions with long-term support release branches compatibility policy Category:Extensions with manual MediaWiki version Category:Extensions without an image Category:GPL licensed extensions Category:ParserFirstCallInit extensions Category:Stable extensions