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">
== Usage == Copy/Paste from "{{Consumable" to the closing brackets "}}" and fill in the variables


'''{{{name|{{PAGENAME}}}}}'''


{{Consumable
[[File:{{{tooltip_image|ConsumablePlaceholder.png}}}|thumb]]
|item name=
 
|tooltip image file=
<!-- ========================== -->
|category=HealthPotion
<!--          STATS          -->
|execution=
<!-- ========================== -->
|cooldown=
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Stats</div>
|duration=
<hr style="border: 0; border-top: 1px solid #555;" />
|effects value 1=
<div style="margin-left: 1em;">
|effects category 1=
{{#if:{{{category|}}}|'''Category''': [[:Category:{{{category}}}|{{{category}}}]]<br />
|effects value 2=
}}{{#if:{{{execution_time|}}}|'''Execution Time''': {{{execution_time}}}<br />
|effects category 2=
}}{{#if:{{{cooldown|}}}|'''Cooldown''': {{{cooldown}}}<br />
|effects value 3=
}}{{#if:{{{movement_penalty|}}}|'''Movement Penalty''': {{{movement_penalty}}}<br />
|effects category 3=
}}{{#if:{{{range|}}}|'''Range''': {{{range}}}<br />
|effects value 4=
}}{{#if:{{{angle|}}}|'''Angle''': {{{angle}}}&deg;<br />
|effects category 4=
}}{{#if:{{{effect_target|}}}|'''Target''': {{{effect_target}}}<br />
|effects value 5=
}}{{#if:{{{effect_duration|}}}|'''Duration''': {{{effect_duration}}}<br />
|effects category 5=
|level requirement=
|how to acquire=*[[Shoat|Shoat (Newhaven Valley)]]
|recipe=
|crafting profession=
|crafting components=
|sale price=75 Copper
}}
}}
</div>


-->
<!-- ========================== -->
[[File:{{{tooltip image file}}}|thumb|{{{item name}}} Tooltip]]
<!--        EFFECTS          -->
<!-- ========================== -->
{{#if:{{{effect_value|}}}|
<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;">
{{{effect_value}}}
</div>
}}


<h2> Stats </h2>
<!-- ========================== -->
:Category: [[:Category:{{{category}}}|{{{category}}}]]
<!--    TRIGGERED EFFECTS      -->
{{#if: {{{level requirement}}}
<!-- ========================== -->
|:Level Requirement: {{{level requirement}}}
{{#if:{{{trigger_type|}}}{{{trigger_chance|}}}{{{trigger_effect|}}}|
<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;">
'''Triggered {{trigger_type}}'''<br />
{{#if:{{{trigger_chance|}}}|{{{trigger_chance}}} chance on hit to apply<br />}}
{{#if:{{{trigger_effect|}}}|{{{trigger_effect}}} }}
{{#if:{{{trigger_duration|}}}|for {{{trigger_duration}}} }}
</div>
}}
}}
{{#if: {{{execution}}}
 
|:Execution Time: {{{execution}}}
<!-- ========================== -->
<!--        REQUIREMENTS      -->
<!-- ========================== -->
{{#if:{{{level_requirement|}}}{{{class_requirement1|}}}|
<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_requirement1|}}}|'''Class Requirement''': [[{{{class_requirement1}}}]]}}{{#if:{{{class_requirement2|}}}|, [[{{{class_requirement2}}}]]}}{{#if:{{{class_requirement3|}}}|, [[{{{class_requirement3}}}]]}}
</div>
}}
}}
{{#if: {{{cooldown}}}
 
|:Cooldown Time: {{{cooldown}}}
<!-- ========================== -->
<!--    ADDITIONAL STATS      -->
<!-- ========================== -->
{{#if:{{{stat1_name|}}}{{{stat2_name|}}}{{{stat3_name|}}}{{{stat4_name|}}}{{{stat5_name|}}}{{{stat6_name|}}}|
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Additional Stats</div>
<hr style="border: 0; border-top: 1px solid #555;" />
{{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|}}}
}}
}}
{{#if: {{{duration}}}
|:Duration: {{{duration}}}
}}
}}
{{#if: {{{effects value 1}}}
 
|<h2> Effects </h2>
<!-- ========================== -->
:{{{effects value 1}}} {{{effects category 1}}}[[Category:{{{effects category 1}}}]]
<!--          FLAVOR TEXT      -->
}}{{#if: {{{effects value 2}}}
<!-- ========================== -->
|:{{{effects value 2}}} {{{effects category 2}}}[[Category:{{{effects category 2}}}]]
{{#if:{{{flavor_text|}}}|
}}{{#if: {{{effects value 3}}}
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Flavor Text</div>
|:{{{effects value 3}}} {{{effects category 3}}}[[Category:{{{effects category 3}}}]]
<hr style="border: 0; border-top: 1px solid #555;" />
}}{{#if: {{{effects value 4}}}
<div style="color: #4ec0ff; font-style: italic; margin-left: 1em;">{{{flavor_text}}}</div>
|:{{{effects value 4}}} {{{effects category 4}}}[[Category:{{{effects category 4}}}]]
}}{{#if: {{{effects value 5}}}
|:{{{effects value 5}}} {{{effects category 5}}}[[Category:{{{effects category 5}}}]]
}}
}}
{{#if: {{{recipe}}}
 
|<h2> Recipe </h2>
<!-- ========================== -->
{{{recipe}}} using:
<!--      CRAFTING INFO      -->
{{{crafting components}}}
<!-- ========================== -->
{{#if: {{{crafting profession}}}
{{CraftingDetails
|[[Category:{{{crafting profession}}}]]
| crafting_profession = {{{crafting_profession|}}}
| recipe_page        = {{{recipe_page|}}}
 
| component1_name              = {{{component1_name|}}}
| component1_material          = {{{component1_material|}}}
| component1_material_category = {{{component1_material_category|}}}
 
| component2_name              = {{{component2_name|}}}
| component2_material          = {{{component2_material|}}}
| component2_material_category = {{{component2_material_category|}}}
 
| component3_name              = {{{component3_name|}}}
| component3_material          = {{{component3_material|}}}
| component3_material_category = {{{component3_material_category|}}}
 
| component4_name              = {{{component4_name|}}}
| component4_material          = {{{component4_material|}}}
| component4_material_category = {{{component4_material_category|}}}
 
| component5_name              = {{{component5_name|}}}
| component5_material          = {{{component5_material|}}}
| 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}}
}}
}}
{{#if: {{{how to acquire}}}
 
|<h2> How to Acquire </h2>
<!-- ========================== -->
{{{how to acquire}}}
<!--        SALE PRICE        -->
<!-- ========================== -->
{{#if:{{{sale_price|}}}|
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Sale Price</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
'''Sale Price''': {{{sale_price}}}<br />
</div>
}}
}}
{{#if: {{{sale price}}}
 
|<h2> Sale Price </h2>
<!-- ========================== -->
<!-- X Gold Y Silver Z Copper -->
<!--        CATEGORIES        -->
:{{{sale price}}}
<!-- ========================== -->
}}
[[Category:Consumables]]
[[Category:Consumable]][[Category:{{{category}}}]]
{{#if:{{{crafting_profession|}}}|[[Category:Crafted Consumables]]}}
{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}
 
</div>

Revision as of 17:16, 6 May 2025