Actions

Template

ResourcePage: Difference between revisions

From Dune Awakening DB

mNo edit summary
mNo edit summary
Line 59: Line 59:
|order by=Stations
|order by=Stations
|limit=5
|limit=5
|table=crafted_with_preview
}}
}}
<!-- For Crafted With section, after the table -->
<!-- For Crafted With section, after the table -->
Line 106: Line 107:
|where=output_item='{{PAGENAME}}'
|where=output_item='{{PAGENAME}}'
|order by=station
|order by=station
|table=crafted_from_preview
}}
}}
</div>
</div>
Line 122: Line 124:
</div>
</div>
<div class="responsive-col col3">
<div class="responsive-col col3">
<div class="skin-pivot">
    <!-- Building Guide Video Card with Notes integrated -->
<div class="dune-card">
    <div class="skin-pivot">
<div class="dune-card-decoration"></div>
      <div class="dune-card">
<div class="dune-card-inner">
        <div class="dune-card-decoration"></div>
{{#get_external_data:
        <div class="dune-card-inner">
source=externaldb
          <div class="dune-card-label">VIDEO TUTORIALS</div>
|from=data_item_videos
          <div class="dune-card-title"><span class="icon">&#9654;</span> Building Guide</div>
|data=VideoID=video_id,Context=context,Featured=featured
          <div style="padding:3px;"></div>
|cache=yes
          <div class="dune-card-video" style="border:2px solid #e2d3ae;border-radius:4px;padding:2px;background-color:#262626;">  
|where=internal_name='{{PAGENAME}}'
            {{#if:{{{YoutubeEmbed|}}}
|limit=1
    | {{{YoutubeEmbed}}}
}}
    | <youtube id="r8lxVDqoHLQ" width="300" height="168" />}}
<div class="dune-card-label">VIDEO TUTORIALS</div>
         
<div class="dune-card-title"><span class="icon"></span> Resource Guide</div>
          <div style="clear:both; padding:10px;"></div>
{{#if:{{{VideoID|}}}|<div class="dune-card-video" style="border:2px solid #e2d3ae;border-radius:4px;padding:2px;background-color:#262626;"><youtube>{{#var:VideoID}}</youtube></div>|{{#if:{{#var:GuideLink}}|<div class="dune-card-video" style="border:2px solid #e2d3ae;border-radius:4px;padding:2px;background-color:#262626;"><youtube>{{#var:GuideLink}}</youtube></div>|<div class="dune-card-video" style="border:2px solid #e2d3ae;border-radius:4px;padding:2px;background-color:#262626;"><youtube>r8lxVDqoHLQ</youtube></div>}}
         
<div style="clear:both; padding:10px;"></div>
          <!-- Notes content integrated here -->
<div class="dune-card-title"><span class="icon"></span> Notes</div>
          <div class="dune-card-title"><span class="icon">&#8801;</span> Notes</div>
<div style="padding:3px;"></div>
          <div style="padding:3px;"></div>
<div class="dune-card-description">{{#invoke:DataTableParserV2|iconize|{{#var:AdditionalNotes}}}}</div>
          <div class="dune-card-description">{{#invoke:DataTableParserV2|iconize|{{#var:AdditionalNotes}}}}</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{{#tag:script|
<nowiki>
<div class="recipe-popup-overlay">
  <div class="recipe-popup">
    <div class="popup-header">
      <h3 class="popup-title">{{title}}</h3>
      <button class="popup-close">×</button>
    </div>
    <div class="popup-content">
      <div class="popup-search-container">
        <input type="text" class="popup-search-input" placeholder="Search recipes…">
      </div>
      <div class="popup-table-wrapper">
        <table class="infobox-dune-standard-table recipe-popup-table">
          <thead>
            <tr class="tr-dark">
              <th>Item Created</th><th>Resources Needed</th><th>Stations</th>
              <th>Water&nbsp;(mL)</th><th>Craft&nbsp;Time</th><th>Schematic</th>
            </tr>
          </thead>
          <tbody>{{tableRows}}</tbody>
        </table>
      </div>
    </div>
  </div>
</div>
</div>
<script id="recipePopupTemplate" type="text/template">
</nowiki>
<div class="recipe-popup-overlay"><div class="recipe-popup"><div class="popup-header"><h3 class="popup-title">{{title}}</h3><button class="popup-close">×</button></div><div class="popup-content"><div class="popup-search-container"><input type="text" class="popup-search-input" placeholder="Search recipes..."></div><div class="popup-table-wrapper"><table class="infobox-dune-standard-table recipe-popup-table"><thead><tr class="tr-dark"><th>Item Created</th><th>Resources Needed</th><th>Stations</th><th>Water (mL)</th><th>Craft Time</th><th>Schematic</th></tr></thead><tbody>{{tableRows}}</tbody></table></div></div></div></div>
|type="text/template" id="recipePopupTemplate"}}
</script>

Revision as of 17:34, 3 June 2025

{{{ItemClass}}} - {{{ItemSubclass}}}
Resource Information
[[File:{{{ImageLink}}}|200px|alt={{{Name}}}]]
{{{Description}}}
[[File:{{{IconLink}}}|16px]] Tier{{{Tier}}}
Rarity{{{Rarity}}}
🏛 Faction{{{Faction}}}
Weight{{{Weight}}} kg
📦 Max Stacks{{{MaxStacks}}}
💰 Base Vendor Price{{{BaseVendorPrice}}} Solaris
XP per Harvest{{{XPPerHarvest}}}


CRAFTING
Crafting Recipes

Crafted With

Items that require {{{Name}}} as an ingredient
<input type="text" id="craftedWithSearch" class="recipe-search-input" placeholder="Search recipes...">
<thead></thead>

<tbody></tbody>

Item CreatedResources NeededStations
<button class="dune-action-button view-all-crafted-with" data-resource="ResourcePage">📋 View All Recipes</button>

Crafted From

Recipes that produce {{{Name}}}
<input type="text" id="craftedFromSearch" class="recipe-search-input" placeholder="Search recipes...">
<thead></thead>

<tbody></tbody>

Item CreatedResources NeededStations
<button class="dune-action-button view-all-crafted-from" data-resource="ResourcePage">📋 View All Recipes</button>
VIDEO TUTORIALS
Building Guide
Notes
{{{AdditionalNotes}}}

<script type="text/template" id="recipePopupTemplate"> <div class="recipe-popup-overlay"> <div class="recipe-popup"> <div class="popup-header"> <h3 class="popup-title">{{title}}</h3> <button class="popup-close">×</button> </div> <div class="popup-content"> <div class="popup-search-container"> <input type="text" class="popup-search-input" placeholder="Search recipes…"> </div> <div class="popup-table-wrapper"> <table class="infobox-dune-standard-table recipe-popup-table"> <thead> <tr class="tr-dark"> <th>Item Created</th><th>Resources Needed</th><th>Stations</th> <th>Water (mL)</th><th>Craft Time</th><th>Schematic</th> </tr> </thead> <tbody>{{tableRows}}</tbody> </table> </div> </div> </div> </div> </script>