Template:Flexbox: Difference between revisions
From Pizza Tower Wiki
Content deleted Content added
mNo edit summary |
cat Tag: Reverted |
||
Line 1: | Line 1: | ||
<includeonly><templatestyles src="Template:Flexbox/styles.css" /><div class="flexingBox">{{{1}}}</div></includeonly><noinclude>{{documentation}}[[Category: |
<includeonly><templatestyles src="Template:Flexbox/styles.css" /><div class="flexingBox">{{{1}}}</div></includeonly><noinclude>{{documentation}}[[Category:Templates for templates]]</noinclude> |
Revision as of 19:55, 2 February 2024
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: