模板:Itemsource

来自Terraria Wiki
跳到导航 跳到搜索
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:Itemsource/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.
Template-info.svg 文档 以下文档来自Template:Itemsource/doc。(编辑 | 历史

This template is used to dynamically display the entities from which an item can be obtained. It takes into consideration crafting, looting/dropping, buying, and plundering. Hence, it is a combination of {{recipes/extract}}, {{dropinfo/list}}, and the "buy/vendor/plunder" information in the Items cargo table.

Occasionally, an item might not display all entities that it can be looted, purchased, or plundered from. This is usually caused by faulty {{item infobox}} parameters on the item's page, e.g. a missing drop, loot/bag loot, vendor, or plunder tag.

Usage

{{ itemsource | <item name> | id = <item ID> | sep = <separator> (optional) | crafting = <recipe> (optional) | looting = <loot source> (optional) | dropped = <dropping entity> (optional) | buying = <vendor> (optional) | plundering = <plunder location> (optional) }}

First unnamed parameter, id

Name or ID of the item in question. Only one out of these two parameters should be used.

sep

Separator between the three methods of obtainment. Defaults to <hr class="incell-border"/>, i.e., a table border.

crafting, looting, dropped, buying, plundering

Use these parameters to manually override the automatically generated data in each section. Only $looting or $dropped can be used at a time, not both.

Examples

Code Result
{{itemsource|Active Stone Block}} 石块 + 电线
掠夺
<p>{{itemsource|Active Stone Block|sep=</p><p>}}</p>

石块 + 电线

掠夺

{{itemsource|Torch}} 凝胶 + 任何木材
  • 宝箱
  • 暗影箱
  • 僵尸


掠夺
{{itemsource|Torch|crafting=}}
  • 宝箱
  • 暗影箱
  • 僵尸


掠夺
{{itemsource|Torch|buying={{item|Angler}}}} 凝胶 + 任何木材
  • 宝箱
  • 暗影箱
  • 僵尸

渔夫渔夫
掠夺