Difference between revisions of "Template:InfoBox"
From Detective Conan Wiki
m |
(header-text-color defaults to white) |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if: {{{chronology|}}} | <includeonly>{{#if: {{{chronology|}}} | ||
| − | |<div style="{{#if: {{{header-color|}}} |--header-color: {{{header-color}}};}} {{#if: {{{header-text-color|}}} | | + | |<div style="{{#if: {{{header-color|}}} |--header-color: {{{header-color}}};}} --header-text-color: {{#if: {{{header-text-color|}}} |{{{header-text-color}}} | #fff }};"> |
{{{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}}};}} {{#if: {{{header-text-color|}}} | | + | |<div class="infobox" style="width: 275px; font-size: 90%; padding: 4.5px; {{#if: {{{header-color|}}} |--header-color: {{{header-color}}};}} --header-text-color: {{#if: {{{header-text-color|}}} |{{{header-text-color}}} | #fff }};">{{{main|}}}</div> |
}} | }} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Revision as of 20:27, 4 September 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.
For detailed documentation on each of the sub-templates, follow their respective links under the See also section at the bottom of this page.
Example:
{{InfoBox|header-color = #ececec|header-text-color = black
| chronology = {{InfoBox/Chronology| Previous | [[The links of this chronology table are intentionally broken|Link]] | Next }}
| main =
{{InfoBox/MainHeader| Main Header }}
{{InfoBox/Image| Detective Conan Anime Logo.png }}
{{InfoBox/Section| Section 1 |content =
{{InfoBox/LabeledRow| Label | Some information |border-top = none}}
{{InfoBox/Item| Some more information }}
}} <!-- End of Section 1 -->
}}
Results in: