Template:Infobox wrapper/doc

From Thorium Mod Wiki
Jump to navigation Jump to search

Usage

Unnamed Parameter(s)

Infobox(es) to be wrapped.

float = right/left/none

CSS float, default is right.

direction = column/row

The direction of wrapped infobox(es).Default is column.

other parameters

See {{flexbox}}

Examples

Single parameter style(not recommended):

{{infobox wrapper | {{item infobox | name = Myna}}{{item infobox | name = Gold Duck | boxwidth=12em}}{{item infobox | name = Lobster}} | css=background:#ffff99; }} :

Myna
  • Myna item sprite
Research1 required
Gold Duck
  • Gold Duck item sprite
Research1 required
Lobster
  • Lobster item sprite
Research1 required

Multiple parameters style: (recommended)

{{infobox wrapper | {{item infobox | name = Myna}} | {{item infobox | name = Gold Duck | boxwidth=12em}} | {{item infobox | name = Lobster}} | css=background:#ff9999 }}

Myna
  • Myna item sprite
Research1 required
Gold Duck
  • Gold Duck item sprite
Research1 required
Lobster
  • Lobster item sprite
Research1 required

float left:

{{infobox wrapper | float=left | {{item infobox | name = Myna}} | {{item infobox | name = Gold Duck | boxwidth=12em}} | {{item infobox | name = Lobster}} | css=background:#ff9999;}}

Myna
  • Myna item sprite
Research1 required
Gold Duck
  • Gold Duck item sprite
Research1 required
Lobster
  • Lobster item sprite
Research1 required

no float(infoboxes float right by default):

{{infobox wrapper | float=none | {{item infobox | name = Myna}} | {{item infobox | name = Gold Duck | boxwidth=12em}} | {{item infobox | name = Lobster}} | css=background:#ff9999;}}

Myna
  • Myna item sprite
Research1 required
Gold Duck
  • Gold Duck item sprite
Research1 required
Lobster
  • Lobster item sprite
Research1 required

no float with infoboxes float left:

{{infobox wrapper | float=none | {{item infobox | name = Myna | float=left}} | {{item infobox | name = Gold Duck | boxwidth=12em | float=left}} | {{item infobox | name = Lobster | float=left}} | css=background:#ff9999;}}

Myna
  • Myna item sprite
Research1 required
Gold Duck
  • Gold Duck item sprite
Research1 required
Lobster
  • Lobster item sprite
Research1 required


horizontal direction:

{{infobox wrapper | direction=row | {{item infobox | name = Myna}} | {{item infobox | name = Gold Duck | boxwidth=12em}} | {{item infobox | name = Lobster}} | css=background:#ff9999;}}

Myna
  • Myna item sprite
Research1 required
Gold Duck
  • Gold Duck item sprite
Research1 required
Lobster
  • Lobster item sprite
Research1 required

horizontal direction & no float:

{{infobox wrapper | direction=row | float=none | {{item infobox | name = Myna}} | {{item infobox | name = Gold Duck | boxwidth=12em}} | {{item infobox | name = Lobster}} | css=background:#ff9999;}}

Myna
  • Myna item sprite
Research1 required
Gold Duck
  • Gold Duck item sprite
Research1 required
Lobster
  • Lobster item sprite
Research1 required

horizontal direction & float left:

{{infobox wrapper | direction=row | float=left | {{item infobox | name = Myna}} | {{item infobox | name = Gold Duck | boxwidth=12em}} | {{item infobox | name = Lobster}} | css=background:#ff9999;}}

Myna
  • Myna item sprite
Research1 required
Gold Duck
  • Gold Duck item sprite
Research1 required
Lobster
  • Lobster item sprite
Research1 required