Jump to content

Template:Consumable: Difference between revisions

From Drifters Almanac
mNo edit summary
mNo edit summary
 
(39 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="consumable-template">
<includeonly>{{DISPLAYTITLE:{{{name}}}}}</includeonly>
'''{{{name|{{PAGENAME}}}}}'''
{{#if:{{{tooltip_image|}}}|[[File:{{{tooltip_image}}}|thumb|{{{name}}} Tooltip]]|[[File:Image_Placeholder.png|thumb|Image Needed]]}}
<!--
<!--
== Usage == Copy/Paste from "{{Consumable" to the closing brackets "}}" and fill in the variables
==========================
          STATS         
==========================
--><div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Stats</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
{{#ifeq:{{lc:{{{is_soulbound|}}}}}|yes|'''This item is Soulbound and cannot be traded.'''<br />
}}{{#if:{{{category|}}}|'''Category: [[{{{category}}}]]'''<br />
}}{{#if:{{{execution_time|}}}|'''Execution Time:''' {{{execution_time}}}s<br />
}}{{#if:{{{cooldown_minutes|}}}{{{cooldown_seconds|}}}|'''Cooldown:''' {{#if:{{{cooldown_minutes|}}}|{{{cooldown_minutes}}}m}}{{#if:{{{cooldown_seconds|}}}| &#32;{{{cooldown_seconds}}}s}}<br />
}}{{#if:{{{movement_penalty|}}}|'''Movement Penalty:''' - {{{movement_penalty}}}%<br />
}}{{#if:{{{range|}}}|'''Range:''' {{{range}}}m<br />
}}{{#if:{{{angle|}}}|'''Angle:''' {{{angle}}}&deg;<br />
}}{{#if:{{{effect_targets|}}}|'''Target:''' {{{effect_targets}}}<br />
}}{{#if:{{{duration_minutes|}}}{{{duration_seconds|}}}|'''Duration:''' {{#if:{{{duration_minutes|}}}|{{{duration_minutes}}}m}}{{#if:{{{duration_seconds|}}}| &#32;{{{duration_seconds}}}s}}<br />
}}</div><!--
==========================
        EFFECTS         
==========================
-->{{#if:{{{effect_value|}}}{{{stat1_name|}}}{{{stat2_name|}}}{{{stat3_name|}}}{{{stat4_name|}}}{{{stat5_name|}}}{{{stat6_name|}}}{{{heal_min|}}}{{{damage|}}}|
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Effect</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
{{#if:{{{effect_value|}}}| {{{effect_value}}}<br />
}}{{#if:{{{heal_min|}}}| {{{heal_min}}}{{#if:{{{heal_max|}}}| – {{{heal_max}}}}} Health<br />
}}{{#if:{{{heal_dice_roll|}}}|<span style="margin-left: 1em; color: #aaa;">({{{heal_dice_roll}}})</span><br />
}}{{#if:{{{damage|}}}| {{{damage}}} {{{damage_type|}}}<br />
}}{{#if:{{{damage_dice_roll|}}}|<span style="margin-left: 1em; color: #aaa;">({{{damage_dice_roll}}})</span><br />
}}</div>
{{#if:{{{stat1_name|}}}{{{stat2_name|}}}{{{stat3_name|}}}{{{stat4_name|}}}{{{stat5_name|}}}{{{stat6_name|}}}|
{{AdditionalStats
| stat1_name  = {{{stat1_name|}}}
| stat1_value = {{{stat1_value|}}}
| stat2_name  = {{{stat2_name|}}}
| stat2_value = {{{stat2_value|}}}
| stat3_name  = {{{stat3_name|}}}
| stat3_value = {{{stat3_value|}}}
| stat4_name  = {{{stat4_name|}}}
| stat4_value = {{{stat4_value|}}}
| stat5_name  = {{{stat5_name|}}}
| stat5_value = {{{stat5_value|}}}
| stat6_name  = {{{stat6_name|}}}
| stat6_value = {{{stat6_value|}}}
}} }} }}<!--
==========================
  TRIGGERED EFFECTS     
==========================
-->{{#ifeq:{{lc:{{{has_trigger|}}}}}|yes|
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Triggered Effect</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
• '''Condition''': {{#if:{{{trigger_max_hits|}}}|{{{trigger_max_hits}}}x }}{{#if:{{{trigger_chance|}}}| &#32;{{{trigger_chance}}}% chance }} &#32;{{{trigger_type}}}<br />
{{#if:{{{trigger_effect1|}}}|&nbsp;&nbsp;&nbsp;{{{trigger_effect1}}}<br />
}}{{#if:{{{trigger_effect2|}}}|&nbsp;&nbsp;&nbsp;{{{trigger_effect2}}}<br />
}}{{#if:{{{trigger_duration|}}}|&nbsp;&nbsp;&nbsp;for {{{trigger_duration}}} }}<br />
</div>
}}<!--
==========================
      REQUIREMENTS     
==========================
--><div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Requirements</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
{{#if:{{{level_requirement|}}}|'''Level Requirement''': {{{level_requirement}}}<br />
}}{{#if:{{{class_requirement|}}}|'''Class Requirement''': {{#invoke:ListClassReq|fromDelimited|{{{class_requirement}}}|delimiter=,}}<br />
}}</div><!--
==========================
    ACQUISITION         
==========================
-->{{Acquisition
|harvested_from={{{harvested_from|}}}
|dropped_by={{{dropped_by|}}}
|sold_by={{{sold_by|}}}
|quest_reward={{{quest_reward|}}}
}}<!--
==========================
    USED IN QUESTS     
==========================
-->{{#if:{{{used_in_quests|}}}|
{{UsedInQuests
|used_in_quests={{{used_in_quests|}}}
}}}}<!--
==========================
      FLAVOR TEXT     
==========================
-->{{#if:{{{flavor_text|}}}|
{{FlavorText
|flavor_text={{{flavor_text|}}}
}}}}<!--
==========================
      SELL PRICE       
==========================
-->{{#if:{{{sell_price_gold|}}}{{{sell_price_silver|}}}{{{sell_price_copper|}}}|
{{PriceDisplay
|gold={{{sell_price_gold|}}}
|silver={{{sell_price_silver|}}}
|copper={{{sell_price_copper|}}}
}}}}<!--
==========================
      CRAFTING INFO     
==========================
-->{{#if:{{{crafting_profession|}}}{{{recipe_page|}}}|
{{CraftingDetails
| crafting_profession = {{{crafting_profession|}}}
| recipe_page        = {{{recipe_page|}}}


| component1_name              = {{{component1_name|}}}
| component1_material          = {{{component1_material|}}}
| component1_category_tier    = {{{component1_category_tier|}}}
| component1_material_category = {{{component1_material_category|}}}


{{Consumable
| component2_name              = {{{component2_name|}}}
|item name=
| component2_material          = {{{component2_material|}}}
|tooltip image file=
| component2_category_tier    = {{{component2_category_tier|}}}
|category=HealthPotion
| component2_material_category = {{{component2_material_category|}}}
|execution=
|cooldown=
|duration=
|effects value 1=
|effects category 1=
|effects value 2=
|effects category 2=
|effects value 3=
|effects category 3=
|effects value 4=
|effects category 4=
|effects value 5=
|effects category 5=
|level requirement=
|how to acquire=*[[Shoat|Shoat (Newhaven Valley)]]
|recipe=
|crafting profession=
|crafting components=
|sale price=75 Copper
}}


-->
| component3_name              = {{{component3_name|}}}
[[File:{{{tooltip image file}}}|thumb|{{{item name}}} Tooltip]]
| component3_material          = {{{component3_material|}}}
| component3_category_tier    = {{{component3_category_tier|}}}
| component3_material_category = {{{component3_material_category|}}}


<h2> Stats </h2>
| component4_name              = {{{component4_name|}}}
:Category: [[:Category:{{{category}}}|{{{category}}}]]
| component4_material          = {{{component4_material|}}}
{{#if: {{{level requirement}}}
| component4_category_tier    = {{{component4_category_tier|}}}
|:Level Requirement: {{{level requirement}}}
| component4_material_category = {{{component4_material_category|}}}
}}
 
{{#if: {{{execution}}}
| component5_name              = {{{component5_name|}}}
|:Execution Time: {{{execution}}}
| component5_material          = {{{component5_material|}}}
}}
| component5_category_tier    = {{{component5_category_tier|}}}
{{#if: {{{cooldown}}}
| component5_material_category = {{{component5_material_category|}}}
|:Cooldown Time: {{{cooldown}}}
}}}}<!--
}}
==========================
{{#if: {{{duration}}}
          NOTES         
|:Duration: {{{duration}}}
==========================
}}
-->{{#if:{{{notes|}}}|
{{#if: {{{effects value 1}}}
{{Notes
|<h2> Effects </h2>
|notes={{{notes|}}}
:{{{effects value 1}}} {{{effects category 1}}}[[Category:{{{effects category 1}}}]]
}}}}<!--
}}{{#if: {{{effects value 2}}}
==========================
|:{{{effects value 2}}} {{{effects category 2}}}[[Category:{{{effects category 2}}}]]
        CATEGORIES       
}}{{#if: {{{effects value 3}}}
==========================
|:{{{effects value 3}}} {{{effects category 3}}}[[Category:{{{effects category 3}}}]]
--><includeonly>[[Category:Consumables]]</includeonly>
}}{{#if: {{{effects value 4}}}
{{#if:{{{crafting_profession|}}}|[[Category:Crafted Consumables]]}}
|:{{{effects value 4}}} {{{effects category 4}}}[[Category:{{{effects category 4}}}]]
{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}
}}{{#if: {{{effects value 5}}}
 
|:{{{effects value 5}}} {{{effects category 5}}}[[Category:{{{effects category 5}}}]]
<includeonly><div style="display:none">
}}
[[Is soulbound::{{{is_soulbound|}}}]]
{{#if: {{{recipe}}}
[[Consumable category::{{{category|}}}]]
|<h2> Recipe </h2>
[[Execution time::{{{execution_time|}}}]]
:{{{recipe}}} using:
[[Cooldown (minutes)::{{{cooldown_minutes|}}}]]
{{{crafting components}}}
[[Cooldown (seconds)::{{{cooldown_seconds|}}}]]
{{#if: {{{crafting profession}}}
[[Range::{{{range|}}}]]
|[[Category:{{{crafting profession}}}]]
[[Angle::{{{angle|}}}]]
}}
[[Effect targets::{{{effect_targets|}}}]]
}}
[[Duration (minutes)::{{{duration_minutes|}}}]]
{{#if: {{{how to acquire}}}
[[Duration (seconds)::{{{duration_seconds|}}}]]
|<h2> How to Acquire </h2>
[[Heal minimum::{{{heal_min|}}}]]
{{{how to acquire}}}
[[Heal maximum::{{{heal_max|}}}]]
}}
[[Trigger effect::{{{trigger_effect|}}}]]
{{#if: {{{sale price}}}
 
|<h2> Sale Price </h2>
[[Level requirement::{{{level_requirement|}}}]]
<!-- X Gold Y Silver Z Copper -->
{{#arraymap:{{{class_requirement|}}}|,|x|[[Class requirement::x]]}}
:{{{sale price}}}
 
}}
[[Profession::{{{crafting_profession|}}}]]
[[Category:Consumable]][[Category:{{{category}}}]]
{{#arraymap:{{{recipe_page|}}}|,|x|[[Recipe page::x]]}}
[[Crafting component name::{{{component1_name|}}}]]
{{#arraymap:{{{component1_material|}}}|,|x|[[Crafting component material::x]]}}
{{#arraymap:{{{component1_material_category|}}}|,|x|[[Crafting component material category::x]]}}
[[Crafting component name::{{{component2_name|}}}]]
{{#arraymap:{{{component2_material|}}}|,|x|[[Crafting component material::x]]}}
{{#arraymap:{{{component2_material_category|}}}|,|x|[[Crafting component material category::x]]}}
[[Crafting component name::{{{component3_name|}}}]]
{{#arraymap:{{{component3_material|}}}|,|x|[[Crafting component material::x]]}}
{{#arraymap:{{{component3_material_category|}}}|,|x|[[Crafting component material category::x]]}}
[[Crafting component name::{{{component4_name|}}}]]
{{#arraymap:{{{component4_material|}}}|,|x|[[Crafting component material::x]]}}
{{#arraymap:{{{component4_material_category|}}}|,|x|[[Crafting component material category::x]]}}
[[Crafting component name::{{{component5_name|}}}]]
{{#arraymap:{{{component5_material|}}}|,|x|[[Crafting component material::x]]}}
{{#arraymap:{{{component5_material_category|}}}|,|x|[[Crafting component material category::x]]}}
<span style="display:none">{{#default_form:Consumable}}</span>
</div></includeonly>

Latest revision as of 15:51, 29 June 2025

Consumable

Image Needed
Stats

Requirements