Template:InfoBox: Difference between revisions
Appearance
Due to issues relating to whitespace, an unnamed parameter won't work here |
gap: 4px -> row-gap: 2px |
||
| Line 2: | Line 2: | ||
|<div style="{{#if: {{{header-color|}}} |--header-color:{{{header-color|}}};}}"> | |<div style="{{#if: {{{header-color|}}} |--header-color:{{{header-color|}}};}}"> | ||
{{{chronology}}} | {{{chronology}}} | ||
<div class="infobox" style="width: 275px; font-size: 90%; display: flex; flex-direction: column; gap: | <div class="infobox" style="width: 275px; font-size: 90%; display: flex; flex-direction: column; row-gap: 2px; padding: 4.5px;">{{{main|}}}</div> | ||
</div> | </div> | ||
|<div class="infobox" style="width: 275px; font-size: 90%; display: flex; flex-direction: column; gap: | |<div class="infobox" style="width: 275px; font-size: 90%; display: flex; flex-direction: column; row-gap: 2px; padding: 4.5px; {{#if: {{{header-color|}}} |--header-color:{{{header-color|}}};}}">{{{main|}}}</div> | ||
}} | }} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Revision as of 23:56, 5 August 2025
This template and its subtemplates are used to simplify the backends of various other InfoBox templates and can also be used to easily create custom InfoBoxes if needed.