Meryam Sahin (talk | contribs) Wrapper template for metadata content droplet |
Meryam Sahin (talk | contribs) Support true/false values and add a space after the default separator |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#neowiki_query:{"properties":{},"conditions":[{{#if:{{{property|}}}|{"property":"{{{property}}}","operator":"{{{operator|=}}}","value":"{{{value|}}}"}|}}],"pageDisplayFormat":"{{{display|subpage}}}","showPageLink":false,"limit":{{{limit|50}}},"hasSubjects":["{{{schema|}}}"]}|format={{{format|count}}}|separator={{{separator|, }}}}}</includeonly><noinclude> | <includeonly>{{#if:{{{schema|}}}|{{#neowiki_query:{"properties":{},"conditions":[{{#if:{{{property|}}}|{"property":"{{{property}}}","operator":"{{{operator|=}}}","value":{{#switch:{{{value|}}}|true|false={{{value}}}|#default="{{{value|}}}"}}}|}}],"pageDisplayFormat":"{{{display|subpage}}}","showPageLink":false,"limit":{{{limit|50}}},"hasSubjects":["{{{schema|}}}"]}|format={{{format|count}}}|separator={{{separator|, }}}}}|<span class="metadata-droplet-hint" style="color:#72777d">''Metadata query: open the droplet and fill in the parameters.''</span>}}</includeonly><noinclude> | ||
Counts or lists pages based on page metadata. Used by the "Metadata query" content droplet. | Counts or lists pages based on page metadata. Used by the "Metadata query" content droplet. | ||
Latest revision as of 13:42, 4 November 2026
Counts or lists pages based on page metadata. Used by the "Metadata query" content droplet.
Counts or lists pages based on page metadata.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Schema | schema | Only pages that have metadata of this schema. Example: ISO 27001 Control | String | required |
| Filter property | property | Optional. Schema and property, separated by a dot. Example: ISO 27001 Control.Implementation status | String | optional |
| Operator | operator | = , != , > , >= , < , <= , ~ (contains) or ^ (starts with). Default: =
| String | optional |
| Value | value | Value to compare with. For select properties use the label, for example implemented. | String | optional |
| Format | format | count or list. Default: count
| String | optional |
| Separator | separator | Only for list. Default: comma. Use <br> for one page per line. | String | optional |
| Page name display | display | Only for list. subpage (default), text or prefixed.
| String | optional |
| Limit | limit | Maximum number of pages. Default: 50
| Number | optional |