Difference between revisions of "Template:Region"
m (typo Its not It's) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <noinclude><pre> | ||
+ | {{Region | ||
+ | | name = | ||
+ | | capital = | ||
+ | | map = | ||
+ | }} | ||
+ | </pre></noinclude> | ||
+ | {{#ifeq:{{#this:depth}}|1| | ||
+ | <table class="infobox"> | ||
+ | {{Contact | ||
+ | | name = {{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{FULLPAGENAME}}}}}}} | ||
+ | | street = {{{street|{{{street address|}}}}}} | ||
+ | | town = {{{capital|}}} | ||
+ | | website = {{{website|}}} | ||
+ | | email = {{{email|}}} | ||
+ | | telephone = {{{telephone|}}} | ||
+ | | fax = {{{fax|}}} | ||
+ | | save = TRUE | ||
+ | }} | ||
+ | {{#if:{{{capital|}}} | ||
+ | | {{infoboxRow | ||
+ | | label = Capital | ||
+ | | name = Capital | ||
+ | | value = {{{capital}}} | ||
+ | | type = link | ||
+ | }} | ||
+ | {{infoboxRow | ||
+ | | label = Region | ||
+ | | name = Region | ||
+ | | value = {{{region|{{#custom:sub|{{{capital|}}}|0|4}}}}} | ||
+ | | type = text | ||
+ | }} | ||
+ | }} | ||
+ | {{infoboxRow | ||
+ | | name = Map | ||
+ | | value = {{{map|}}} | ||
+ | | type = embed | ||
+ | }} | ||
+ | </table> | ||
+ | }} | ||
{{RegionBar}} | {{RegionBar}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
{{region queries}} | {{region queries}} |