Difference between revisions of "Template:ScaleFile"

From Project-GC
Jump to: navigation, search
(Closing noinclude)
(Update to support multiple images)
Line 1: Line 1:
<div style="transform: scale({{{2|50}}}%)">{{{1}}}</div><noinclude>
+
<div style="transform: scale({{{1|50}}}%)">{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}{{{9|}}}{{{10|}}}{{{11|}}}</div><noinclude>
  
<nowiki>{{</nowiki>ScaleFile|''External file''|''Scale percentage''<nowiki>}}</nowiki> displays an external image (such as those used for [[BadgeGen]]) at a given percentage of its original size. This is necessaryas the usual wiki markup <nowiki>[[File:</nowiki>''filename''|''size''<nowiki>]]</nowiki> cannot be used for external images. The default size is 50%.</noinclude>
+
<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.