Difference between revisions of "Template:ScaleFile"

From Project-GC
Jump to: navigation, search
(Update to support multiple images)
(Formatting error)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<div style="transform: scale({{{1|50}}}%)">{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}{{{9|}}}{{{10|}}}{{{11|}}}</div><noinclude>
 
<div style="transform: scale({{{1|50}}}%)">{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}{{{9|}}}{{{10|}}}{{{11|}}}</div><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>
+
<code><nowiki>{{</nowiki>ScaleFile|''Scale percentage''|''External file 1''|''External file 2''|''External file 3''...<nowiki>}}</nowiki></code> displays external images (such as those used for [[BadgeGen]]) at a given percentage of their 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.
 +
[[Category: Wiki Templates]]</noinclude>

Latest revision as of 21:50, 26 April 2024

{{ScaleFile|Scale percentage|External file 1|External file 2|External file 3...}} displays external images (such as those used for BadgeGen) at a given percentage of their 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.