Template:Stack

From Terraria Wiki
Jump to navigation Jump to search
Template-info.svg Documentation The documentation below is transcluded from Template:Stack/doc. (edit | history)

This template is used to display a stack size in a style similar to Terraria's in-game display.

Usage

{{ stack | <stack size> | size = <custom digit size> }}

First unnamed parameter

Stack size to display. Anything in this string that is not a number is ignored.

size

Size of the digits in the output.

Examples

Code Result
{{stack|25}} Stack digit 2.pngStack digit 5.png
{{stack|25|size=6px}} Stack digit 2.pngStack digit 5.png
{{stack|9999}} Stack digit 9.pngStack digit 9.pngStack digit 9.pngStack digit 9.png
{{stack|1+1}} Stack digit 1.pngStack digit 1.png
{{stack|6, 7, 8, or 9?}} Stack digit 6.pngStack digit 7.pngStack digit 8.pngStack digit 9.png
{{stack|30}} Stack digit 3.pngStack digit 0.png
{{stack|0}} Stack digit 0.png
{{stack|902}} Stack digit 9.pngStack digit 0.pngStack digit 2.png