Actions

Template

BuildingRefinerDisplayV2: Difference between revisions

From Dune Awakening DB

mNo edit summary
mNo edit summary
Line 31: Line 31:
}}
}}
{{#for_external_table:|{{#vardefine:Name|{{{Name}}}}}{{#vardefine:BuildingType|{{{BuildingType}}}}}{{#vardefine:Description|{{{Description}}}}}{{#vardefine:PowerCost|{{{PowerCost}}}}}{{#vardefine:GeneratesPower|{{{GeneratesPower}}}}}{{#vardefine:StorageSlots|{{{StorageSlots}}}}}{{#vardefine:StorageCapacity|{{{StorageCapacity}}}}}{{#vardefine:SchematicRequirement|{{{SchematicRequirement}}}}}{{#vardefine:JourneyRequirement|{{{JourneyRequirement}}}}}{{#vardefine:Health|{{{Health}}}}}{{#vardefine:PlacedWith|{{{PlacedWith}}}}}{{#vardefine:AdditionalNotes|{{{AdditionalNotes}}}}}{{#vardefine:RecipeToBuild|{{{RecipeToBuild}}}}}{{#vardefine:ImageFile|{{{ImageFile}}}}}{{#vardefine:IconFile|{{{IconFile}}}}}{{#vardefine:Category3|{{{Category3}}}}}{{#vardefine:YoutubeVideoLink|{{{YoutubeVideoLink}}}}} }}
{{#for_external_table:|{{#vardefine:Name|{{{Name}}}}}{{#vardefine:BuildingType|{{{BuildingType}}}}}{{#vardefine:Description|{{{Description}}}}}{{#vardefine:PowerCost|{{{PowerCost}}}}}{{#vardefine:GeneratesPower|{{{GeneratesPower}}}}}{{#vardefine:StorageSlots|{{{StorageSlots}}}}}{{#vardefine:StorageCapacity|{{{StorageCapacity}}}}}{{#vardefine:SchematicRequirement|{{{SchematicRequirement}}}}}{{#vardefine:JourneyRequirement|{{{JourneyRequirement}}}}}{{#vardefine:Health|{{{Health}}}}}{{#vardefine:PlacedWith|{{{PlacedWith}}}}}{{#vardefine:AdditionalNotes|{{{AdditionalNotes}}}}}{{#vardefine:RecipeToBuild|{{{RecipeToBuild}}}}}{{#vardefine:ImageFile|{{{ImageFile}}}}}{{#vardefine:IconFile|{{{IconFile}}}}}{{#vardefine:Category3|{{{Category3}}}}}{{#vardefine:YoutubeVideoLink|{{{YoutubeVideoLink}}}}} }}
<!-- Main container -->
<!-- Main container with reduced gaps for better wiki fit -->
<div class="responsive-container">
<div class="responsive-container">


   <!-- Left Column -->
   <!-- Left Column -->
<div class="responsive-col col1">
  <div class="responsive-col col1">
  <div class="skin-pivot">
    <div class="skin-pivot">
    <div class="dune-card">
      <div class="dune-card">
      <div class="dune-card-decoration"></div>
        <div class="dune-card-decoration"></div>
      <div class="dune-card-inner">
        <div class="dune-card-inner">
        <div class="dune-card-label">SCHEMATIC – BUILDABLE</div>
          <div class="dune-card-label">SCHEMATIC – BUILDABLE</div>
        <div class="dune-card-title"><span class="icon">&#x1F6C8;</span> Building Information</div>
          <div class="dune-card-title"><span class="icon">&#x1F6C8;</span> Building Information</div>
<div style="padding:3px;"></div>
          <div style="padding:3px;"></div>
        <!-- Image Section -->
         
        <div class="dune-card-image" style="text-align: center;">
          <!-- Image Section -->
          <div class="has-border">
          <div class="dune-card-image" style="text-align: center;">
            {{#if:{{#var:ImageFile}}
            <div class="has-border">
              | [[File:{{#var:ImageFile}}|200px|alt={{#var:Name}}]]
              {{#if:{{#var:ImageFile}}
              | [[File:Placeholder.png|200px|alt=No image available]]
                | [[File:{{#var:ImageFile}}|200px|alt={{#var:Name}}]]
             }}
                | [[File:Placeholder.png|200px|alt=No image available]]
              }}
            </div>
          </div>
          <div style="padding:3px;"></div>
         
          <!-- Description -->
          <div class="dune-card-description">{{#invoke:DataTableParserV2|iconize|{{#var:Description}}}}</div>
         
          <!-- Locked Behind -->
          <div class="dune-card-locked">
             <div class="dune-card-locked-label"><span class="dune-card-locked-icon">&#128274;</span>Locked Behind</div>
            <div class="dune-card-locked-value">{{#var:JourneyRequirement}}</div>
           </div>
           </div>
        </div>
<div style="padding:3px;"></div>
        <!-- Description -->
        <div class="dune-card-description">{{#invoke:DataTableParserV2|iconize|{{#var:Description}}}}</div>
<!-- Locked Behind -->
        <div class="dune-card-locked">
          <div class="dune-card-locked-label"><span class="dune-card-locked-icon">&#128274;</span>Locked Behind
          </div><div class="dune-card-locked-value">{{#var:JourneyRequirement}}</div>
        </div>


        <!-- Table -->
          <!-- Table -->
        <div class="dune-table-wrapper">
          <div class="dune-table-wrapper">
          <table class="infobox-dune-two-column">
            <table class="infobox-dune-two-column">
            <tr><th><span class="icon">[[File:BuildingTypeIcon.png]]</span> Building Type</th><td>{{#var:BuildingType}}</td></tr>
              <tr><th><span class="icon">[[File:BuildingTypeIcon.png]]</span> Building Type</th><td>{{#var:BuildingType}}</td></tr>
            <tr><th><span class="icon">[[File:BuildingHealthIcon.png]]</span> Health</th><td>{{#var:Health}}</td></tr>
              <tr><th><span class="icon">[[File:BuildingHealthIcon.png]]</span> Health</th><td>{{#var:Health}}</td></tr>
            <tr><th><span class="icon">[[File:BuildingPowerIcon.png]]</span> Power Cost</th><td>{{#var:PowerCost}}</td></tr>
              <tr><th><span class="icon">[[File:BuildingPowerIcon.png]]</span> Power Cost</th><td>{{#var:PowerCost}}</td></tr>
            <tr><th><span class="icon">[[File:BuildingInventoryIcon.png]]</span> Inventory Slots</th><td>{{#var:StorageSlots}}</td></tr>
              <tr><th><span class="icon">[[File:BuildingInventoryIcon.png]]</span> Inventory Slots</th><td>{{#var:StorageSlots}}</td></tr>
            <tr><th><span class="icon">[[File:BuildingCapacityIcon.png]]</span> Capacity</th><td>{{#var:StorageCapacity}}</td></tr>
              <tr><th><span class="icon">[[File:BuildingCapacityIcon.png]]</span> Capacity</th><td>{{#var:StorageCapacity}}</td></tr>
            <tr><th><span class="icon">[[File:BuildingRecipeIcon.png]]</span> Recipe</th><td>{{#invoke:DataTableParserV2|iconize|{{#var:RecipeToBuild}}}}</td></tr>
              <tr><th><span class="icon">[[File:BuildingRecipeIcon.png]]</span> Recipe</th><td>{{#invoke:DataTableParserV2|iconize|{{#var:RecipeToBuild}}}}</td></tr>
            <tr><th><span class="icon">[[File:BuildingPlacedWithIcon.png]]</span> Placed With</th><td>{{#invoke:DataTableParserV2|iconize|{{#var:PlacedWith}}}}</td></tr>
              <tr><th><span class="icon">[[File:BuildingPlacedWithIcon.png]]</span> Placed With</th><td>{{#invoke:DataTableParserV2|iconize|{{#var:PlacedWith}}}}</td></tr>
           </table>
            </table>
           </div>
         </div>
         </div>
       </div>
       </div>
     </div>
     </div>
   </div>
   </div>
</div>


   <!-- Middle Column -->
   <!-- Middle Column -->
   <div class="responsive-col col2">
   <div class="responsive-col col2">
     <!-- Refining Recipes Card -->
     <!-- Refining Recipes Card -->
     <div class="skin-pivot" style="margin-bottom:20px;">
     <div class="skin-pivot">
       <div class="dune-card">
       <div class="dune-card">
         <div class="dune-card-decoration"></div>
         <div class="dune-card-decoration"></div>
Line 88: Line 90:
           <div class="dune-card-label">CRAFTING</div>
           <div class="dune-card-label">CRAFTING</div>
           <div class="dune-card-title"><span class="icon">&#9883;</span> Refining Recipes</div>
           <div class="dune-card-title"><span class="icon">&#9883;</span> Refining Recipes</div>
<div style="padding:3px;"></div>
          <div style="padding:3px;"></div>
           <div class="dune-card-description">Below is a list of possible outputs, required inputs, and the time to refine.</div>
           <div class="dune-card-description">Below is a list of possible outputs, required inputs, and the time to refine.</div>
            
            
Line 101: Line 103:
             }}
             }}
             <div class="dune-table-wrapper" style="overflow-x: auto;">
             <div class="dune-table-wrapper" style="overflow-x: auto;">
               <table class="infobox-dune-standard-table" style="width:100%; table-layout:fixed;">
               <table class="infobox-dune-standard-table">
                 <tr class="tr-dark">
                 <tr class="tr-dark">
                   <th style="text-align:left; width:30%;">Output</th>
                   <th style="text-align:left; width:30%;">Output</th>
Line 116: Line 118:
               </table>
               </table>
             </div>
             </div>
           </div>        
           </div>
           <div class="dune-card-related" style="margin-top:20px;">
         
            <div class="dune-card-title"><span class="icon">&#x1F3D7;</span> Other {{#var:Category3}}</div>
           <div style="clear:both; padding:10px;"></div>
<div style="padding:3px;"></div>
         
            <div class="dune-card-description">Explore similar building types to expand your base capabilities.</div>
          <!-- Other Refiners content integrated here -->
            <div class="dune-table-wrapper">
          <div class="dune-card-title"><span class="icon">&#x1F3D7;</span> Other {{#var:Category3}}</div>
              {{#get_external_data:
          <div style="padding:3px;"></div>
                source=externaldb
          <div class="dune-card-description">Explore similar building types to expand your base capabilities.</div>
                |from=data_buildings
          <div class="dune-table-wrapper">
                |data=Name=name,BuildingType=building_type,Category3=category_3
            {{#get_external_data:
                |cache=yes
              source=externaldb
                |where=category_3='{{#var:Category3}}'
              |from=data_buildings
              |data=Name=name,BuildingType=building_type,Category3=category_3
              |cache=yes
              |where=category_3='{{#var:Category3}}'
            }}
            <table class="infobox-dune-standard-table">
              <tr class="tr-dark">
                <th style="text-align:left;">Name</th>
                <th style="text-align:left;">Tier</th>
                <th style="text-align:left;">Description</th>
              </tr>
              {{#for_external_table:|
                <tr>
                  <td style="text-align:left;">{{{Name}}}</td>
                  <td style="text-align:left;">{{{BuildingType}}}</td>
                  <td style="text-align:left;">{{{Category3}}}</td>
                </tr>
               }}
               }}
              <table class="infobox-dune-standard-table" style="width:100%">
            </table>
                <tr class="tr-dark">
                  <th style="text-align:left;">Name</th>
                  <th style="text-align:left;">Tier</th>
                  <th style="text-align:left;">Description</th>
                </tr>
                {{#for_external_table:|
                  <tr>
                    <td style="text-align:left;">{{{Name}}}</td>
                    <td style="text-align:left;">{{{BuildingType}}}</td>
                    <td style="text-align:left;">{{{Category3}}}</td>
                  </tr>
                }}
              </table>
            </div>
           </div>
           </div>
         </div>
         </div>
Line 159: Line 163:
           <div class="dune-card-label">VIDEO TUTORIALS</div>
           <div class="dune-card-label">VIDEO TUTORIALS</div>
           <div class="dune-card-title"><span class="icon">&#9654;</span> Building Guide</div>
           <div class="dune-card-title"><span class="icon">&#9654;</span> Building Guide</div>
           <div class="dune-card-video" style="border:2px solid #e2d3ae;border-radius:4px;padding:2px;background-color:#262626;"> {{#if:{{{YoutubeEmbed|}}}
          <div style="padding:3px;"></div>
           <div class="dune-card-video" style="border:2px solid #e2d3ae;border-radius:4px;padding:2px;background-color:#262626;">  
            {{#if:{{{YoutubeEmbed|}}}
               | {{{YoutubeEmbed}}}
               | {{{YoutubeEmbed}}}
               | <youtube>r8lxVDqoHLQ</youtube>}}
               | <youtube>r8lxVDqoHLQ</youtube>}}
           </div>
           </div>
         
          <div style="clear:both; padding:10px;"></div>
            
            
           <!-- Notes content integrated here -->
           <!-- Notes content integrated here -->
           <div class="dune-card-notes" style="margin-top:20px;">
           <div class="dune-card-title"><span class="icon">&#8801;</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>
Line 174: Line 181:
   </div>
   </div>
</div>
</div>
}}

Revision as of 00:23, 7 April 2025


SCHEMATIC – BUILDABLE
🛈 Building Information
             Small Ore Refinery
Processes raw Copper Ore, Carbon Ore, and Iron Ore into Refined Resource. Can also create Steel Ingots from Iron and Carbon.
🔒Locked Behind
Building TypeFunctional
Health15
Power Cost5
Inventory Slots
Capacity
Recipe Salvaged Metal x 90
Placed WithContruction Tool
CRAFTING
Refining Recipes
Below is a list of possible outputs, required inputs, and the time to refine.
           The query SELECT  name,time_to_smelt,recipe_to_smelt,refiner_needed  FROM `data_refining_recipes`    WHERE refiner_needed='Small Ore Refinery'   is invalid (Error 1146: Table 'dunedbco_ddb.data_refining_recipes' doesn't exist

Function: EDConnectorRdbms::fetch Query: SELECT name,time_to_smelt,recipe_to_smelt,refiner_needed FROM `data_refining_recipes` WHERE refiner_needed='Small Ore Refinery' ).

Output Recipe Craft Time
{{{Output}}} {{{Recipe}}} {{{Time}}}
🏗 Other Refineries
Explore similar building types to expand your base capabilities.
Name Tier Description
Small Ore Refinery Functional Refineries
VIDEO TUTORIALS
Building Guide
Notes

}}