Difference between revisions of "Template:Infobox region"

From NSWiki
Jump to: navigation, search
Line 498: Line 498:
 
         <td>{{#ifexist:{{{gross_regional_product}}} people
 
         <td>{{#ifexist:{{{gross_regional_product}}} people
 
             | [[{{{gross_regional_product}}} people|{{{gross_regional_product}}}]]
 
             | [[{{{gross_regional_product}}} people|{{{gross_regional_product}}}]]
             | [[{{{gross_regional_product}}}]]<!--
+
             | {{{gross_regional_product}}}<!--
 
         -->}}<!--
 
         -->}}<!--
 
     --></td>
 
     --></td>
Line 594: Line 594:
 
  -->}}<!--
 
  -->}}<!--
 
============================================================
 
============================================================
   Currency
+
   Regional time zone
============================================================
+
-->{{#if:{{{currency|}}}
+
    | <tr>
+
        <th colspan="2" style="vertical-align:middle;">Currency</th>
+
          <td>{{{currency}}} {{#if:{{{currency_code|}}} |(<code>{{wp|ISO 4217|{{{currency_code}}}}}</code>)}}</td>
+
      </tr><!--
+
-->}}<!--
+
============================================================
+
  Time zone
+
 
============================================================
 
============================================================
 
  -->{{#if:{{{time_zone|}}}{{{utc_offset|}}}
 
  -->{{#if:{{{time_zone|}}}{{{utc_offset|}}}
Line 628: Line 619:
 
  -->}}<!--
 
  -->}}<!--
 
============================================================
 
============================================================
   Antipodes
+
   Regional page
============================================================
+
-->{{#if:{{{antipodes|}}}
+
    | <tr>
+
        <th colspan="2">[[Antipodes]]</th>
+
        <td>{{{antipodes}}}</td>
+
      </tr><!--
+
-->}}<!--
+
============================================================
+
  Date format
+
============================================================
+
-->{{#if:{{{date_format|}}}
+
    | <tr>
+
        <th colspan="2">Date format</th>
+
        <td>{{{date_format}}}</td>
+
      </tr><!--
+
-->}}<!--
+
============================================================
+
  Rule of the road
+
============================================================
+
-->{{#if:{{{drives_on|}}}
+
    | <tr>
+
        <th colspan="2">Drives on the</th>
+
        <td>{{lcfirst:{{{drives_on}}}}}</td>
+
      </tr><!--
+
-->}}<!--
+
============================================================
+
  Calling code
+
============================================================
+
-->{{#if:{{{calling_code|}}}
+
    | <tr>
+
        <th colspan="2"><!--
+
          -->{{#ifexist:Telephone numbers in {{{linking_name|{{{common_name|{{{name|{{PAGENAME}}}}}}}}}}}
+
              | [[Telephone numbers in {{{linking_name|{{{common_name|{{{name|{{PAGENAME}}}}}}}}}}}|Calling code]]
+
              | Calling code
+
              }}</th>
+
        <td>{{{calling_code}}}</td>
+
      </tr><!--
+
-->}}<!--
+
============================================================
+
  Patron saint/s
+
============================================================
+
-->{{#if:{{{patron_saint|{{{patron_saints|}}}}}}
+
    | <tr>
+
        <th colspan="2" >[[Patron saint]]{{#if:{{{patron_saints|}}}|s}}</th>
+
        <td>{{{patron_saint|{{{patron_saints}}}}}}</td>
+
      </tr><!--
+
-->}}<!--
+
============================================================
+
  ISO 3166 code
+
============================================================
+
-->{{#switch:{{{iso3166code|}}}
+
    |omit = <!--(do nothing)-->
+
    | = <!--if iso3166code is not supplied:
+
          -->{{#if:{{{common_name|}}}
+
              | {{#ifexist:Template:ISO 3166 code {{{common_name|}}}
+
                | <tr class="mergedtoprow">
+
                    <th colspan="2" style="white-space:nowrap;">{{wp|ISO 3166|ISO 3166 code}}</th>
+
                    <td>[[ISO 3166-2:{{ISO 3166 code {{{common_name}}}}}|{{ISO 3166 code {{{common_name}}}}}]]</td>
+
                  </tr>
+
                }}
+
            }}
+
    |#default = <tr>
+
                  <th colspan="2" style="white-space:nowrap;">[[ISO 3166|ISO 3166 code]]</th>
+
                  <td>[[ISO 3166-2:{{uc:{{{iso3166code}}}}}|{{uc:{{{iso3166code}}}}}]]</td>
+
                </tr>
+
    }}<!--
+
============================================================
+
  Internet TLD
+
============================================================
+
-->{{#if:{{{cctld|}}}
+
    | <tr>
+
        <th colspan="2">{{wp|Country code top-level domain|Internet TLD}}</th>
+
        <td>{{{cctld}}}</td>
+
      </tr><!--
+
-->}}<!--
+
============================================================
+
  Official website (geopolitical organization)
+
 
============================================================
 
============================================================
  -->{{#if:{{{official_website|}}}
+
  -->{{#if:{{{region_page|}}}
 
     | <tr>
 
     | <tr>
 
         <td colspan="3" style="text-align:center;line-height:11pt;"><!--
 
         <td colspan="3" style="text-align:center;line-height:11pt;"><!--
           -->'''Website'''<br/>{{{official_website}}}</td>
+
           -->'''Region page'''<br/>{{{region_page}}}</td>
 
       </tr><!--
 
       </tr><!--
 
  -->}}<!--
 
  -->}}<!--

Revision as of 10:40, 21 January 2014

{{#if: |
Government {{{government_type}}}
Documentation icon Template documentation[create]