Difference between revisions of "Template:InfoBox/Section"
From Detective Conan Wiki
(Important note on correctly writing this template) |
m (Experiment: adding nowiki tags to see if it fixes line break issue) |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if: {{{content|}}}| | <includeonly>{{#if: {{{content|}}}| | ||
<div style="margin-top: 2px;"><span style="color: #fff; font-size: small; background-color: var(--header-color); display: flex; align-items: center; justify-content: center; text-align: center; padding: 2px;">'''{{{1}}}'''</span>{{{content}}} | <div style="margin-top: 2px;"><span style="color: #fff; font-size: small; background-color: var(--header-color); display: flex; align-items: center; justify-content: center; text-align: center; padding: 2px;">'''{{{1}}}'''</span>{{{content}}} | ||
| − | </div>}}</includeonly><noinclude> | + | </div>|<nowiki></nowiki>}}</includeonly><noinclude> |
This template creates a section of an InfoBox and is meant to be used in conjunction with [[Template:InfoBox]]. | This template creates a section of an InfoBox and is meant to be used in conjunction with [[Template:InfoBox]]. | ||
Revision as of 21:52, 14 August 2025
This template creates a section of an InfoBox and is meant to be used in conjunction with Template:InfoBox.
When putting multiple sections in succession, write the opening braces of the second section right after the closing braces of the first section, as follows:
{{InfoBox/Section|Section 1|content=
...
}}{{InfoBox/Section|Section ...
or
{{InfoBox/Section|Section 1|content=
...
}}{{
InfoBox/Section|Section ...
Writing them on separate lines (see below) can create unintentional line breaks in the output:
{{InfoBox/Section|Section 1|content=
...
}}
{{InfoBox/Section|Section ...
Do not write the templates as in this second example. Use the first example instead.