Template:Region article/infobox: Difference between revisions

From Dive Atlas
(Add query hack to set properties on each region pointing to all members of the region)
Tag: Reverted
(hidden element is ignored by mediawiki, try aria and style)
 
(15 intermediate revisions by the same user not shown)
Line 8: Line 8:
|-
|-
! Subregions
! Subregions
|{{#ask:[[Part of::{{SUBJECTPAGENAME}}]] [[Category:Region]]|format=tree|parent=Part of}}
|{{#ask:[[Part of::{{SUBJECTPAGENAME}}]] [[Category:Region]]|format=ul}}
|-
|-
! Dive sites in this region
! Dive sites in this region
Line 16: Line 16:
{{IsPartOf|{{{parent_region}}}}}
{{IsPartOf|{{{parent_region}}}}}
[[Category:Region]]
[[Category:Region]]
<div id="contains-item-hack" aria-hidden="true" style="display: none">
<!-- This hacky query has the effect of setting the property "Contains item" on every item in the "part of" hierarchy below this page -->
{{#ask: [[Part of::+]]
{{#ask: [[Part of::+]]
|format=tree
|format=tree
|parent=Member of
|parent=Part of
|root={{FULLPAGENAME}}
|root={{FULLPAGENAME}}
|link=none
|link=none
Line 24: Line 26:
|limit=5000
|limit=5000
}}
}}
</div>
</includeonly>
</includeonly>

Latest revision as of 23:05, 5 January 2025

This is the "Region article/infobox" template.

It should be called in the following format:

{{Region article/infobox
|parent_region=
}}

Edit the page to see the template text.