Template:Property group
{{Property group}}
A property group is a category which contains Semantic Mediawiki properties. Property groups can contain related properties, and when inspecting the properties of a page, properties from the same property group will be displayed together.
This template assists with documenting property groups. It can be used both on a property group's page (in the Category namespace) and on individual property pages (in the Property namespace). It handles categorization and setup of property groups, and displays a list of all properties in the group for ease of navigation.
Usage
To create a property group, create a category page and use this template on the page without passing anything, alongside your description of the group. For example, a page named "Category:Food properties" might contain:
{{property group}}
This category contains properties that are commonly set on foods.
Then, to add properties to the property group, use this template again, and pass the name of the target group. For example, a property "Property:Has calories" might contain:
{{property group|Fruit properties}}
This [[Has type::Number]] property records how many calories are in a food.
Parameters
- unnamed parameter 1
- Should not be provided in the Category namespace, but required in the Property namespace and elsewhere. The name of the target property group, with or without "Category:" namespace prefix.
- parent
- Optional. Only valid in the Category namespace. By default, property groups are made subcategories of Category:Properties, but you can use this parameter to override the parent category.
Examples
| Markup | Renders as | ||
|---|---|---|---|
{{property group|Wiki task properties}}
|
|