Difference between revisions of "Template:Infobox former country"

From NSWiki
Jump to: navigation, search
Line 686: Line 686:
 
   </tr><!--
 
   </tr><!--
 
-->}}<!--
 
-->}}<!--
 +
============================================================
 +
  Time zone
 +
============================================================
 +
-->{{#if:{{{time_zone|}}}{{{utc_offset|}}}
 +
    | <tr {{#if:{{{utc_offset_DST|}}}{{{DST_note|}}} |class="mergedtoprow"}}>
 +
        <th colspan="2">Time zone</th>
 +
        <td>{{{time_zone|}}} <!--
 +
              -->{{#if:{{{utc_offset|}}}
 +
                  |{{nowrap|({{wp|Coordinated Universal Time|UTC}}{{{utc_offset}}})}}<!--
 +
              -->}}</td>
 +
      </tr><!--
 +
    -->{{#if:{{{time_zone_DST|}}}{{{utc_offset_DST|}}}
 +
        | <tr class="{{#if:{{{DST_note|}}} |mergedrow |mergedbottomrow}}">
 +
            <td style="width:1.0em;padding:0 0 0 0.6em;">&nbsp;-&nbsp;</td>
 +
            <td style="padding-left:0;">Summer&nbsp;({{wp|Daylight saving time|DST}})</td>
 +
            <td>{{{DST|{{{time_zone_DST|}}}}}}&nbsp;({{wp|Coordinated Universal Time|UTC}}{{{utc_offset_DST}}})</td>
 +
          </tr><!--
 +
    -->}}<!--
 +
-->}}<!--
 +
-->{{#if:{{{DST_note|}}}
 +
    | <tr class="mergedbottomrow">
 +
          <td colspan="2"></td>
 +
          <td>{{{DST_note}}}</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><!--
 +
-->}}<!--
 
================================================================
 
================================================================
 
   Footnotes
 
   Footnotes

Revision as of 23:06, 2 January 2016