Template:Property description/doc: Difference between revisions
From PC Gaming Shelter
Created page with " <templatedata> { "params": { "1": { "label": "Property name", "description": "The name of the semantic property", "example": "Has tag", "type": "string", "required": true } }, "description": "A helper template that retrieves the property description and delivers it to the context." } </templatedata> == Example == <pre> {{property description|Has tag}} </pre> ;Result {{property description|Has tag}} Please note that we expect the property to have a..." |
No edit summary |
||
| Line 11: | Line 11: | ||
} | } | ||
}, | }, | ||
"description": "A helper template that retrieves the property description and delivers it to the context." | "description": "A helper template that retrieves the property description and delivers it to the context as a popup." | ||
} | } | ||
</templatedata> | </templatedata> | ||
Latest revision as of 09:54, 26 March 2026
A helper template that retrieves the property description and delivers it to the context as a popup.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Property name | 1 | The name of the semantic property
| String | required |
Example
{{property description|Has tag}}
- Result
An arbitrary label for content differentiation. (en)
Please note that we expect the property to have a special annotation:
[[Has property description::Description that we want to retrieve.@en]]
Has property description is a built-in property of SemanticMediaWiki, that supports multilinguality (mind the language code after @).
It is good practice to add descriptions to Property pages, as this helps both editors and readers understand their meanings consistently.
