Template:Infobox: Difference between revisions

No edit summary
No edit summary
Line 3: Line 3:
{{{!}} class="infobox" style="width:{{{width|300px}}};color:{{{color|#fff}}};background:{{{bg|#555}}}" cellspacing="0"
{{{!}} class="infobox" style="width:{{{width|300px}}};color:{{{color|#fff}}};background:{{{bg|#555}}}" cellspacing="0"
|title=
|title=
! class="infoboxheading" colspan="2" style="color:{{{color|inherit}}};background:{{{bg|none}}}" {{!}} {{#if:{{{name|}}}|{{{name}}}|{{PAGETITLE}}}}
! class="infoboxheading" colspan="{{{colspan|2}}}" style="color:{{{color|inherit}}};background:{{{bg|none}}}" {{!}} {{#if:{{{name|}}}|{{{name}}}|{{PAGETITLE}}}}
{{!}}-
{{!}}-
|media=
|media=
{{#if:{{{content|}}}|
{{#if:{{{content|}}}|
{{!}} class="infoboxmedia" colspan="2" style="color:{{{color|#000}}};background:{{{bg|#F2F3F4}}};border-color:{{{linebg|#999}}}" {{!}} {{{content}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{!}} class="infoboxmedia" colspan="{{{colspan|2}}}" style="color:{{{color|#000}}};background:{{{bg|#F2F3F4}}};border-color:{{{linebg|#999}}}" {{!}} {{{content}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{!}}-
{{!}}-
}}
}}
|section=
|section=
{{#if:{{{entries|}}}|
{{#if:{{{entries|}}}|
! class="infoboxsubheading" colspan="2" style="color:{{{color|inherit}}};background:{{{bg|none}}}" {{!}} {{{title|}}}
! class="infoboxsubheading" colspan="{{{colspan|2}}}" style="color:{{{color|inherit}}};background:{{{bg|none}}}" {{!}} {{{title|}}}
{{!}}-
{{!}}-
{{{entries}}}
{{{entries}}}
Line 20: Line 20:
{{!}} class="infoboxlabel" style="color:{{{color|#000}}};background:{{{bg|#F2F3F4}}};border-color:{{{linebg|#999}}};width:{{{width|auto}}}" {{!}}
{{!}} class="infoboxlabel" style="color:{{{color|#000}}};background:{{{bg|#F2F3F4}}};border-color:{{{linebg|#999}}};width:{{{width|auto}}}" {{!}}
{{{title|}}}:
{{{title|}}}:
{{!}} class="infoboxcell" style="color:{{{color|#000}}};background:{{{bg|#F2F3F4}}};border-color:{{{linebg|#999}}}" {{!}}
{{!}} class="infoboxcell" colspan="{{{colspan|1}}}" style="color:{{{color|#000}}};background:{{{bg|#F2F3F4}}};border-color:{{{linebg|#999}}}" {{!}}
{{{content}}}
{{{content}}}
{{!}}-
{{!}}-
}}
}}
|end=
|end=
{{!}} class="infoboxfooter" colspan="2" {{!}}  
{{!}} class="infoboxfooter" colspan="{{{colspan|2}}}" {{!}}  
{{!}}}
{{!}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>

Revision as of 12:52, August 28, 2023

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