Template:Weapon type count

From Terraria Wiki
Jump to navigation Jump to search
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Template:Weapon type count/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from Template:Weapon type count/doc. (edit | history)

This template prints a standardized sentence about the number of items that belong to a certain weapon or tool type.

Usage

{{ weapon type count | <weapon type> (optional) }}

It should be placed directly below the "Types" heading.

All information will be gathered automatically via cargo. See the template's source code for the supported weapon/tool types.

First unnamed parameter

Specify the weapon type for which the information is to be displayed. Defaults to the page name (for language wikis: the English translation of the page name as determined by {{pagename2en}}).

Notes

  • The template defines a variable for one of its internal cargo queries called wtcount:where_total that can be used externally. It should be used as the constraint (the where parameter) in the cargo query of the types table.