Template:Region article/infobox: Difference between revisions

From Dive Atlas
(Try option 1)
Tag: Reverted
(hidden element is ignored by mediawiki, try aria and style)
 
(7 intermediate revisions by the same user not shown)
Line 14: Line 14:
|}
|}
</div>
</div>
<div id="contains-item-hack" hidden="hidden">
<!-- This hacky query has the effect of setting the property "Contains item" on every item in the "part of" hierarchy below this page -->
{{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
Line 25: Line 25:
|template=InheritanceTreeFormat
|template=InheritanceTreeFormat
|limit=5000
|limit=5000
}}
{{#set:
|Contains item={{FULLPAGENAME}}
|Contains item={{#ask: [[-Contains item::<q>[[Part of::{{FULLPAGENAME}}]]</q>]]|format=plainlist|link=none}}|+sep=,
}}
}}
</div>
</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.