Template:SDC statement exist

Template documentation[view · edit · history · purge]
This documentation is transcluded from Template:SDC statement exist/doc.
Category:Main message boxesCategory:Lua-based templates

Template for adding tracking categories based on SDC statements. It should by used by other templates to verify if expected SDC statement exist or not

Usage


{{SDC_statement_exist
 |property          =
 |positive_category =
 |negative_category =
}}

Heavily used templates should use {{#invoke:SDC_tracking|SDC_statement_exist|...}} instead of {{SDC statement exist|...}}, with the same parameters, in order to reduce load on the database (example edit).

Template parameters

ParameterDescriptionDefaultStatus
propertyproperty ID to be tested: "P7482" for source of file (P7482), or "P170" for creator (P170)emptyrequired
positive_categorycategory name to add if SDC statement existemptyoptional
negative_categorycategory name to add if SDC statement does not existemptyoptional

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

See also

Category:Templates using an unknown approach for internationalisation Category:Structured Data on Commons templates
Category:Lua-based templates Category:Main message boxes Category:Structured Data on Commons templates Category:Templates using an unknown approach for internationalisation