Template:Img: Difference between revisions

Template page
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/...")
 
m (2 revisions imported: Imported from https://strategywiki.org/)
 
(One intermediate revision by one other user not shown)
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>

Latest revision as of 18:27, 28 October 2023

Use classes to add unique styles to certain images.

Usage[edit source]

{{img
|file=BlueStar.png
|class=bgblack
|options=right{{!}}thumb{{!}}Blue star with a dark background
}}
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