Difference between revisions of "Template:ScaleFile"
(Closing noinclude) |
(Update to support multiple images) |
||
Line 1: | Line 1: | ||
− | <div style="transform: scale({{{ | + | <div style="transform: scale({{{1|50}}}%)">{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}{{{9|}}}{{{10|}}}{{{11|}}}</div><noinclude> |
− | <nowiki>{{</nowiki>ScaleFile|''External file''|'' | + | <nowiki>{{</nowiki>ScaleFile|''Scale percentage''|''External file 1''|''External file 2''|''External file 3''...<nowiki>}}</nowiki> display an external images (such as those used for [[BadgeGen]]) at a given percentage of its original size. Up to 10 images are supported, which are shown adjacent to each other in a single line. This is necessary as the usual wiki markup <nowiki>[[File:</nowiki>''filename''|''size''<nowiki>]]</nowiki> cannot be used for external images. The default scale is 50%. Do not add % to the scale size.</noinclude> |
Revision as of 15:08, 24 February 2020
{{ScaleFile|Scale percentage|External file 1|External file 2|External file 3...}} display an external images (such as those used for BadgeGen) at a given percentage of its original size. Up to 10 images are supported, which are shown adjacent to each other in a single line. This is necessary as the usual wiki markup [[File:filename|size]] cannot be used for external images. The default scale is 50%. Do not add % to the scale size.