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: | {{#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::{{{ | | [[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> |
Revision as of 18:15, 3 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.