Template:InheritanceTreeFormat: Difference between revisions

From Dive Atlas
(Create InheritanceTreeFormat template)
 
(Add description)
Line 1: Line 1:
[[{{{1|}}}]]{{#set: Contains item={{{1|}}} }}
[[{{{1|}}}]]{{#set: Contains item={{{1|}}} }}
<noinclude>
<templatedata>
{
"params": {},
"description": "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.]])\n\nThe 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.\n\nhttps://www.semantic-mediawiki.org/wiki/Help:Inheritance_in_hierarchies#The_tricky_part.2C_option_2:_using_the_.27tree.27_format"
}
</templatedata>
</noinclude>

Revision as of 21:46, 5 January 2025

[[]]

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