Template:Flexbox
From Pizza Tower Wiki
How do I use this thing?
This is documentation about a Template. Portions of this template may not display properly without certain values provided.
- Description
- This template is a flexible container which can be used with block based templates as content.
- Template uses Extension:TemplateStyles. For styling, see Template:Flexbox/styles.css.
- Syntax
- Type:
{{flexbox|type=<id>|column=<yes>|full-width=yes|<content>}}
type
is optional and is used to give certain boxes specific styling. Acceptable values areenemy
,collectible
andsubpage
.column
is only required if the intent is to make the flexbox set its contents vertically in a column.full-width
will make the flexbox take up the page's width.
Examples
Enemies section in John Gutter, code:
{{flexbox|type=enemy| {{enemyicon|Cheeseslime|1|debuts}} {{enemyicon|Forknight|2|debuts}} {{enemyicon|Pizzaboy|1}} {{enemyicon|Swedish Monkey|2|debuts}} {{enemyicon|Pillar John|1}} {{enemyicon|Mini John|2|debuts}} }}
Results:
Enemies section in John Gutter but applied vertically, code:
{{flexbox|type=enemy|column=yes| {{enemyicon|Cheeseslime|1|debuts}} {{enemyicon|Forknight|2|debuts}} {{enemyicon|Pizzaboy|1}} {{enemyicon|Swedish Monkey|2|debuts}} {{enemyicon|Pillar John|1}} {{enemyicon|Mini John|2|debuts}} }}
Result: