Template:InfoBox/Section: Difference between revisions
Appearance
mNo edit summary |
Important note on correctly writing this template |
||
| Line 3: | Line 3: | ||
</div>}}</includeonly><noinclude> | </div>}}</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]]. | ||
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: | |||
<pre> | |||
{{InfoBox/Section|Section 1|content= | |||
... | |||
}}{{InfoBox/Section|Section ... | |||
or | |||
{{InfoBox/Section|Section 1|content= | |||
... | |||
}}{{ | |||
InfoBox/Section|Section ... | |||
</pre> | |||
Writing them on separate lines (see below) can create unintentional line breaks in the output: | |||
<pre> | |||
{{InfoBox/Section|Section 1|content= | |||
... | |||
}} | |||
{{InfoBox/Section|Section ... | |||
</pre> | |||
'''Do not write the templates as in this second example. Use the first example instead.''' | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 04:51, 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.