Jump to content

Template:InfoBox: Difference between revisions

From Detective Conan Wiki
No edit summary
The first unnamed parameter can take the place of main=; re-indenting some lines
Line 1: Line 1:
<includeonly>{{#if: {{{chronology|}}}
<includeonly>{{#if: {{{chronology|}}}
|<div style="{{#if: {{{header-color|}}} |--header-color:{{{header-color|}}};}}">{{{chronology}}}<div class="infobox" style="width: 275px; font-size: 90%; display: flex; flex-direction: column; gap: 4px; padding: 0.4em;">{{{main|}}}</div></div>
|<div style="{{#if: {{{header-color|}}} |--header-color:{{{header-color|}}};}}">
|<div class="infobox" style="width: 275px; font-size: 90%; display: flex; flex-direction: column; gap: 4px; padding: 0.4em; {{#if: {{{header-color|}}} |--header-color:{{{header-color|}}};}}">{{{main|}}}</div>
  {{{chronology}}}
  <div class="infobox" style="width: 275px; font-size: 90%; display: flex; flex-direction: column; gap: 4px; padding: 0.4em;">{{{main|{{{1|}}}}}}</div>
</div>
|<div class="infobox" style="width: 275px; font-size: 90%; display: flex; flex-direction: column; gap: 4px; padding: 0.4em; {{#if: {{{header-color|}}} |--header-color:{{{header-color|}}};}}">{{{main|{{{1|}}}}}}</div>
}}
}}
</includeonly><noinclude>
</includeonly><noinclude>

Revision as of 23:46, 1 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