Template:InheritanceTreeFormat: Difference between revisions
From Dive Atlas
(Don't print the name) Tag: Reverted |
(Don't link to the page; can inadvertently cause a page "A" to join categories that are "Part of::A") |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#set: Contains item={{{1|}}} }}</includeonly> | <includeonly>{{{1|}}}{{#set: Contains item={{{1|}}} }}</includeonly> | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> |
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 |