(Created page with "'''Template:PokemonTileContainer''' is used to create a grid out of tiles (Template:PokemonTile2). It will attempt to show as many columns as possible, up to six columns wide, with each column hardcoded to 140px. ==Usage== <pre><nowiki>{{PokemonTileContainer|max-columns=}}</nowiki></pre> * '''max-columns (optional)''' sets the maximum number of columns to display. If left blank, it defaults to six columns. ==Example== <pre> {{PokemonTileContainer| {{PokemonTile2|n...") |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
'''Template:PokemonTileContainer''' is used to create a grid out of tiles ([[Template:PokemonTile2]]). It will attempt to show as many columns as | '''Template:PokemonTileContainer''' is used to create a grid out of tiles ([[Template:PokemonTile2]]). It will attempt to show as many columns as fit on the screen, up to six columns wide (unless overridden), with each column hardcoded at 140px. | ||
==Usage== | ==Usage== | ||
<pre><nowiki>{{PokemonTileContainer|max-columns=}}</nowiki></pre> | <pre><nowiki>{{PokemonTileContainer|max-columns=}}</nowiki></pre> | ||
* '''max-columns (optional)''' sets the maximum number of columns to display. If left blank, it defaults to six columns. | * '''max-columns (optional)''' sets the maximum number of columns to display, although fewer may be shown if the screen is too narrow. If left blank, it defaults to six columns. | ||
==Example== | ==Example== | ||
| Line 38: | Line 38: | ||
<pre> | <pre> | ||
{{PokemonTileContainer|max-columns= | {{PokemonTileContainer|max-columns=4| | ||
... | ... | ||
}} | }} | ||
Latest revision as of 00:27, 12 November 2026
Template:PokemonTileContainer is used to create a grid out of tiles (Template:PokemonTile2). It will attempt to show as many columns as fit on the screen, up to six columns wide (unless overridden), with each column hardcoded at 140px.
Usage
{{PokemonTileContainer|max-columns=}}
- max-columns (optional) sets the maximum number of columns to display, although fewer may be shown if the screen is too narrow. If left blank, it defaults to six columns.
Example
{{PokemonTileContainer|
{{PokemonTile2|name=Bulbasaur|number=001|type=grass }}
{{PokemonTile2|name=Ivysaur|number=002|type=grass }}
...
{{PokemonTile2|name=Pikachu|number=025|type=electric }}
{{PokemonTile2|name=Raichu|number=026|type=electric }}
}}
Produces:
max-columns
With a different number of columns:
{{PokemonTileContainer|max-columns=4|
...
}}
Produces: