Template:Region article/infobox: Difference between revisions

From Dive Atlas
Add tree parent
Add count of all dive sites
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:region (label=Parent Region;property=Part of)}}
{{#template_params:parent_region (label=Parent Region;property=Part of)}}
</noinclude><includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
</noinclude><includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
|-
|-
! Parent Region
! Parent Region
| [[Part of::{{{region|}}}]]
| [[Part of::{{{parent_region|}}}]]
|-
|-
! Subregions
! Subregions
|{{#ask:[[Part of::{{SUBJECTPAGENAME}}]]|format=tree|parent=Part of}}
|{{#ask:[[Part of::{{SUBJECTPAGENAME}}]]|format=tree|parent=Part of}}
|
! Dive sites in this region
|{{#ask:[[Part of::{{SUBJECTPAGENAME}}]] [[Category:Dive site]]|format=count}}
|}
|}


[[Category:Region]]
[[Category:Region]]
</includeonly>
</includeonly>