Template:InfoBox/Chronology: Difference between revisions
Appearance
Nested flex for centering; 3px margin to separate the little arrow from its associated text |
Add header-text-color variable and See also links |
||
| Line 1: | Line 1: | ||
<includeonly><div style="text-align:center; padding: 4.5px; margin-bottom: 10px; border: 1px solid #ccc;"> | <includeonly><div style="text-align:center; padding: 4.5px; margin-bottom: 10px; border: 1px solid #ccc;"> | ||
<div style="color: #fff; background-color: var(--header-color); padding: 2px; font-weight: bold;">Chronology</div> | <div style="color: #fff; background-color: var(--header-color); color: var(--header-text-color); padding: 2px; font-weight: bold;">Chronology</div> | ||
<div style="display: flex; justify-content: space-evenly; margin-top: 3px;"> | <div style="display: flex; justify-content: space-evenly; margin-top: 3px;"> | ||
<div style="width: 30%; display: flex; align-items: center; justify-content: center;">{{#if: {{{1|}}} | <span style="font-size: 16px; margin-right: 3px;">‹ </span> [[{{{1}}}]] | }}</div> | <div style="width: 30%; display: flex; align-items: center; justify-content: center;">{{#if: {{{1|}}} | <span style="font-size: 16px; margin-right: 3px;">‹ </span> [[{{{1}}}]] | }}</div> | ||
| Line 9: | Line 9: | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
This template creates the Chronology portion of an InfoBox and is only meant to be used in the <code>chronology</code> parameter of [[Template:InfoBox]]. | This template creates the Chronology portion of an InfoBox and is only meant to be used in the <code>chronology</code> parameter of [[Template:InfoBox]]. | ||
== See also == | |||
* [[Template:InfoBox/Chronology]] | |||
* [[Template:InfoBox/MainHeader]] | |||
* [[Template:InfoBox/Image]] | |||
* [[Template:InfoBox/Section]] | |||
* [[Template:InfoBox/LabeledRow]] | |||
* [[Template:InfoBox/Item]] | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 22:45, 19 August 2025
This template creates the Chronology portion of an InfoBox and is only meant to be used in the chronology parameter of Template:InfoBox.