Jump to content

Template:Infobox lore nation: Difference between revisions

Edited style to match A3W
m Fixed a colored line appearing
Line 4: Line 4:


| abovestyle  = text-align:center; background-color: var(--background-color-content-added);
| abovestyle  = text-align:center; background-color: var(--background-color-content-added);
| above      = {{#if: {{{name|}}} |{{{name|}}} | {{PAGENAME}}}}{{#if: {{{nation_type|}}} |<hr style="background-color: {{#if: {{{bordercolor|}}} | {{{bordercolor|}}} | #d49c6a}};"><small>{{{nation_type|}}}</small> }}
| above      = {{#if: {{{name|}}} |{{{name|}}} | {{PAGENAME}}}}{{#if: {{{nation_type|}}} |<small>{{{nation_type|}}}</small> }}
| subheaderstyle = font-size:110%; text-align:center;
| subheaderstyle = font-size:110%; text-align:center;
| subheader  = {{{native_name|}}}{{#if: {{{year_end|}}}| {{#if: {{{native_name|}}}|<br />}}<small>{{{year_start|}}} – {{{year_end|}}}</small>}}
| subheader  = {{{native_name|}}}{{#if: {{{year_end|}}}| {{#if: {{{native_name|}}}|<br />}}<small>{{{year_start|}}} – {{{year_end|}}}</small>}}
Line 11: Line 11:


| image = {{#if:{{both|{{{flag_image1|}}}{{{flag_image2|}}}|{{{symbol|}}}}}|
| image = {{#if:{{both|{{{flag_image1|}}}{{{flag_image2|}}}|{{{symbol|}}}}}|
     <div class="noresize" style="display:table; width:100%;">
     <div class="noresize" style="display:table; width:100%; text-align: center;">
         <div style="display:table-cell; vertical-align:middle; padding-left:5px;">
         <div style="display:table-cell; vertical-align:middle; padding-left:5px;">
             {{#if:{{{flag_image1|}}}|<div style="padding-bottom:3px;">{{{flag_image1|}}}</div>}}{{#if:{{{flag_image2|}}}|<div style="padding: 2px 0px 3px;">{{{flag_image2|}}}</div>}}
             {{#if:{{{flag_image1|}}}|<div style="padding-bottom:3px;">{{{flag_image1|}}}</div>}}{{#if:{{{flag_image2|}}}|<div style="padding: 2px 0px 3px;">{{{flag_image2|}}}</div>}}
Line 23: Line 23:
<!--else:-->|
<!--else:-->|
     {{#if:{{{flag_image1|}}}{{{flag_image2|}}}|
     {{#if:{{{flag_image1|}}}{{{flag_image2|}}}|
         <div class="noresize" style="display:table; width:100%;">
         <div class="noresize" style="display:table; width:100%; text-align: center;">
             {{#if:{{{flag_image1|}}}|<div style="display:table-cell; vertical-align:middle; padding: 0px 5px 3px;">{{{flag_image1|}}}</div>}}{{#if:{{{flag_image2|}}}|<div style="display:table-cell; vertical-align:middle; padding: 0px 5px 3px 0px;">{{{flag_image2|}}}</div>}}
             {{#if:{{{flag_image1|}}}|<div style="display:table-cell; vertical-align:middle; padding: 0px 5px 3px;">{{{flag_image1|}}}</div>}}{{#if:{{{flag_image2|}}}|<div style="display:table-cell; vertical-align:middle; padding: 0px 5px 3px 0px;">{{{flag_image2|}}}</div>}}
         </div>
         </div>
Line 29: Line 29:
     }}
     }}
     {{#if:{{{symbol|}}}|
     {{#if:{{{symbol|}}}|
         <div style="padding: 0px 5px;">
         <div style="padding: 0px 5px; text-align: center;">
             <div style="padding-bottom:3px;">{{{symbol|}}}</div>
             <div style="padding-bottom:3px;">{{{symbol|}}}</div>
             <div><small>{{{caption2|}}}</small></div>
             <div><small>{{{caption2|}}}</small></div>

Revision as of 14:32, 21 July 2025

Infobox lore nation