Template:Infobox country: Difference between revisions

From Pantonian Republic Wiki
Jump to navigation Jump to search
No edit summary
m (looks better now)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{infobox
{{Infobox
|templatestyles = Template:Infobox country/styles.css
| bodystyle =
| bodyclass = ib-country vcard
float: right;
| aboveclass = adr
clear: right;
margin: 0 0 1em 1em;
width: 300px;
background-color: #f5f5f5;
border: 1px solid #cecece;
font-size: 88%;
padding: 0;
border-spacing: 0;
border-collapse: collapse; <!-- for hidden border -->
| abovestyle =
font-size: 125%;
line-height: 1.2;
font-weight: bold;
text-align: center;
padding-top: 0.5em;
padding-bottom: {{#if: {{{name|}}}| 0.25em | 0.6em }};
 
| subheaderstyle =
padding-bottom: 0.5em;
font-weight: normal;
font-size: 125%;
line-height: 1.2;
text-align: center;
 
| imagestyle =
text-align: center;
padding-top: 0.6em;
border-top: 1px solid #a2a9b1;
 
| headerstyle =
text-align: left;
padding: 0.4em 1em 0 1em;
border-top: 1px solid #a2a9b1;
 
| labelstyle =  
vertical-align: top;
border-top: 1px solid #a2a9b1;
padding: 0.4em 0.6em 0.2em 1em;
text-align: left;
width: 80px;
 
| datastyle =  
vertical-align: top;
border-top: 1px solid #a2a9b1;
padding: 0.4em 1em 0.2em 0.6em;
text-align: left;
 
| rowstyle3 =
border-top: hidden;
| above =  
| above =  
{{#if:{{{conventional_long_name|}}}{{{native_name|}}}{{{name|}}}
{{#if:{{{conventional_long_name|}}}{{{native_name|}}}{{{name|}}}
Line 550: Line 599:
| data126= {{{calling_code|}}}
| data126= {{{calling_code|}}}


| label127= [[ISO 3166|ISO 3166 code]]
| data127= {{#switch:{{{iso3166code|}}}
    |omit = <!--(do nothing)-->
    | = <!--if iso3166code is not supplied:
          -->{{#if:{{{common_name|}}}
              | {{#if:{{ISO 3166 code|{{{common_name}}}|nocat=true}}
                | [[ISO 3166-2:{{ISO 3166 code|{{{common_name}}}}}|{{ISO 3166 code|{{{common_name}}}}}]]
                }}
            }}
    |#default = [[ISO 3166-2:{{uc:{{{iso3166code}}}}}|{{uc:{{{iso3166code}}}}}]]
    }}


| label128= [[Country code top-level domain|Internet TLD]]
| label128= [[Country code top-level domain|Internet TLD]]

Latest revision as of 12:38, 19 May 2023