Difference between revisions of "Template:InfoBox/Section"

From Detective Conan Wiki
m
(Removed unnecessary text-align:center when display:flex and justify-content:center are present)
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{2|}}}
+
<includeonly>{{#if: {{{content|}}}|
|<span style="min-height: 28px; color: #ffffff; font-size: small; background-color: var(--header-color); display: flex; align-items: center; justify-content: center; text-align: center; padding: 2px;">'''{{{1}}}'''</span>
+
<div style="margin-top: 2px;"><span style="color: #fff; font-size: small; background-color: var(--header-color); color: var(--header-text-color); display: flex; align-items: center; justify-content: center; margin-bottom: 2px; padding: 2px;">'''{{{1}}}'''</span>{{{content}}}
{{{2}}}
+
</div>|<div></div>}}</includeonly><noinclude>
}}
+
This template creates a section of an InfoBox and is meant to be used in conjunction with [[Template:InfoBox]].
</includeonly><noinclude>
+
 
This template creates the main header of an InfoBox and is meant to be used in conjunction with [[Template:InfoBox]].
+
== See also ==
 +
* [[Template:InfoBox/Chronology]]
 +
* [[Template:InfoBox/MainHeader]]
 +
* [[Template:InfoBox/Image]]
 +
* [[Template:InfoBox/Section]]
 +
* [[Template:InfoBox/LabeledRow]]
 +
* [[Template:InfoBox/CollapsibleTable]]
 +
* [[Template:InfoBox/Item]]
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 03:21, 21 December 2025