Jump to content

Template:Consumable: Difference between revisions

From Drifters Almanac
mNo edit summary
No edit summary
Line 1: Line 1:
<div class="consumable-template">
<div class="consumable-template">
 
<includeonly>{{DISPLAYTITLE:{{{name}}}}}</includeonly>
'''{{{name|{{PAGENAME}}}}}'''
'''{{{name|{{PAGENAME}}}}}'''
 
{{#if:{{{tooltip_image|}}}|[[File:{{{tooltip_image}}}|thumb|{{{name}}} Tooltip]]}}
[[File:{{{tooltip_image|ConsumablePlaceholder.png}}}|thumb]]
 
<!-- ========================== -->
<!-- ========================== -->
<!--          STATS           -->
<!--          STATS           -->
<!-- ========================== -->
<!-- ========================== -->
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Stats</div>
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Stats</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
<div style="margin-left: 1em;">
{{#if:{{{is_soulbound|}}}|'''This item is Soulbound and cannot be traded.'''<br />
{{#ifeq:{{lc:{{{is_soulbound|}}}}}|yes|'''This item is Soulbound and cannot be traded.'''<br />
}}{{#if:{{{category|}}}|'''Category''': [[:Category:{{{category}}}|{{{category}}}]]<br />
}}{{#if:{{{category|}}}|'''Category''': [[:Category:{{{category}}}|{{{category}}}]]<br />
}}{{#if:{{{execution_time|}}}|'''Execution Time''': {{{execution_time}}}<br />
}}{{#if:{{{execution_time|}}}|'''Execution Time''': {{{execution_time}}}<br />
}}{{#if:{{{cooldown|}}}|'''Cooldown''': {{{cooldown}}}<br />
}}{{#if:{{{cooldown|}}}|'''Cooldown''': {{#if:{{{cooldown_minutes|}}}|{{{cooldown_minutes}}} Minutes}}{{#if:{{{cooldown_seconds|}}}| &#32;{{{cooldown_seconds}}} Seconds}}<br />
}}{{#if:{{{movement_penalty|}}}|'''Movement Penalty''': {{{movement_penalty}}}<br />
}}{{#if:{{{movement_penalty|}}}|'''Movement Penalty''': {{{movement_penalty}}}<br />
}}{{#if:{{{range|}}}|'''Range''': {{{range}}}<br />
}}{{#if:{{{range|}}}|'''Range''': {{{range}}}<br />
}}{{#if:{{{angle|}}}|'''Angle''': {{{angle}}}&deg;<br />
}}{{#if:{{{angle|}}}|'''Angle''': {{{angle}}}&deg;<br />
}}{{#if:{{{effect_target|}}}|'''Target''': {{{effect_target}}}<br />
}}{{#if:{{{effect_targets|}}}|'''Target''': {{{effect_targets}}}<br />
}}{{#if:{{{effect_duration|}}}|'''Duration''': {{{effect_duration}}}<br />
}}{{#if:{{{duration|}}}|'''Duration''': {{#if:{{{duration_minutes|}}}|{{{duration_minutes}}} Minutes}}{{#if:{{{duration_seconds|}}}| &#32;{{{duration_seconds}}} Seconds}}<br />
}}
}}
</div>
</div>
Line 29: Line 27:
<hr style="border: 0; border-top: 1px solid #555;" />
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
<div style="margin-left: 1em;">
{{{effect_value}}}
{{#if:{{{effect_value|}}}| {{{effect_value}}}
</div>
}}{{#if:{{{heal_min|}}}|'''Heals''': {{{heal_min}}} – {{{heal_max}}}<br />
}}{{#if:{{{dice_roll|}}}|<span style="margin-left: 1em; color: #aaa;">({{{dice_roll}}})</span><br />
}}</div>
{{#if:{{{stat1_name|}}}{{{stat2_name|}}}{{{stat3_name|}}}{{{stat4_name|}}}{{{stat5_name|}}}{{{stat6_name|}}}|
{{#if:{{{stat1_name|}}}{{{stat2_name|}}}{{{stat3_name|}}}{{{stat4_name|}}}{{{stat5_name|}}}{{{stat6_name|}}}|
{{AdditionalStats
{{AdditionalStats
Line 49: Line 49:
<!--    TRIGGERED EFFECTS      -->
<!--    TRIGGERED EFFECTS      -->
<!-- ========================== -->
<!-- ========================== -->
{{#if:{{{trigger_type|}}}{{{trigger_effect|}}}|
{{#ifeq:{{lc:{{{has_trigger|}}}}}|yes|
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Triggered Effect</div>
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Triggered Effect</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
<div style="margin-left: 1em;">
• '''Condition''': {{#if:{{{trigger_max_hits|}}}|{{{trigger_max_hits}}}x }}{{#if:{{{trigger_chance|}}}|{{{trigger_chance}}} chance }}{{{trigger_type}}}<br />
• '''Condition''': {{#if:{{{trigger_max_hits|}}}|{{{trigger_max_hits}}}x }}{{#if:{{{trigger_chance|}}}|{{{trigger_chance}}} chance }}{{{trigger_type}}}<br />
{{#if:{{{trigger_effect|}}}|&nbsp;&nbsp;&nbsp;{{{trigger_effect}}}{{#if:{{{trigger_duration|}}}| ({{{trigger_duration}}})}}<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>
</div>
}}
}}
Line 60: Line 63:
<!--        REQUIREMENTS      -->
<!--        REQUIREMENTS      -->
<!-- ========================== -->
<!-- ========================== -->
{{#if:{{{level_requirement|}}}{{{class_requirement1|}}}|
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Requirements</div>
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Requirements</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
<div style="margin-left: 1em;">
{{#if:{{{level_requirement|}}}|'''Level Requirement''': {{{level_requirement}}}<br />}}
{{#if:{{{level_requirement|}}}|'''Level Requirement''': {{{level_requirement}}}<br />
{{#if:{{{class_requirement1|}}}|'''Class Requirement''': [[{{{class_requirement1}}}]]}}{{#if:{{{class_requirement2|}}}|, [[{{{class_requirement2}}}]]}}{{#if:{{{class_requirement3|}}}|, [[{{{class_requirement3}}}]]}}
}}{{#if:{{{class_requirement1|}}}|'''Class Requirement''': [[{{{class_requirement1}}}]]}}{{#if:{{{class_requirement2|}}}|, [[{{{class_requirement2}}}]]}}{{#if:{{{class_requirement3|}}}|, [[{{{class_requirement3}}}]]}}
</div>
</div>
<!-- ========================== -->
<!--      ACQUISITION          -->
<!-- ========================== -->
{{#if:{{{dropped_by|}}}|{{DroppedBy|dropped_by={{{dropped_by}}}}}
}}{{#if:{{{sold_by|}}}|{{SoldBy|sold_by={{{sold_by}}}}}
}}{{#if:{{{quest_reward|}}}|{{QuestReward|quest_reward={{{quest_reward}}}}}
}}
}}
<!-- ========================== -->
<!-- ========================== -->
<!--         FLAVOR TEXT     -->
<!--       FLAVOR TEXT       -->
<!-- ========================== -->
<!-- ========================== -->
{{#if:{{{flavor_text|}}}|
{{#if:{{{flavor_text|}}}|
Line 77: Line 85:
}}
}}
<!-- ========================== -->
<!-- ========================== -->
<!--       CRAFTING INFO      -->
<!--       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
{{CraftingDetails
| crafting_profession = {{{crafting_profession|}}}
| crafting_profession = {{{crafting_profession|}}}
| recipe_page        = {{{recipe_page|}}}
| recipe_page        = {{{recipe_page|}}}


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


| component2_name              = {{{component2_name|}}}
| component2_name              = {{{component2_name|}}}
| component2_material          = {{{component2_material|}}}
| component2_material          = {{{component2_material|}}}
| component2_material_category = {{{component2_material_category|}}}
| component2_category_tier    = {{{component2_category_tier|}}}
| component2_material_category = {{{component2_material_category|}}}


| component3_name              = {{{component3_name|}}}
| component3_name              = {{{component3_name|}}}
| component3_material          = {{{component3_material|}}}
| component3_material          = {{{component3_material|}}}
| component3_material_category = {{{component3_material_category|}}}
| component3_category_tier    = {{{component3_category_tier|}}}
| component3_material_category = {{{component3_material_category|}}}


| component4_name              = {{{component4_name|}}}
| component4_name              = {{{component4_name|}}}
| component4_material          = {{{component4_material|}}}
| component4_material          = {{{component4_material|}}}
| component4_material_category = {{{component4_material_category|}}}
| component4_category_tier    = {{{component4_category_tier|}}}
| component4_material_category = {{{component4_material_category|}}}


| component5_name              = {{{component5_name|}}}
| component5_name              = {{{component5_name|}}}
| component5_material          = {{{component5_material|}}}
| component5_material          = {{{component5_material|}}}
| component5_material_category = {{{component5_material_category|}}}
| component5_category_tier    = {{{component5_category_tier|}}}
| component5_material_category = {{{component5_material_category|}}}
}}
}}
<!-- ========================== -->
<!--        ACQUISITION        -->
<!-- ========================== -->
{{#if:{{{how_to_acquire|}}}|
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Acquisition</div>
<hr style="border: 0; border-top: 1px solid #555;" />
{{Div col|colwidth=20em}}
{{#invoke:ListLinks|fromDelimited|1={{{how_to_acquire}}}|delimiter=, }}
{{Div col end}}
}}
<!-- ========================== -->
<!--        SELL PRICE        -->
<!-- ========================== -->
{{#if:{{{sell_price|}}}|
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Sell Price</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
'''Sell Price''': {{{sell_price}}}<br />
</div>
}}
}}
<!-- ========================== -->
<!-- ========================== -->
<!--        CATEGORIES        -->
<!--        CATEGORIES        -->
<!-- ========================== -->
<!-- ========================== -->
[[Category:Consumables]]
<includeonly>[[Category:Consumable]]</includeonly>
{{#if:{{{crafting_profession|}}}|[[Category:Crafted Consumables]]}}
{{#if:{{{crafting_profession|}}}|[[Category:Crafted Consumable]]}}
{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}
{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}


</div>
<includeonly><div style="display:none">
[[Is soulbound::{{{is_soulbound|}}}]]
[[Category::{{{category|}}}]]
[[Execution time::{{{execution_time|}}}]]
[[Cooldown (minutes)::{{{cooldown_minutes|}}}]]
[[Cooldown (seconds)::{{{cooldown_seconds|}}}]]
[[Range::{{{range|}}}]]
[[Angle::{{{angle|}}}]]
[[Effect targets::{{{effect_targets|}}}]]
[[Duration (minutes)::{{{duration_minutes|}}}]]
[[Duration (seconds)::{{{duration_seconds|}}}]]
[[Heal minimum::{{{heal_min|}}}]]
[[Heal maximum::{{{heal_max|}}}]]
[[Trigger effect::{{{trigger_effect|}}}]]
[[Additional stats::{{{stat1_name|}}}]]
[[Additional stats::{{{stat2_name|}}}]]
[[Additional stats::{{{stat3_name|}}}]]
[[Additional stats::{{{stat4_name|}}}]]
[[Additional stats::{{{stat5_name|}}}]]
[[Additional stats::{{{stat6_name|}}}]]
[[Level requirement::{{{level_requirement|}}}]]
[[Class requirement::{{{class_requirement1}}}]]}}
[[Class requirement::{{{class_requirement2}}}]]}}
[[Class requirement::{{{class_requirement3}}}]]}}
{{#arraymap:{{{dropped_by|}}}|,|x|[[Dropped by::x]]}}
{{#arraymap:{{{sold_by|}}}|,|x|[[Sold by::x]]}}
[[Quest reward from::{{{quest_reward|}}}]]
[[Sell price (gold)::{{{sell_price_gold|}}}]]
[[Sell price (silver)::{{{sell_price_silver|}}}]]
[[Sell price (copper)::{{{sell_price_copper|}}}]]
[[Profession::{{{crafting_profession|}}}]]
{{#arraymap:{{{recipe_page|}}}|,|x|[[Recipe page::x]]}}
[[Crafting component name::{{{component1_name|}}}]]
[[Crafting component material::{{{component1_material|}}}]]
[[Crafting component material category::{{{component1_material_category|}}}]]
[[Crafting component name::{{{component2_name|}}}]]
[[Crafting component material::{{{component2_material|}}}]]
[[Crafting component material category::{{{component2_material_category|}}}]]
[[Crafting component name::{{{component3_name|}}}]]
[[Crafting component material::{{{component3_material|}}}]]
[[Crafting component material category::{{{component3_material_category|}}}]]
[[Crafting component name::{{{component4_name|}}}]]
[[Crafting component material::{{{component4_material|}}}]]
[[Crafting component material category::{{{component4_material_category|}}}]]
[[Crafting component name::{{{component5_name|}}}]]
[[Crafting component material::{{{component5_material|}}}]]
[[Crafting component material category::{{{component5_material_category|}}}]]
<span style="display:none">{{#default_form:Consumable}}</span>
</div></includeonly>

Revision as of 16:03, 11 June 2025

Consumable

Stats


Requirements