Template:Sprite/Farmer: Difference between revisions

Jump to navigation Jump to search
(Updated template to use a different file that had been uploaded prior, which is a spritesheet that contains all of the Farmer's sprites, including the scared sprite. The scared sprite has now been turned into an expression within this template, rendering the standalone "Template:Sprite/FarmerScared" useless. That page should be deleted whenever possible, as it's now obsolete.)
m (Slightly adjusted positioning of sprites)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Sprite
<includeonly>{{Sprite
  |ratio={{{ratio|1.2}}}
  |ratio={{{ratio|1.2}}}
  |sheetWidth=368
  |sheetWidth=184
  |sheetHeight=45
  |sheetHeight=138
|noOfRows=0.5
|noOfColumns=4
  |row={{#switch: {{{expr|}}}
  |row={{#switch: {{{expr|}}}
   | hit = 1
   | def = 1
   | barely = 2.05
   | hum = 1
   | miss = 2.05
  | cry = 2
   | scared = 3.05
   | robo = 2
   | scared = 3
   | {{{row|1}}}
   | {{{row|1}}}
  }}
  }}
  |col={{#switch: {{{expr|}}}
  |col={{#switch: {{{expr|}}}
   | hit = 2.9
   | def = 2.35
   | barely = 1.95
   | hum = 3.6
   | miss = 2.9
   | cry = 2.35
   | scared = 1.95
  | robo = 3
   | {{{col|1.9}}}
   | scared = 2.35
   | {{{col|1}}}
}}
|noOfRows={{#switch: {{{expr|}}} <!-- "noOfRows" and "noOfColumns" are switched for every expression in order to center them properly without losing integrity of the overall template-->
  | def = 3
  | hum = 3
  | cry = 3
  | robo = 3
  | scared = 3
  | {{{noOfRows|3}}}
}}
|noOfColumns={{#switch: {{{expr|}}}
  | def = 5
  | hum = 5
  | cry = 5
  | robo = 4
  | scared = 5
  | {{{noOfColumns|4}}}
  }}
  }}
  |image=File:Farmer.png.png
  |image=File:Farmer.png.png
}}</includeonly><noinclude>{{documentation}}</noinclude>
}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 13:48, 28 June 2023