User:Tiddlywinks/Infobox
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
{{{contents}}}
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
This is a tool to help in updating some of our templates (infoboxes) to divs, and at the same time applying some consistency. It is generally intended to be substituted, not used as a direct call.
Has subtemplates User:Tiddlywinks/Infobox/Names, User:Tiddlywinks/Infobox/Image, User:Tiddlywinks/Infobox/Info
Parameters
- width
- theme
- boxbg-color
- border-color (header-color? it'd have to be passed in to subtemplates...)
- ?header-text: black/white, in case header-color isn't "dark" (would have to be passed in to subtemplates...)
- ?row-color (would have to be passed in to subtemplates...)
How to use
Previewing with this is simple enough, but inserting parameters and subst'ing it out is a little weirder and worth detailing.
TBD
- Template styles (esp for when it's subst'd)
- Some things should also probably get wrapped in #if (like the image caption and info block headers) so they're not just sitting around in the code as random empty divs if you don't use it.
(Maybe)
- Additional/automatic theme option:
{{colorscheme}}
? or{{locationcolor}}
(some way to say "I want this to be in the template instead of custom or light/med/dark" and you subst it and it's there)- If it's not light/med/dark, you may need an option for block header (default white) and row header (default black) text colors. Probably only black/white so that it can be directly applied for black/whitelinks too.