Template:Infobox country: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Akhristov
m Undid revision 125420456 by Akhristov (talk): doesn't help anything, just extra code.
meta>David Kernow
m flag/coa: +explanatory comment, attempting to center captions
Line 36: Line 36:
|<!--then:-->
|<!--then:-->
   <tr class="mergedtoprow">
   <tr class="mergedtoprow">
       <td class="maptable" colspan="3" align="center" style="padding: 0.4em 0 0.4em 0;">
       <td class="maptable" colspan="3" align="center" style="padding:0.4em 0 0.4em 0;">
         <!----------Start subtable:----------->
         <!--------------------------------------------
         <table style="width: 100%; background: none;" align="center">
          Subtable to format flag/coat-of-arms display.
          Align="center"s and "width:auto;"s are for sake of Internet Explorer:
          --------------------------------------------->
         <table align="center" style="width:100%; background:none;">
             <!-------Images:------->
             <!-------Images:------->
             <tr> <td style="{{#if:{{{image_coat|}}} |<!--then:-->width:{{{flag_width|62%}}};}}<!--(62% as flags usually wider than coats-of-arms/symbols)--> vertical-align:middle;" align="center">   
             <tr> <td align="center" style="{{#if:{{{image_coat|}}} |<!--then:-->width:{{{flag_width|62%}}};}}<!--(62% as flags usually wider than coats-of-arms/symbols)--> 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; width: auto;" align="center"> [[Image:{{{image_coat}}}|85px|{{{symbol_type|Coat of arms}}} of {{{common_name|{{PAGENAME}}}}}]]</td>}}
                 |<!--then:--><td align="center" style="width:auto; vertical-align:middle;"> [[Image:{{{image_coat}}}|85px|{{{symbol_type|Coat of arms}}} of {{{common_name|{{PAGENAME}}}}}]]</td>}}
             </tr>
             </tr>
             <!-------Links:------->
             <!-------Captions:------->
             <tr> <td><small>[[Flag of {{{common_name|{{PAGENAME}}}}}|{{{flag_caption|Flag}}}]]</small></td>
             <tr> <td align="center"><small>[[Flag of {{{common_name|{{PAGENAME}}}}}|{{{flag_caption|Flag}}}]]</small></td>
                 {{#if:{{{image_coat|}}}
                 {{#if:{{{image_coat|}}}
                 |<!--then:--><td><small>[[{{{symbol_type_article|{{{symbol_type|Coat of arms}}}}}} of {{{common_name|{{PAGENAME}}}}}|{{{symbol_type|Coat of arms}}}]]</small></td>}}
                 |<!--then:--><td align="center"><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:--------------->
         </table>
         </table>
       </td>
       </td>

Revision as of 12:18, 24 April 2007

Template:Infobox country/template