Jump to content

Template:ResourceNode: Difference between revisions

From Drifters Almanac
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Template:ResourceNode -->
<div class="resource-node-template">
<div style="display: flex; flex-wrap: wrap; gap: 1em; margin-bottom: 1em;">
<includeonly>{{DISPLAYTITLE:{{{name}}}}}</includeonly>
 
'''{{{name|{{PAGENAME}}}}}'''
<!-- Image box -->
{{#if:{{{node_image|}}}|[[File:{{{node_image}}}|thumb|{{{name|}}}]]|[[File:Image_Placeholder.png|thumb|Image Needed]]}}
<div style="flex: 1 1 300px; max-width: 300px;">
<!--
{{#if: {{{node image file|}}}
==========================
| [[File:{{{node image file}}}|frameless|center|300px]]
        NODE INFO       
==========================
--><div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Node Info</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
{{#if:{{{harvesting_profession|}}}|'''Harvesting Profession: [[{{{harvesting_profession}}}]]'''<br />
}}{{#if:{{{harvesting_level|}}}|'''Harvesting Level:''' {{{harvesting_level}}}<br />
}}{{#if:{{{tool_required|}}}|'''Tool Required: [[{{{tool_required}}}]]'''<br />
}}{{#if:{{{location|}}}|'''Location:''' {{#invoke:ListComponents|fromDelimited|1={{{location}}}|delimiter=, }}<br />
}}
}}
</div><!--
==========================
      POSSIBLE YIELD     
==========================
-->{{#if:{{{possible_yield|}}}|
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Possible Yield</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
{{#invoke:ListLinks|fromDelimited|1={{{possible_yield}}}|delimiter=, }}
</div>
</div>
 
}}<!--
<!-- Info box -->
==========================
<div style="flex: 2 1 400px; background-color: #222; padding: 1em; border: 1px solid #555; border-radius: 8px;">
        CATEGORIES       
{| class="wikitable" style="width: 100%; background-color: #111;"
==========================
! colspan="2" style="text-align: center;" | Node Information
--><includeonly>[[Category:Resource Nodes]]
|-
[[Category:Harvesting]]</includeonly>
! Location
{{#if:{{{harvesting_profession|}}}|[[Category:{{{harvesting_profession}}} Nodes]]}}
| {{{location|Unknown}}}
|-
! Harvesting Profession
| [[Category:{{{harvesting profession|Unknown}}} Nodes|{{{harvesting profession}}}]] [[{{{harvesting profession}}}]]
|-
! Harvesting Level
| {{{harvesting level|Any}}}
|-
! Tool Required
| {{{tool required|—}}}
|}
</div>
</div>
</div>
<!-- Possible Yield -->
{{#if: {{{possible yield|}}}
|== Possible Yield ==
{{{possible yield}}}
}}


[[Category:Resource Nodes]]
<includeonly><div style="display:none">
[[Category:Harvesting]]
[[Resource node::{{{name|}}}]]
[[Harvesting profession::{{{harvesting_profession|}}}]]
[[Profession level requirement::{{{harvesting_level|}}}]]
[[Tool type::{{{tool_required|}}}]]
{{#arraymap:{{{location|}}}|,|x|[[Location::x]]}}
{{#arraymap:{{{possible_yield|}}}|,|x|[[Harvest yield::x]]}}
<span style="display:none">{{#default_form:ResourceNode}}</span>
</div></includeonly>

Latest revision as of 21:13, 25 June 2025

ResourceNode

Image Needed
Node Info