Jump to content

Template:RawComponent: Difference between revisions

From Drifters Almanac
No edit summary
No edit summary
Line 1: Line 1:
<div class="raw-component-template">
<div class="raw-component-template">
 
<includeonly>{{DISPLAYTITLE:{{{name}}}}}</includeonly>
'''{{{name|{{PAGENAME}}}}}'''
'''{{{name|{{PAGENAME}}}}}'''
 
{{#if:{{{tooltip_image|}}}|[[File:{{{tooltip_image}}}|thumb|{{{name}}} Tooltip]]}}
{{#if:{{{tooltip_image|}}}|
[[File:{{{tooltip_image}}}|thumb|{{{name}}} Tooltip]]
}}
<!-- ========================== -->
<!-- ========================== -->
<!--          MATERIAL INFO      -->
<!--          MATERIAL INFO      -->
Line 13: Line 10:
<div style="margin-left: 1em;">
<div style="margin-left: 1em;">
{{#if:{{{category|}}}|'''Category''': [[:Category:{{{category}}}|{{{category}}}]]<br />}}
{{#if:{{{category|}}}|'''Category''': [[:Category:{{{category}}}|{{{category}}}]]<br />}}
{{#if:{{{level|}}}|'''Component Level''': {{{level}}}<br />}}
{{#if:{{{component_level_min|}}}|'''Component Level''': {{{component_level_min}}}{{#if:{{{component_level_max|}}}|-{{{component_level_max}}} }}<br />}}
</div>
</div>
<!-- ========================== -->
<!-- ========================== -->
<!--       HOW TO ACQUIRE      -->
<!--     ACQUISITION          -->
<!-- ========================== -->
<!-- ========================== -->
{{#if:{{{how_to_acquire|}}}|
{{#if:{{{harvested_from|}}}|{{HarvestedFrom|harvested_from={{{harvested_from}}}}}
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Harvested From</div>
}}{{#if:{{{dropped_by|}}}|{{DroppedBy|dropped_by={{{dropped_by}}}}}
<hr style="border: 0; border-top: 1px solid #555;" />
}}{{#if:{{{sold_by|}}}|{{SoldBy|sold_by={{{sold_by}}}}}
{{#invoke:ListLinks|fromDelimited|1={{{how_to_acquire}}}|delimiter=, }}
}}{{#if:{{{quest_reward|}}}|{{QuestReward|quest_reward={{{quest_reward}}}}}
}}
}}
<!-- ========================== -->
<!-- ========================== -->
Line 32: Line 29:
}}
}}
<!-- ========================== -->
<!-- ========================== -->
<!--         SELL PRICE        -->
<!--       SELL PRICE        -->
<!-- ========================== -->
<!-- ========================== -->
{{#if:{{{sell_price|}}}|
{{#if:{{{sell_price_gold|}}}{{{sell_price_silver|}}}{{{sell_price_copper|}}}|
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Sell Price</div>
{{PriceDisplay
<hr style="border: 0; border-top: 1px solid #555;" />
|gold={{{sell_price_gold|}}}
<div style="margin-left: 1em;">
|silver={{{sell_price_silver|}}}
{{{sell_price}}}<br />
|copper={{{sell_price_copper|}}}
</div>
}}
}}
}}
<!-- ========================== -->
<!-- ========================== -->
Line 46: Line 43:
[[Category:Raw Components]]
[[Category:Raw Components]]
{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}
{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}
{{#if:{{{harvesting_profession|}}}|[[Category:{{{harvesting_profession}}} Components]]}}


</div>
<includeonly><div style="display:none">
[[Raw component category::{{{category|}}}]]
[[Component level min::{{{component_level_min|}}}]]
[[Component level max::{{{component_level_max|}}}]]
{{#arraymap:{{{harvested_from|}}}|,|x|[[Harvested from::x]]}}
{{#arraymap:{{{dropped_by|}}}|,|x|[[Dropped by::x]]}}
{{#arraymap:{{{sold_by|}}}|,|x|[[Sold by::x]]}}
[[Quest reward from::{{{quest_reward|}}}]]
{{#arraymap:{{{used_in_recipes|}}}|,|x|[[Used in recipes::x]]}}
[[Sell price (gold)::{{{sell_price_gold|}}}]]
[[Sell price (silver)::{{{sell_price_silver|}}}]]
[[Sell price (copper)::{{{sell_price_copper|}}}]]
<span style="display:none">{{#default_form:RawComponent}}</span>
</div></includeonly>

Revision as of 17:00, 20 June 2025

RawComponent

Material Info