Template:Infobox wrapper

From Terraria Wiki
Jump to: navigation, search
Template-info.svg Documentation The documentation below is transcluded from Template:Infobox wrapper/doc. (edit | history)

Usage

Describe usage instructions here.

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 | {{npc infobox | name = Bunny}}{{npc infobox | name = Duck | boxwidth=12em}}{{npc infobox | name = Bird}} | css=background:#ffff99; }} :

Bunny
Bunny.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds
Duck
Duck.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds
Bird
Bird.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds

Multiple parameters style: (recommended)

{{infobox wrapper | {{npc infobox | name = Bunny}} | {{npc infobox | name = Duck | boxwidth=12em}} | {{npc infobox | name = Bird}} | css=background:#ff9999 }}

Bunny
Bunny.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds
Duck
Duck.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds
Bird
Bird.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds

float left:

{{infobox wrapper | float=left | {{npc infobox | name = Bunny}} | {{npc infobox | name = Duck | boxwidth=12em}} | {{npc infobox | name = Bird}} | css=background:#ff9999;}}

Bunny
Bunny.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds
Duck
Duck.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds
Bird
Bird.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds

no float(infoboxes float right by default):

{{infobox wrapper | float=none | {{npc infobox | name = Bunny}} | {{npc infobox | name = Duck | boxwidth=12em}} | {{npc infobox | name = Bird}} | css=background:#ff9999;}}

Bunny
Bunny.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds
Duck
Duck.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds
Bird
Bird.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds

no float with infoboxes float left:

{{infobox wrapper | float=none | {{npc infobox | name = Bunny | float=left}} | {{npc infobox | name = Duck | boxwidth=12em | float=left}} | {{npc infobox | name = Bird | float=left}} | css=background:#ff9999;}}

Bunny
Bunny.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds
Duck
Duck.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds
Bird
Bird.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds


horizontal direction:

{{infobox wrapper | direction=row | {{npc infobox | name = Bunny}} | {{npc infobox | name = Duck | boxwidth=12em}} | {{npc infobox | name = Bird}} | css=background:#ff9999;}}

Bunny
Bunny.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds
Duck
Duck.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds
Bird
Bird.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds

horizontal direction & no float:

{{infobox wrapper | direction=row | float=none | {{npc infobox | name = Bunny}} | {{npc infobox | name = Duck | boxwidth=12em}} | {{npc infobox | name = Bird}} | css=background:#ff9999;}}

Bunny
Bunny.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds
Duck
Duck.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds
Bird
Bird.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds

horizontal direction & float left:

{{infobox wrapper | direction=row | float=left | {{npc infobox | name = Bunny}} | {{npc infobox | name = Duck | boxwidth=12em}} | {{npc infobox | name = Bird}} | css=background:#ff9999;}}

Bunny
Bunny.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds
Duck
Duck.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds
Bird
Bird.png
Classic mode icon.png Classic
Expert mode icon.png Expert
Master mode icon.png Master
Statistics
Type
Sounds