v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Editing Template:Imagefix/doc
Jump to navigation
Jump to search
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
The '''imagefix''' template is a very simplistic CSS-based template that simply bumps images down by a few pixels. The purpose of the template is to make images better align with the text right next to them, instead of looking like the image is slightly higher than the text. It moves the image down by 4 pixels by default, but this value can be customized by adding a second value. There is padding-right value in the template that is 8 by default (which pushes the text right of the image to be pushed further right), but this can also be customized by adding a third value. | The '''imagefix''' template is a very simplistic CSS-based template that simply bumps images down by a few pixels. The purpose of the template is to make images better align with the text right next to them, instead of looking like the image is slightly higher than the text. It moves the image down by 4 pixels by default, but this value can be customized by adding a second value. There is padding-right value in the template that is 8 by default (which pushes the text right of the image to be pushed further right), but this can also be customized by adding a third value. | ||
− | |||
− | |||
==Syntax== | ==Syntax== | ||
Line 7: | Line 5: | ||
The "margin" and "padding" values are optional, and one or both can be left completely blank. | The "margin" and "padding" values are optional, and one or both can be left completely blank. | ||
− | |||
==Examples== | ==Examples== | ||
− | [[File:dog_sprite.png|left]] | + | [[File:dog_sprite.png|left]]Template unused. Notice how this very text does not align with the image. |
<br> | <br> | ||
However, using the template with this syntax: <code><nowiki>{{imagefix|[[File:dog_sprite.png]]}}</nowiki></code> will produce this...<br><br> | However, using the template with this syntax: <code><nowiki>{{imagefix|[[File:dog_sprite.png]]}}</nowiki></code> will produce this...<br><br> | ||
− | {{imagefix|[[File:dog_sprite.png]]}} | + | {{imagefix|[[File:dog_sprite.png]]}}Template used. Now the top pixels of the same image align properly with the text. |
− | |||
− | |||
− |