Template:InheritanceTreeFormat

From Dive Atlas


This template is part of a technique whereby individual pages keep track of their hierarchical children. It's a little convoluted but it allows us to use SMW to query all children of a given page, recursively, without resorting to using categories (like [[https://en.wikivoyage.org/wiki/Wikivoyage:Region_categories|Wikivoyage.]]) The idea is that on each page you include a query to produce a tree, which is implemented by in the tree result format, and then hijack the printing of that tree so that the printout is a property setter. This template is what used to print each tree item. https://www.semantic-mediawiki.org/wiki/Help:Inheritance_in_hierarchies#The_tricky_part.2C_option_2:_using_the_.27tree.27_format

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
No parameters specified