Template:Sprite/Saturday: Difference between revisions

i did it, sprites should work now!
(figuring out how this works)
(i did it, sprites should work now!)
 
Line 1: Line 1:
<includeonly>{{#invoke:Sprite
<includeonly>{{Sprite
|main
|ratio={{{ratio|1}}}
|ratio={{{ratio|1}}}
|sheetWidth=225
|sheetWidth={{{sheetWidth|225|}}}
|sheetHeight=250
|sheetHeight={{{sheetHeight|250}}}
|row={{#switch: {{{expr|}}}
|noOfRows={{{noOfRows|5}}}
  | neutral = 1
|noOfColumns={{{noOfColumns|5}}}
  | happy = 2
|offsetX={{{offsetX|0}}}
  | barely = 4
|offsetY={{{offsetY|0}}}
  | missed = 5
|row={{{row|1}}}
  | {{{row|1}}}
|col={{{col|1}}}
}}
|image={{{image|File:SaturdaySprites.png}}}
|col={{#switch: {{{expr|}}}
}}</includeonly><noinclude>{{Documentation}}</noinclude>
  | neutral = 1
  | happy = 5
  | barely = 1
  | missed = 1
  | {{{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-->
  | neutral = 5
  | happy = 5
  | barely = 5
  | missed = 5
  | {{{noOfRows|3}}}
}}
|noOfColumns={{#switch: {{{expr|}}}
  | neutral = 5
  | happy = 5
  | barely = 5
  | missed = 5
  | {{{noOfColumns|4}}}
}}
|image=File:SaturdaySprites.png
}}</includeonly><noinclude>{{documentation}}</noinclude>
26

edits