Template:Flexbox: Difference between revisions

From Pizza Tower Wiki
Content added Content deleted
(Created page with "<includeonly><templatestyles src="Template:Flexbox/styles.css" /><div class="flexingbox">{{{1}}}</div></includeonly><noinclude>{{documentation}}Category:Other templates</noinclude>")
 
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Template:Flexbox/styles.css" /><div class="flexingbox">{{{1}}}</div></includeonly><noinclude>{{documentation}}[[Category:Other templates]]</noinclude>
<includeonly><templatestyles src="Template:Flexbox/styles.css" /><div class="flexingBox {{#ifeq:{{{column|}}}|yes|flexColumn|}}" {{#if:{{{type|}}}|id="{{{type|}}}"|}}{{#ifeq:{{{full-width|}}}|yes|style="width:initial;"|}}>{{{1}}}</div></includeonly><noinclude>{{documentation}}[[Category:Other templates]]</noinclude>

Latest revision as of 19:20, 4 March 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.

Edit this documentation | About the Documentation template

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 are enemy, collectible and subpage.
  • 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: