Template:Property cat
Jump to navigation
Jump to search
Template documentation (for the template shown above, sometimes hidden or invisible)
- Property cataloging (experimental)
- Currently not working anymore. Unclassified cases can't be forced to there target category anymore. Find fix, and/or alternative simpler solution.
Contains 3 different jobs related to the namespace of the calling-source page.
Job 1) Called from a non Property or Category page.
- Used to setup Property pages with particular Category pages. (done in the page Property)
- Target categories are limited and locked to the "Category:Properties/..." branch.
- Parent category is auto-picked based on the target category name.
- E.g. "(Category:Properties/)foo/bar" will use "(Category:Properties/)foo" as its parent category.
- Data is saved as sub-objects in the properties "prop_name" and "prop_cat".
- Template expects all related pages, including parent cat-page, to exist to be saved.
- For Categories this means they need to be registered in the Category exists property. (see job 3)
- (Not sure yet if something similar might also be needed for Properties pages)
Usage:
{{property_cat|1=Bare property Name|2=Bare category name|3=Optional Cat-sort key}}
- The "1=" and "2=" parts are currently needed due to a unresolved code issue.
- The Property name should be without the leading "Property:" namespace part.
- The Category name should be without the leading "Category:Properties/" part.
- All names should be fully in lowercase. (easier that way)
- If no Category is given it will default to using "unclassified".
- For linking multiple Categories to a given Property use multiple calls for the same Property.
Job 2) Called from a Property-page. (No additional parameters)
- Adds target categories to the current Property page.
{{property_cat}}
Job 3) Called from a Category-page. (No additional parameters)
- Registers the current Category in the Category exists property.
- And links the current category up with its parent-category. (if applicable)
{{property_cat}}
Visit Template:Property cat/doc to edit this text! (How does this work?)