Template:Region article/infobox: Difference between revisions

From Dive Atlas
Fix site count query
Make parent region link go to the region form if the parent region does not exist
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
|-
|-
! Parent Region
! Parent Region
| [[{{{parent_region}}}]]
| {{#formredlink:target={{{parent_region|}}}|form=Region}}
|-
|-
! Subregions
! Subregions
Line 11: Line 11:
|-
|-
! Dive sites in this region
! Dive sites in this region
|{{#ask:[[Part of::{{SUBJECTPAGENAME}}]] [[Category:Dive sites]]|format=count}}
|{{#ask:[[-Contains item::{{SUBJECTPAGENAME}}]] [[Category:Dive sites]]|format=count}}
|}
|}
</div>
</div>

Latest revision as of 01:59, 2 May 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.