Template:Imagefix

From Songs of Syx Wiki
Revision as of 00:52, 30 June 2021 by Zippy (talk | contribs)
Jump to navigation Jump to search
{{{1}}}

This is for fixing images that usually appear as icons at the very start of some articles. By default, if some templates are right above articles, it can mess up the alignment of said images. This template fixes that so the image appears properly aligned. Here's an example.

Header #1

 This page is a stub. You can help this page by adding more to it. Seriously, please do that.

Notice how the image is awkwardly aligned. It's not vertically matching up with the text as it should be. The stub template, in this specific case, is the cause of this. Most other similar templates will cause this exact same problem, though this can happen in certain headers with no templates at all. The reason for this is currently unknown, but at least there's a fix for this now. If you look at the next example header, you will see how this template can fix the alignment problem. Technology is an amazing thing. Where would we be without it? You guys ever ask yourselves 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. This can also be fixed by - in this exact case - typing {{clear}} right after the {{stub}} that makes the stub template. Note that using the "clear" thing doesn't always create the best results, and can add further issues to image and text alignment. Even if a template isn't above an article, using this "imagefix" template can still provide some help.

Syntax

How this image-fixing template is used is as follows: {{imagefix|[[File:filename.png|left/right]]}}
Note that this template is meant for images that are aligned to the left or right, but can technically be used for any kind of image.
The syntax of the template used exactly how it was in the second header above would be {{imagefix|[[File:employment_counter.png|left]]}}