Created page with "{{BSExtensionInfo |removed=No |status=stable |developer=HalloWelt |type=BlueSpice |edition=BlueSpice pro, BlueSpice farm, BlueSpice cloud |compatible=BlueSpice |category=Rich Articles |docu=https://www.mediawiki.org/wiki/Extension:ContainerFilter |features=The extension '''ContainerFilter''' adds a <code><nowiki><containerfilter /></nowiki></code> tag to a page. It allows to filter page content based on its CSS-class. By default, the class <code>.wikitable tr</code> is u..." |
No edit summary |
||
| Line 15: | Line 15: | ||
<containerfilter /> | <containerfilter /> | ||
{ | {| class="wikitable" | ||
!Product | !Product | ||
!Sales | !Sales | ||
|- | |||
|Carretera | |||
|$529.550,00 | |||
|- | |||
|Montana | |||
|$13.815,00 | |||
|- | |||
|Montana | |||
|$15.022,00 | |||
|- | |||
|Montana | |||
|$43.125,00 | |||
|- | |||
|Montana | |||
|$9.225,00 | |||
|- | |||
|Paseo | |||
|$5.840,00 | |||
|} | |||
</syntaxhighlight> | </syntaxhighlight> | ||
'''Output:''' | '''Output:''' | ||
<containerfilter /> | <containerfilter /> | ||
{ | {| class="wikitable" | ||
!Product | !Product | ||
!Sales | !Sales | ||
|- | |||
|Carretera | |||
|$529.550,00 | |||
|- | |||
|Montana | |||
|$13.815,00 | |||
|- | |||
|Montana | |||
|$15.022,00 | |||
|- | |||
|Montana | |||
|$43.125,00 | |||
|- | |||
|Montana | |||
|$9.225,00 | |||
|- | |||
|Paseo | |||
|$5.840,00 | |||
|} | |||
=== Example: Table filter for a table with custom table class === | === Example: Table filter for a table with custom table class === | ||
| Line 70: | Line 70: | ||
<containerfilter selector=".contenttable tr:not(:has(th))"/> | <containerfilter selector=".contenttable tr:not(:has(th))"/> | ||
{ | {| class="contenttable" | ||
!Product | !Product | ||
!Sales | !Sales | ||
|- | |||
|Carretera | |||
|$529.550,00 | |||
|- | |||
|Montana | |||
|$13.815,00 | |||
|- | |||
|Montana | |||
|$15.022,00 | |||
|- | |||
|Montana | |||
|$43.125,00 | |||
|- | |||
|Montana | |||
|$9.225,00 | |||
|- | |||
|Paseo | |||
|$5.840,00 | |||
|} | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 98: | Line 98: | ||
{ | {| class="contenttable" | ||
!Product | !Product | ||
!Sales | !Sales | ||
|- | |||
|Carretera | |||
|$529.550,00 | |||
|- | |||
|Montana | |||
|$13.815,00 | |||
|- | |||
|Montana | |||
|$15.022,00 | |||
|- | |||
|Montana | |||
|$43.125,00 | |||
|- | |||
|Montana | |||
|$9.225,00 | |||
|- | |||
|Paseo | |||
|$5.840,00 | |||
|} | |||
=== Example: List filter === | === Example: List filter === | ||
Revision as of 15:53, 15 October 2026
| Overview | |||
|---|---|---|---|
| Description: |
Allows to filter content elements within a page | ||
| State: | stable | Dependency: | BlueSpice |
| Developer: | HalloWelt | License: | GPL-3.0-only |
| Type: | BlueSpice | Category: | Rich Articles |
| Edition: | Sky, Sapphire | Version: | 1.1+ |
| For more info, visit Mediawiki. | |||
Features
The extension ContainerFilter adds a <containerfilter /> tag to a page. It allows to filter page content based on its CSS-class. By default, the class .wikitable tr is used to filter content. This allows to quickly filter a standard MediaWiki table.
Example: MediaWiki table filter
<containerfilter />
{| class="wikitable"
!Product
!Sales
|-
|Carretera
|$529.550,00
|-
|Montana
|$13.815,00
|-
|Montana
|$15.022,00
|-
|Montana
|$43.125,00
|-
|Montana
|$9.225,00
|-
|Paseo
|$5.840,00
|}
Output:
{
Technical Information
Technical details for BlueSpice cloud can differ in some cases.
Requirements
- MediaWiki: 1.43.0
Integrates into
- ContentDroplets
- VisualEditor
Special pages
Hooks
Composer requirements
-
Notifications
-