Difference between revisions of "Template:Grid/Crafting Square Numbers"

From Better Than Wolves Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly>{{#ifexpr: {{ #if: {{{1|}}} | {{{1}}} | 1 }} > 9 |<span class="{{{3|}}}2">{{Sprite
 
<includeonly>{{#ifexpr: {{ #if: {{{1|}}} | {{{1}}} | 1 }} > 9 |<span class="{{{3|}}}2">{{Sprite
  |pos={{ #expr: floor ( {{{1}}} / 10 ) }}
+
  |pos= 2
 
  |link={{{2|}}}
 
  |link={{{2|}}}
 
  |image=GridNumbersCSS.png
 
  |image=GridNumbersCSS.png
Line 14: Line 14:
 
}}</span>}}</includeonly><noinclude>
 
}}</span>}}</includeonly><noinclude>
 
{{/doc}}
 
{{/doc}}
 
+
{{ #expr: floor ( {{{1}}} / 10 ) }}
 
[[Category:Image templates|C]]
 
[[Category:Image templates|C]]
 
</noinclude>
 
</noinclude>

Revision as of 06:00, 18 December 2011

Template-info.png Documentation

Shows a number suitable for overlaying crafting square items.

The number 1 is not shown, {{Grid/Crafting Square Numbers|1}} gives  (grey border for clarification)

long numbers are supported: {{Grid/Crafting Square Numbers|64}} gives
GridNumbersCSS.png
GridNumbersCSS.png
.

The above documentation is transcluded from Template:Grid/Crafting Square Numbers/doc. (edit | history)

Expression error: Unrecognized punctuation character "{".