Template:Infobox: Difference between revisions

No edit summary
Tag: Manual revert
No edit summary
Line 1: Line 1:
<includeonly>{{#switch:{{{1}}}
<includeonly>{{#switch:{{{1}}}
|start=
|start=
{{{!}} class="infobox" style="width:300px;background:#555" cellspacing="0"
{{{!}} class="infobox" style="width:{{{width|300px}}};background:{{{bg|#555}}}" cellspacing="0"
! class="infoboxheading" colspan="2" style="color:#fff" {{!}} {{#if:{{{name|}}}|{{{name}}}|{{PAGETITLE}}}}
! class="infoboxheading" colspan="2" style="color:{{{color|#fff}}}" {{!}} {{#if:{{{name|}}}|{{{name}}}|{{PAGETITLE}}}}
{{!}}-
{{!}}-
{{#if:{{{media|}}}|
{{#if:{{{media|}}}|
{{!}} class="infoboxmedia" colspan="2" style="background:#F2F3F4" {{!}} {{{media}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{!}} class="infoboxmedia" colspan="2" style="background:{{{bg|#F2F3F4}}}" {{!}} {{{media}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
}}
}}
{{!}}-
{{!}}-
|section=
|section=
{{#if:{{{entries|}}}|
{{#if:{{{entries|}}}|
! class="infoboxsubheading" colspan="2" style="color:#fff" {{!}} {{{title|}}}
! class="infoboxsubheading" colspan="2" style="color:{{{color|#fff}}}" {{!}} {{{title|}}}
{{!}}-
{{!}}-
{{{entries|}}}
{{{entries|}}}
Line 16: Line 16:
|entry=
|entry=
{{#if:{{{content|}}}|
{{#if:{{{content|}}}|
{{!}} class="infoboxlabel" style="background:#F2F3F4;width:100px" {{!}}
{{!}} class="infoboxlabel" style="background:{{{bg|#F2F3F4}}};width:{{{width|100px}}}" {{!}}
{{{title|}}}:
{{{title|}}}:
{{!}} class="infoboxcell" style="background:#F2F3F4" {{!}}
{{!}} class="infoboxcell" style="background:{{{bg|#F2F3F4}}}" {{!}}
{{{content|}}}
{{{content|}}}
{{!}}-
{{!}}-

Revision as of 20:47, August 27, 2023

This is the infobox builder. See {{character infobox}} for an example of how to create a new infobox.