Revision as of 14:53, 23 November 2022 by MLR (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

FilterableTables applies a filterable and sortable table layout to regular content tables in wiki articles.

Setting the filter option

Visual editing

To apply a filterable table style to your table:

  1. Click once in the table. This opens the table inspector.
  2. Click Properties in the inspector.
    Selecting table properties
  3. Activate the slider for the setting filterable.
    Setting the filter option
    Setting the filter option
  4. Click done.
  5. Save the page. After saving the page, you will see a filterable table layout.
Note:Any global table styles that are applied in the table properties are ignored as long as the value "filterable" is active. A filterable table comes with its own table styling.

Source editing

In source-editing mode, add the class "filterable" to the table opening line:

{| class="wikitable filterable"
!Heading 1
Adding the "filterable" class in wikitext
Adding the "filterable" class in wikitext

Filtering table columns

The special filter layout of a table is only applied in view mode.

To filter the values in the table, click on the header of the column to filter and select "Filter" from the dropdown menu. In the input field that opens, type in the filter text.

Applying a table filter
Applying a table filter