User:Tiddlywinks/Infobox/Info/doc

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search

Inserts a rounded block of info with an optional header. Can have up to 10 rows.

See also User:Tiddlywinks/Infobox.

Parameters

Named
  • header (optional): text to display in a header over this entire info block
  • r1: the header for row 1
    • r2-r10 (optional): for row 2-10
  • d1: the data for row 1
    • d2-d10 (optional): for row 2-10
  • colsizes (optional): custom value for the grid-template-columns property of the grid, to change the sizes of the columns (e.g., auto auto (note: fine if you only have one info block, otherwise, probably shouldn't use auto); defaults to 50% 50%)


FWIW, unnamed parameters for row/value data would possibly be a little inconvenient, because you wouldn't be able to add line breaks between parameters without those appearing in the output (everything would have to be in one row, or use HTML comments to break up the lines).