w:c:strategywiki>Prod (Created page with "<includeonly><templatestyles src="Template:Img/styles.css" />[[File:{{{file|}}}|class=img-{{{class|}}}|{{{options|}}}]]</includeonly><noinclude> {{TemplateStyles|Template:Img/...") |
w:c:strategywiki>Prod (Can't use pixelart yet) |
||
Line 19: | Line 19: | ||
* maxwidth - Resize to fill its container div's width | * maxwidth - Resize to fill its container div's width | ||
* bgblack - Dark background for light images with transparent backgrounds | * bgblack - Dark background for light images with transparent backgrounds | ||
* pixelart - Properly scale pixelart | <!--* pixelart - Properly scale pixelart #TemplateStyles doesn't recognize this CSS yet - https://phabricator.wikimedia.org/T222678 --> | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 01:39, 24 December 2021
This template uses TemplateStyles: |
Use classes to add unique styles to certain images.
Usage
{{img |file=BlueStar.png |class=bgblack |options=right{{!}}thumb{{!}}Blue star with a dark background }}
Supported classes:
- maxwidth - Resize to fill its container div's width
- bgblack - Dark background for light images with transparent backgrounds