Template:Vulnerabilities

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:Vulnerabilities/l10n for the localization of this template.
This template uses the Cargo extension.
This template uses Extension:Cargo, an integral part of the wiki's back-end.
  • This template queries the table "NPCs". View table.
Important.svg
CAUTION: Terraria Wiki code is complex!!!
If you want to use this code on another wiki, wiki.gg staff are not able to assist you.
Please consider picking a different wiki to adapt code from, or making your own templates!
Remember that content on a wiki is more important than fancy formatting.
Template-info.svg Documentation The documentation below is transcluded from Template:Vulnerabilities/doc. (edit | history)

This template is used to automatically create an {{itemlist}} of NPCs that are vulnerable to a specific debuff.

Usage

{{ vulnerabilities | <debuff> | collapsed = y/yes | name = <vanity debuff name> | width = <itemlist width> }}

First unnamed parameter

Name of the debuff for which to generate the vulnerability list. Defaults to the name of the page.

collapsed

The output will be wrapped in a collapsible box. Use this parameter to make it display as collapsed by default.

name

Custom name for the debuff that will be displayed in the heading of the box. Defaults to the first unnamed parameter.

width

Custom width for the itemlist, defaults to 18em.

See also