Template:Region article/infobox: Difference between revisions
From Dive Atlas
(Use category query; this effectively selects recursive region membership) |
(hidden element is ignored by mediawiki, try aria and style) |
||
(20 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude>{{#template_params:parent_region (label=Parent Region;property=Part of)}}</noinclude><includeonly> | ||
{{#template_params:parent_region (label=Parent Region;property=Part of)}} | <div class="regioninfobox"> | ||
</noinclude> | {| class="wikitable" style="border:1px solid black; width:100%;" | ||
!colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span> | |||
< | |||
{| style=" | |||
! | |||
|- | |- | ||
! Parent Region | ! Parent Region | ||
Line 11: | Line 8: | ||
|- | |- | ||
! Subregions | ! Subregions | ||
|{{#ask:[[Part of::{{SUBJECTPAGENAME}}]] [[Category:Region]]|format= | |{{#ask:[[Part of::{{SUBJECTPAGENAME}}]] [[Category:Region]]|format=ul}} | ||
|- | |- | ||
! Dive sites in this region | ! Dive sites in this region | ||
|{{#ask:[[Category:{{SUBJECTPAGENAME}}]] [[Category:Dive sites]]|format=count}} | |{{#ask:[[Category:{{SUBJECTPAGENAME}}]] [[Category:Dive sites]]|format=count}} | ||
|} | |} | ||
</div> | |||
{{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::+]] | |||
|format=tree | |||
|parent=Part of | |||
|root={{FULLPAGENAME}} | |||
|link=none | |||
|template=InheritanceTreeFormat | |||
|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.