Difference between revisions of "Template:InfoBox"

From Detective Conan Wiki
(Don't need the flex anymore)
(Add header-text-color variable)
Line 1: Line 1:
 
<includeonly>{{#if: {{{chronology|}}}
 
<includeonly>{{#if: {{{chronology|}}}
|<div style="{{#if: {{{header-color|}}} |--header-color:{{{header-color|}}};}}">
+
|<div style="{{#if: {{{header-color|}}} |--header-color: {{{header-color}}};}} {{#if: {{{header-text-color|}}} |--header-text-color: {{{header-text-color}}};}}">
 
   {{{chronology}}}
 
   {{{chronology}}}
 
   <div class="infobox" style="width: 275px; font-size: 90%; padding: 4.5px;">{{{main|}}}</div>
 
   <div class="infobox" style="width: 275px; font-size: 90%; padding: 4.5px;">{{{main|}}}</div>
 
</div>
 
</div>
|<div class="infobox" style="width: 275px; font-size: 90%; padding: 4.5px; {{#if: {{{header-color|}}} |--header-color:{{{header-color|}}};}}">{{{main|}}}</div>
+
|<div class="infobox" style="width: 275px; font-size: 90%; padding: 4.5px; {{#if: {{{header-color|}}} |--header-color: {{{header-color}}};}} {{#if: {{{header-text-color|}}} |--header-text-color: {{{header-text-color}}};}}">{{{main|}}}</div>
 
}}
 
}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>

Revision as of 23:34, 15 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.

See also