Modèle:Infobox common

De Baripedia
DEFAULT LOOK
IMAGE / ELEMENTS
{| cellpadding="4px" cellspacing="1px" style="width:100%;"|- class="alternatecells"| colspan="2" style="text-align:center" |MAIN CONTENT|}

==Usage==Copied from MinecraftWiki

{{infobox common| title     = title label box                                               ( defaults to page's name if not included )| border    = out-most border width                                         ( defaults to 1px if not included )| width     = overall width                                                 ( defaults to 22em if not included )| float     = right or left                                                 ( defaults to none if neither right or left or not included )| topcolor  = title box background color                                    ( defaults to #99FF99 if not included )| imagearea = optional blank canvas for image/elements before tabular data  ( defaults to showing nothing if not included )| rows      = all rows go here using {{Infobox row}}                        ( defaults to showing nothing if not included )| footer    = optional centered footer that goes across both columns        ( defaults to showing nothing if not included )}}

This is a skeleton for infoboxes, for use in other infobox templates or standalone.==Example=={| width="100%" style="background: #AFC7C7" | align="center" |

Without Infobox row
optional blank canvas for image/elements before tabular data
{| cellpadding="4px" cellspacing="1px" style="width:100%;"all rows go here using Template:Infobox row|- class="alternatecells"| colspan="2" style="text-align:center" |optional centered footer that goes across both columns|}

| align="center" |

With Infobox row
optional blank canvas for image/elements before tabular data
{| cellpadding="4px" cellspacing="1px" style="width:100%;"| class="infobox-row" |Header1

| content1 |- | class="infobox-row" |Header2 | content2

|-|- class="alternatecells"| colspan="2" style="text-align:center" |optional centered footer that goes across both columns|}

|- |

{{infobox common    | title     = Without Infobox row    | border    = 1px    | width     = 22em    | float     = none    | topcolor  = #99FF99    | imagearea = optional blank canvas for image/elements before tabular data    | rows      = all rows go here using [[Template:Infobox row]]    | footer    = optional centered footer that goes across both columns    }}

|

{{infobox common    | title     = With Infobox row    | border    = 1px    | width     = 22em    | float     = none    | topcolor  = #99FF99    | imagearea = optional blank canvas for image/elements before tabular data    | rows      = {{Infobox row | label=Header1 | field=content1}}                  {{Infobox row | label=Header2 | field=content2}}    | footer    = optional centered footer that goes across both columns    }}

|}

FLOAT RIGHT
IMAGE / ELEMENTS
{| cellpadding="4px" cellspacing="1px" style="width:100%;"|- class="alternatecells"| colspan="2" style="text-align:center" |MAIN CONTENT|}

{{infobox common| title     = FLOAT RIGHT| float     = right| imagearea = IMAGE / ELEMENTS| footer    = MAIN CONTENT}}


FLOAT LEFT
IMAGE / ELEMENTS
{| cellpadding="4px" cellspacing="1px" style="width:100%;"|- class="alternatecells"| colspan="2" style="text-align:center" |MAIN CONTENT|}

{{infobox common| title     = FLOAT LEFT| float     = left| imagearea = IMAGE / ELEMENTS| footer    = MAIN CONTENT}}