Template:SDC statement has value/doc
30px | This template uses Lua: |
![]() | This is a documentation subpage for . It contains usage information, categories and other content that is not part of the original template page. |
Template for adding tracking categories based on SDC statements. It tests if SDC "property" is used in a statement and if the value matches "value"; if so then "matching_category" is added, if a different value is used then "mismatching_category" is added, and if the statement does not exist than "missing_category" is added. It should by used by other templates to verify if the expected SDC statement exists.
Usage
{{SDC_statement_has_value
|property =
|value =
|matching_category =
|mismatching_category =
|missing_category =
}}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
property | property ID | Property ID to be tested: "P7482" for Template:P, or "P170" for Template:P | empty | required |
value | value | Value which should be used in the statement using "property", can a Wikidata item ID or a string | empty | required |
matching_category | matching category | Category name (without "Category:" prefix) to add if an SDC statement with "property" exists and any of its values matches "value" | empty | optional |
mismatching_category | mismatching category | Category name (without "Category:" prefix) to add if an SDC statement with "property" exists and none of its values match "value" | empty | optional |
missing_category | missing category | Category name (without "Category:" prefix) to add if no SDC statement using "property" exists | empty | optional |
Additional information
The template is intended to be used in the following namespaces: the Template namespace
The template is intended to be used by the following user groups: no user group specified
Relies on:
Module:SDC tracking
⧼Seealso⧽