Template:Margin

Revision as of 00:16, 8 March 2025 by MLD>Lorenerd11
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
[view] [edit] Template documentation

Sets the margin of an element using parameters left, right, top, and bottom. Must include "px".

Can also be set to negative values to crop an element instead.

Example:

Wikitext Produces
[[File:Building research lab 1.png]] File:Building research lab 1.png
{{margin|[[File:Building research lab 1.png]]|left=-20px|bottom=-20px}} File:Building research lab 1.png