User:Brian/infobox

{| class="infobox geography vcard" style="width: ; "
 * - class="adr"
 * colspan="2" align=center style="background: #D8E2EF; width:100%; font-size: 1.25em;" |  '

| none | Logo | Logo.png | Logo.svg	| Logo.png	| Logo.svg = | #default = }} | }} }}
 * align="center" style="width: 50%; background:#D8E2EF;" |Coat of arms
 * align="center" style="width: 50%; background:#D8E2EF;" |Location
 * align="center" style="width: 50%; vertical-align: middle; padding: 0.2em 0.2em 0.2em 0.2em;" | {{#if: {{{Logo|}}} | {{#switch: {{lc:{{{Logo}}}}}
 * align="center" style="width: 50%; vertical-align: middle; padding: 0.2em 0.2em 0.2em 0.2em;" | {{#if: {{{Logo|}}} | {{#switch: {{lc:{{{Logo}}}}}
 * align="center" style="width: 50%; vertical-align: middle; padding: 0.2em 0.2em 0.2em 0.2em;" | {{#if: {{{Logo|}}} | {{#switch: {{lc:{{{Logo}}}}}
 * align="center" style="width: 50%; vertical-align: top; padding: 0.2em 0.2em 0.2em 0.2em;" | {{#if: | [[Image:|100x120px|Map of New Zealand, Position of {{{Name|{{PAGENAME}}}}} highlighted]] |
 * - class="mergedtoprow"

! Country | "Northland" = Northland | "Auckland" = Auckland | "Waikato" = - Waikato | "Bay of Plenty" = Bay of Plenty | "East Cape" = - East Cape | "Hawke’s Bay" = - Hawke’s Bay | "Taranaki"= - Taranaki | "Manawatu-Wanganui" = - Manawatu-Wanganui | "Wellington" = - Wellington | "Tasman"= - Tasman | "Nelson" = Nelson | "Marlborough" = - Marlborough | "West Coast" = - West Coast | "Canterbury" = - Canterbury | "Otago" = - Otago | "Southland" = Southland
 * Time zone
 * NZST/NZDT (+12/+13)
 * colspan="2" align=center style="background:#D8E2EF;" | Administration
 * - class="mergedtoprow"
 * colspan="2" align=center style="background:#D8E2EF;" | Administration
 * - class="mergedtoprow"
 * New Zealand [[Image:Flag of New Zealand.svg|22px]]
 * - class="mergedrow"
 * Region || {{#if:{{{New Zealand| x }}}|{{#switch:"{{{region}}"

| #default ={{#ifexist:{{{region}}|{{{region}}|{{{region}}}} }}|''Enter Region}} {{#if: {{{Parliamentary General electorate| x }}} | {{!}}  General electorate  {{!!}} {{#ifexist: Parliamentary General electorate {{{Parliamentary General electorate}}} | {{{Parliamentary General electorate}}} | {{#ifexist: {{{Parliamentary General electorate}}} | {{{Parliamentary General electorate}}} | {{{Parliamentary General electorate}}} }} }} }} {{#if: {{{Parliamentary Maori electorate| x }}} | {{!}}  Maori Electorate {{!!}} {{#ifexist: Parliamentary Maori electorate {{{Parliamentary Maori electorate}}} | {{{Parliamentary Maori electorate}}} | {{#ifexist: {{{Parliamentary Maori electorate}}} | {{{Parliamentary Maori electorate}}} | {{{Parliamentary Maori electorate}}} }} }} }} {{#if: {{{Iwi| x }}} | {{!}} Iwi {{!!}} {{#ifexist: Iwi {{{Iwi}}} | {{{Iwi}}} | {{#ifexist: {{{Iwi}}} | {{{Iwi}}} | {{{Iwi}}} }} }} }} {{#if: |
 * - class="mergedrow"
 * - {{#if: {{{Mayor|}}} | class="mergedrow" | class="mergedbottomrow" }}
 * - {{#if: {{{Mayor|}}} | class="mergedrow" | class="mergedbottomrow" }}
 * - {{#if: {{{Mayor|}}} | class="mergedrow" | class="mergedbottomrow" }}
 * - {{#if: {{{Mayor| x }}} | class="mergedrow" | class="mergedbottomrow" }}

{{#if: {{{Mayor| x }}} | {{!}} '''{{#switch: "{{{Mayor}}}" | #default = {{#ifexist: {{{Mayor}}} | {{{Mayor}}} | {{#if: {{{Mayor|}}} | {{{Mayor}}} | Mayor }} }} }} }}''' {{!!}} {{#ifexist: {{{Mayor}}}|{{{Mayor}}}|{{{Mayor}}}}} {{#if: {{{Mayor | x }}} |({{Mayor|New Zealand|{{{Mayor}}}}})}} }} {{#if: {{{stats| x }}}{{{Population|}}}{{{Elevation|}}}{{{year|}}} }} {{#if: {{{stats| x }}} | {{!}} Area {{!!}} {{formatnum:{{{stats}}}}} km² ({{formatnum:{{#expr:0{{{Fläche|}}} div 2.589988110336 round 0}}}} sq mi) }} {{#if: {{{area_metro| x }}} | {{!}} - Metro {{!!}} {{formatnum:{{#expr:0{{{area_metro|}}} round 0}}}} km² ({{formatnum:{{#expr:0{{{area_metro|}}} div 2.589988110336 round 0}}}} sq mi) }} {{#if: {{{Elevation| x }}} | {{!}} - Elevation {{!!}} {{formatnum:{{{Elevation}}}}} m {{#ifexpr: 0{{{Elevation|}}} <0 | |  ({{#expr: 0{{{Elevation|}}} * 3.2808399 round 0}} ft)}} }} {{#if: {{{Population| x }}} | {{!}} Population {{!}} {{#if: {{{pop_ref|}}}| style="vertical-align:top"}} {{!}} {{formatnum:{{{Population}}}}} {{#if: {{{Stand|}}} | {{#switch: {{#time:n|{{{Stand}}}}} | 1|2|3|4|5|6|7|8|9|10|11|12 = ({{#time:d/m/Y|{{{Stand}}}}}) | #default = Please give "Stand" in YYYY-MM-DD format, e. g. 2005-12-31 }}}}{{#if: {{{pop_ref|}}}|{{{pop_ref|}}}}}{{#if: {{{pop_source|}}}|}} }} {{#if: {{{Population| x }}}{{{Population| x }}} | {{!}} - Density {{!!}} {{formatnum:{{#expr: 0{{{Population|}}} / {{{Area|1}}} round 0}}}} /km² ({{formatnum:{{#expr: 0{{{Population|}}} * 2.589988110336 div {{{Area|1}}} round 0}}}} /sq mi) }} {{#if: {{{pop_urban| x }}} | {{!}} - Urban area{{!}}Urban {{!!}} {{formatnum:{{{pop_urban}}}}} }} {{#if: {{{pop_metro| x }}} | {{!}} - Metro {{!!}} {{formatnum:{{{pop_metro}}}}} {{#if: {{{pop_metro_date|}}} | {{#switch: {{#time:n|{{{pop_metro_date}}}}} | 1|2|3|4|5|6|7|8|9|10|11|12 = ({{#time:m/Y|{{{pop_metro_date}}}}}) | #default = Please give "pop_metro_date" in YYYY-MM-DD format, e. g. 2005-12-31 }}}} }} {{#if: {{{year| x }}} | {{!}} Founded {{!!}} {{#ifexist:{{{year}}}|{{#ifeq:{{#expr:{{{year}}}<100}}|1|{{{year}}} AD|{{{year}}}}}|{{{year}}}}} }} {{#if: {{{Post| x }}}{{{phone|}}}{{{Kfz|}}}{{{Website|}}} | {{!}} colspan="2" align=center style="background:#D8E2EF;" {{!}} Other information }} {{#if: {{{Post| x }}} | {{!}} Postal code{{#ifeq: {{#expr:{{{Post}}}}} | {{{Post}}} | | s }} {{!!}} {{{Post}}} }} {{#if: {{{phone| x }}} | {{!}} Area code{{#ifeq: {{#expr:{{{ phone }}}}} | {{{phone}}} | | s }} {{!!}} {{{phone}}} }} {{#if: {{{Website| x }}} | {{!}} Website {{!!}} {{{Website}}} }} {{#ifexist:{{{year}}}|}}}}
 * {{!}} colspan="2" align=center style="background:#D8E2EF;" {{!}} Basic statistics
 * - {{#if: {{{area_metro| x }}}{{{Elevation| x }}} | class="mergedtoprow"}}
 * - {{#if: {{{Elevation| x }}} | class="mergedrow" | class="mergedbottomrow"}}
 * - {{#if: {{{stats| x }}}{{{Elevation| x }}}| class="mergedrow" }}
 * - class="mergedrow" {{#time:m-Y|2007-04-25}}
 * - class="mergedrow"
 * - class="mergedrow"
 * - class="mergedrow"
 * - class="mergedbottomrow" |
 * - class="mergedtoprow" |
 * - class="mergedrow" |
 * - class="mergedbottomrow" |