Template:Infobox country: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>David Kernow
m ...flag width 60%, +padding 6% for coat-of-arms/symbol (and its caption)
meta>David Kernow
m rv again; even the previous slight padding misaligns the display outside IE. Will try to think of something other than a workaround "IE_width_fix" parameter.
Line 38: Line 38:
       <td colspan="3" class="maptable">
       <td colspan="3" class="maptable">
         <!----------Start subtable:----------->
         <!----------Start subtable:----------->
         <table align="center" style="width:100%; background:none; text-align:center;">
         <table align="center" style="background:none; text-align:center;">
             <!-------Images:------->
             <!-------Images:------->
             <tr> <td style="{{#if:{{{image_coat|}}} |<!--then:-->width:60%;}}<!--(60% width for flag as these usually wider than coats-of-arms/symbols)--> vertical-align:middle;">   
             <tr> <td style="{{#if:{{{image_coat|}}} |<!--then:-->width:62%;}} vertical-align:middle;">   
             {{#if:{{{text_flag|}}}
             {{#if:{{{text_flag|}}}
             |<!--then:-->{{{text_flag}}}<!--used for N. Ireland-->
             |<!--then:-->{{{text_flag}}}<!--used for N. Ireland-->
             |<!--else:-->{{border|[[Image:{{{image_flag}}}|125px|Flag of {{{common_name|{{PAGENAME}}}}}]]<!--end border:-->}} }}</td>
             |<!--else:-->{{border|[[Image:{{{image_flag}}}|125px|Flag of {{{common_name|{{PAGENAME}}}}}]]<!--end border:-->}} }}</td>
                 {{#if:{{{image_coat|}}}
                 {{#if:{{{image_coat|}}}
                 |<!--then:--><td style="vertical-align:middle; <!--IE display fix:-->padding-right:6%;"> [[Image:{{{image_coat}}}|85px|{{{symbol_type|Coat of arms}}} of {{{common_name|{{PAGENAME}}}}}]]</td>}}
                 |<!--then:--><td style="vertical-align:middle;"> [[Image:{{{image_coat}}}|85px|{{{symbol_type|Coat of arms}}} of {{{common_name|{{PAGENAME}}}}}]]</td>}}
             </tr>
             </tr>
             <!-------Links:------->
             <!-------Links:------->
             <tr> <td><small>[[Flag of {{{common_name|{{PAGENAME}}}}}|{{{flag_caption|Flag}}}]]</small></td>
             <tr> <td><small>[[Flag of {{{common_name|{{PAGENAME}}}}}|{{{flag_caption|Flag}}}]]</small></td>
                 {{#if:{{{image_coat|}}}
                 {{#if:{{{image_coat|}}}
                 |<!--then:--><td <!--IE display fix:-->style="padding-right:6%;"><small>[[{{{symbol_type_article|{{{symbol_type|Coat of arms}}}}}} of {{{common_name|{{PAGENAME}}}}}|{{{symbol_type|Coat of arms}}}]]</small></td>}}
                 |<!--then:--><td><small>[[{{{symbol_type_article|{{{symbol_type|Coat of arms}}}}}} of {{{common_name|{{PAGENAME}}}}}|{{{symbol_type|Coat of arms}}}]]</small></td>}}
             </tr>
             </tr>
         <!-----------End subtable:------------>
         <!-----------End subtable:------------>

Revision as of 02:33, 24 April 2007

Template:Infobox country/template