Changes

Jump to navigation Jump to search
no edit summary
{{Lua|Module:SDC tracking}}
{{TemplateBox
|1 =property
|1label-en=property ID
|1d-en =Property ID to be tested: "P7482" for {{P|P7482}}, or "P170" for {{P|P170}}
|1d-td-en =Property ID to be tested, like "P7482" or "P170"
|1aliases =
|1type =line
|1def =<!-- default value for the parameter -->
|1stat =required

|2 = value
|2label-en= value
|2d-en = Value which should be used in the statement using "property", can a Wikidata item ID or a string
|2aliases =
|2type = string
|2def =
|2stat = required

|3 = matching_category
|3label-en= matching category
|3d-en = Category name (without "Category:" prefix) to add if an SDC statement with "property" exists and any of its values matches "value"
|3aliases =
|3type = wiki-page-name
|3def =
|3stat = optional

|4 = mismatching_category
|4label-en= mismatching category
|4d-en = Category name (without "Category:" prefix) to add if an SDC statement with "property" exists and none of its values match "value"
|4aliases =
|4type = wiki-page-name
|4def =
|4stat = optional

|5 = missing_category
|5label-en= missing category
|5d-en = Category name (without "Category:" prefix) to add if no SDC statement using "property" exists
|5aliases =
|5type = wiki-page-name
|5def =
|5stat = optional

|name = SDC_statement_has_value
|desc-en = Template for adding tracking categories based on [[COM:SDC|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.
|desc-td-en = Template for adding tracking categories based on Structured data for Commons (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.
|namespace = template
|usergroup =
|placement =
|example-value =
|mustbesubst =
|relieson = [[Module:SDC tracking]]
|usage-notes =
|shorthand =
|setscats =
|seealso = {{tl|SDC statement exist}}
|type =
|i18n-desc =
|i18n-subpage =
|i18n-mediawiki-msg =
|i18n-method =
|example =
|print = infobox
|useTemplateData = 1
}}<includeonly>
[[Category:Structured Data on Commons templates]]
</includeonly>
Anonymous user

Navigation menu