Template:Region article/infobox: Difference between revisions

From Dive Atlas
(Ooops)
Tags: Manual revert Reverted
m (Reverted edits by Poseidon (talk) to last revision by 136.47.143.19)
Tags: Rollback Reverted
Line 1: Line 1:
<noinclude>{{#template_params:parent_region (label=Parent Region;property=Part of)}}</noinclude><includeonly>
<noinclude>
{{#template_params:parent_region (label=Parent Region;property=Part of)}}
</noinclude>
 
<includeonly>
<div class="regioninfobox">
<div class="regioninfobox">
{| class="wikitable" style="border:1px solid black; width:100%;"
{| class="wikitable" style="border:1px solid black; width:100%;"
Line 8: Line 12:
|-
|-
! Subregions
! Subregions
|{{#ask:[[Part of::{{SUBJECTPAGENAME}}]] [[Category:Region]]|format=ul}}
|{{#ask:[[Part of::{{SUBJECTPAGENAME}}]] [[Category:Region]]|format=tree|parent=Part of}}
|-
|-
! Dive sites in this region
! Dive sites in this region
Line 14: Line 18:
|}
|}
</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}}}}}
{{#set:
[[Category:Region]]
|Contains item={{FULLPAGENAME}}
|Contains item={{#ask: [[-Contains item::<q>[[Part of::{{FULLPAGENAME}}]]</q>]]|format=plainlist|link=none}}|+sep=,
}}
</div>
</includeonly>
</includeonly>

Revision as of 22:47, 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.