Template:Pinp misc/doc

From Ring of Brodgar
Jump to navigation Jump to search
Pinp_misc
Page-image-name-processing _ Max-Image-Size-Clamp.
Features
- Clamp to a general maximum infobox image size.
- While still allowing image enlarging below maximum.
- Max size set per infobox-type.
Used by
- Template:Page-image-name-processing (direct caller)
- Template:Infobox creature (max 320)
- Template:Infobox bush (max 320)
- Template:Infobox hearthmagic (max 320)
- Template:Infobox metaobj (max 320)
- Template:Infobox skill (max 152)
- Template:Infobox terrain (max 320)
- Template:Infobox tree (max 320)
- Template:Infobox wound (max 152)
- Template:Infobox legmetaobj (max 320)
- Template:Infobox legskill (max 320)
- Template:Infobox legcreature (max 320)
- Template:Infobox legterrain (max 320)


Calls + behavior
{{pinp_misc|size=12|max=100}} => (image)|12x12px
{{pinp_misc|size=123|max=100}} => |frameless|100x100px
{{pinp_misc|max=100}} => |frameless|100x100px
{{pinp_misc|size=|max=100}} => |frameless|100x100px
{{pinp_misc|size=abc|max=100}} => |frameless|100x100px
{{pinp_misc|size=123abc|max=100}} => |frameless|100x100px
{{pinp_misc|size=12}} => Expression error: Unrecognized punctuation character "{".
{{pinp_misc|size=123|max=}} => Expression error: Missing operand for >.
{{pinp_misc|size=123|max=abc}} => Expression error: Unrecognized word "abc".
{{pinp_misc|size=123|max=100abc}} => Expression error: Unrecognized word "abc".