Template:ItemAmount

{{#ifexpr: {{#var: total}} <1 | {{abbr | {{#ifexpr: {{#var: stacktext}}{{#var: connect}}{{#if: {{#var: itemstext}} | {{#if: {{#var: stacktext }} | {{#var: items}} | {{#var: itemstext}} }} }} |{{#var: stacktext}}{{#var: connect_tooltip}}{{#var: itemstext}} ({{#var:total}} total item{{#ifeq: {{#var:total}} | 1 | | s }}) }}|{{#ifexpr: {{#var: stacktext}}{{#var: connect}}{{#if: {{#var: itemstext}} | {{#if: {{#var: stacktext }} | {{#var: items}} | {{#var: itemstext}} }} }} {{documentation}}