Template:Infobox country/formernext: Difference between revisions
Jump to navigation
Jump to search
m (1 revision imported) |
(add 22) |
||
Line 1: | Line 1: | ||
{| style="width:95%; background: transparent; text-align:center; margin:0 auto;" | {| style="width:95%; background: transparent; text-align:center; margin:0 auto; display:inline-table;" | ||
|- | |- | ||
| style="text-align:center; border:0; padding-bottom:0"|<div id="before-after"></div> {{#if:{{{p1|}}}|'''Preceded by'''}} || style="text-align:center;border:0; padding-bottom:0;"| {{#if:{{{s1|}}}|'''Succeeded by'''}} | | style="text-align:center; border:0; padding-bottom:0"|<div id="before-after"></div> {{#if:{{{p1|}}}|'''Preceded by'''}} || style="text-align:center;border:0; padding-bottom:0;"| {{#if:{{{s1|}}}|'''Succeeded by'''}} | ||
Line 87: | Line 87: | ||
{{!}}style="border:0; padding:0; vertical-align:middle;"{{!}} {{#if:{{{flag_p21|}}}|[[File:{{{flag_p21}}}|20px{{#ifeq:{{{border_p21}}}|no||{{!}}border}}|link=|alt=]]|{{#if:{{{image_p21|}}}|{{{image_p21}}}|[[File:Blank.png|22px|link=|alt=]]}}}} | {{!}}style="border:0; padding:0; vertical-align:middle;"{{!}} {{#if:{{{flag_p21|}}}|[[File:{{{flag_p21}}}|20px{{#ifeq:{{{border_p21}}}|no||{{!}}border}}|link=|alt=]]|{{#if:{{{image_p21|}}}|{{{image_p21}}}|[[File:Blank.png|22px|link=|alt=]]}}}} | ||
{{!}}style="border:0; padding:0; vertical-align:middle; text-align:left;"{{!}} [[{{{p21}}}]]}} | {{!}}style="border:0; padding:0; vertical-align:middle; text-align:left;"{{!}} [[{{{p21}}}]]}} | ||
{{!}}- | |||
{{#if:{{{p22|}}} | | |||
{{!}}style="border:0; padding:0; vertical-align:middle;"{{!}} {{#if:{{{flag_p22|}}}|[[File:{{{flag_p22}}}|20px{{#ifeq:{{{border_p22}}}|no||{{!}}border}}|link=|alt=]]|{{#if:{{{image_p22|}}}|{{{image_p22}}}|[[File:Blank.png|22px|link=|alt=]]}}}} | |||
{{!}}style="border:0; padding:0; vertical-align:middle; text-align:left;"{{!}} [[{{{p22}}}]]}} | |||
<!--end subtable:--> | <!--end subtable:--> | ||
{{!}}} | {{!}}} | ||
Line 174: | Line 178: | ||
{{!}}style="border:0; padding:0; vertical-align:middle; text-align:right;"{{!}} [[{{{s21}}}]] | {{!}}style="border:0; padding:0; vertical-align:middle; text-align:right;"{{!}} [[{{{s21}}}]] | ||
{{!}}style="border:0; padding:0; vertical-align:middle;"{{!}} {{#if:{{{flag_s21|}}}|[[File:{{{flag_s21}}}|20px{{#ifeq:{{{border_s21}}}|no||{{!}}border}}|link=|alt=]]|{{#if:{{{image_s21|}}}|{{{image_s21}}}|[[File:Blank.png|22px|link=|alt=]]}}}}}} | {{!}}style="border:0; padding:0; vertical-align:middle;"{{!}} {{#if:{{{flag_s21|}}}|[[File:{{{flag_s21}}}|20px{{#ifeq:{{{border_s21}}}|no||{{!}}border}}|link=|alt=]]|{{#if:{{{image_s21|}}}|{{{image_s21}}}|[[File:Blank.png|22px|link=|alt=]]}}}}}} | ||
{{!}}- | |||
{{#if:{{{s22|}}} | | |||
{{!}}style="border:0; padding:0; vertical-align:middle; text-align:right;"{{!}} [[{{{s22}}}]] | |||
{{!}}style="border:0; padding:0; vertical-align:middle;"{{!}} {{#if:{{{flag_s22|}}}|[[File:{{{flag_s22}}}|20px{{#ifeq:{{{border_s22}}}|no||{{!}}border}}|link=|alt=]]|{{#if:{{{image_s22|}}}|{{{image_s22}}}|[[File:Blank.png|22px|link=|alt=]]}}}}}} | |||
<!--end subtable:--> | <!--end subtable:--> | ||
<!--end subtable:--> | <!--end subtable:--> |
Revision as of 09:03, 5 November 2023
Template documentation
This subtemplate is used to simplify the code of {{infobox country}}. It should not be used directly. It can currently handle up to 21 flags.