Template:Infobox: Difference between revisions

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

Revision as of 00:04, August 28, 2023

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