Template:Imagefix: Difference between revisions
(Created page with "<div class="imagefix">{{{image}}}</div>") |
No edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div | <div id="imagefix">{{{1}}}</div> | ||
<noinclude><br>{{Imagefix/doc}}[[Category:Templates]][[Category:Article_management_templates]]</noinclude> |
Latest revision as of 01:18, 21 November 2021
As the name would imply, this template is used to fix the alignment for small images used at the very start of a paragraph or sentence. By default, MediaWiki misaligns some images when starting an article or section with them, by raising the image a few pixels above the text. This template fixes that and counters the misalignment by moving the image down a few pixels, aligning the image properly with the text. When certain templates are above the image, this can misalign images even more.
{{imagefix|<IMAGE_FILE_LINK>|LEFT/RIGHT}}
- Note that the left/right part of the syntax is technically not part of the template, but still required on this wiki for the image to be aligned to either side properly.
Header #1
This page is a stub. You can help this page by adding more to it. Seriously, please do that. |
Header #2
This page is a stub. You can help this page by adding more to it. Seriously, please do that. |
Now this time, the image is aligned properly. The exact syntax used for this example is {{imagefix|[[File:employment_counter.png|left]]}}
. This template can be used for any image, but its purpose is mainly to fix images at the very start of articles. Typing {{clear}}
after the template can also fix the issue, but can cause unwanted results. The very text you're reading now is nothing more than just filler material, to give this paragraph a more "full" look - so that it somewhat matches the example above.