Template:InheritanceTreeFormat: Difference between revisions
From Dive Atlas
(Create InheritanceTreeFormat template) |
(Don't link to the page; can inadvertently cause a page "A" to join categories that are "Part of::A") |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{{1|}}}{{#set: Contains item={{{1|}}} }}</includeonly> | |||
<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> |
Latest revision as of 03:09, 6 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
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |