Template:SmartWrap

From OniGalore
Revision as of 03:29, 26 July 2025 by Iritscen (talk | contribs) (parameterized shape)

Call this template when you want to place an image of a circular object on the right side of a page. Normally MediaWiki will assume that an image should be treated as a box and will wrap any nearby text around it accordingly. This template will tell the browser to wrap the text assuming that the image is a circle, so that text can run past the borders of the image where appropriate.

Sample usage: {{SmartWrap|[[Image:Something.png]]|shadow=yes}}

Parameters:

  • place: Set this to "left", "center" or "right" to set the alignment; "center" is the default.
  • shape: Set this to "circle" to get a circular shadow, as seen on Music/CD. A box shadow is the default.
  • shadow: If set to "yes", the image will have a soft gray shadow underlying it on all sides.