No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<div style="display: grid; grid-template-columns: repeat({{{columns|6}}} | <includeonly><div style="display: grid; grid-template-columns: repeat(auto-fit, 140px); justify-content: center; max-width: calc({{{max-columns|6}}} * 140px); margin: auto;">{{{1}}}</div></includeonly><noinclude>{{Documentation}}</noinclude> | ||
Latest revision as of 00:13, 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: