Modèle:Itemsource

De Terraria Wiki
Aller à la navigation Aller à la recherche
Ce modèle est considéré comme prêt pour i18n, signifiant qu'il est facile à régionaliser pour les différentes langues. Veuillez regarder i18n & l10n pour les modèles (en) pour en apprendre plus.
Voir Modèle:Itemsource/l10n pour la localisation de ce modèle.
Ce modèle utilise l'extension Cargo.
Ce modèle utilise l'extension Cargo, une partie intégrante du back-end du wiki.
Template-info.svg Documentation La documentation ci-dessous est transcluse de Modèle:Itemsource/doc. (modifier | historique)

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
, 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}} Bloc de pierre + Câble
Pillage
<p>{{itemsource|Active Stone Block|sep=</p><p>}}</p>

Bloc de pierre + Câble

Pillage

{{itemsource|Torch}} Gel + N'importe quel bois
  • Coffre
  • Coffre de l'ombre
  • Zombie


Pillage
{{itemsource|Torch|crafting=}}
  • Coffre
  • Coffre de l'ombre
  • Zombie


Pillage
{{itemsource|Torch|buying={{item|Angler}}}} Gel + N'importe quel bois
  • Coffre
  • Coffre de l'ombre
  • Zombie

PêcheurPêcheur
Pillage