Template:Infobox country/imagetable: Difference between revisions

update from sandbox per discussion on talk page
(Undid revision 788245651 by Rob984 (talk) Hasn't fixed the problem. I think it needs to be a fixed width, but that would require more extensive change to the code (so the whole column is part of an IF))
(update from sandbox per discussion on talk page)
Line 1:
{{#if:{{both|{{{image1a|}}}{{{image1b|}}}|{{{image2|}}}}}
|<tddiv style="display:inline-block;vertical-align:middle;width:auto58%;text-align:center;"><div class=center>{{{image2|}}}</div></td>
|<table class="maptable" style="width:100%">
<div class=center>{{{image1a|}}}</div><div class=center>{{{image1b|}}}</div>
<tr>
<tddiv style="verticalfont-align:middle;widthsize:5885%; text-align:center; margin-top:2px;"><div class=center>{{{image1acaption1|}}}</div><div class=center>{{{image1b|}}}</div></td>
</div><!--
<td style="vertical-align:middle;width:auto;text-align:center;"><div class=center>{{{image2|}}}</div></td>
--><div style="display:inline-block;vertical-align:middle;width:40%;text-align:center;">
</tr><tr>
<tddiv styleclass="font-size:85%; text-align:center;">{{{caption1image2|}}}</tddiv>
<tddiv style="font-size:85%; text-align:center; margin-top:2px;">{{{caption2|}}}</tddiv>
</trdiv>
}}|{{#if:{{{image2image1a|}}}{{{image1b|}}}|{{{image2image1a|}}}{{{image1b|}}}<div class=center style="font-size:85%; text-align:center; margin-top:2px;">{{{caption2caption1}}}</div>
</table>
|}}{{#if:{{{image1a|}}}{{{image1bimage2|}}}|{{{image1a|}}}{{{image1bimage2|}}}<div class=center style="font-size:85%; text-align:center; margin-top:2px;">{{{caption1caption2}}}</div>
}}{{#if:{{{image2|}}}|{{{image2|}}}<div class=center style="font-size:85%; text-align:center;">{{{caption2}}}</div>
}}
}}<noinclude>
Anonymous user