Actions

Template

BuildingRefinerDisplayV2: Difference between revisions

From Dune Awakening DB

mNo edit summary
mNo edit summary
Line 1: Line 1:
<!-- ========================
<!-- Template:BuildingCard -->
    1) GET BUILDING DATA
    ======================== -->
{{#get_external_data: source=externaldb
|from=data_buildings
|data=
  Name=name,
  Tier=building_type,
  Description=description,
  PowerCost=power_cost,
  GeneratesPower=generates_power,
  StorageSlots=storage_slots,
  StorageVolume=storage_capacity,
  JourneyRequirement=journey_requirement,
  Health=health,
  PlacedWith=placed_with,
  AdditionalNotes=additional_notes,
  RecipeToBuild=recipe_to_build,
  ImageFile=image_file,
  Category1=category_1,
  Category2=category_2,
  Category3=category_3,
  YoutubeURL=youtube_video_link
|cache=yes
|filter=Name={{PAGENAME}}
}}
 
<!-- ========================
    2) STORE THE FIRST ROW
    ======================== -->
<!-- We expect exactly one row for the matching building.
    #for_external_table with format=plain and empty intro/outro
    ensures no visible table is output. -->
{{#for_external_table:
|format=plain
|intro=
|outro=
|separator=
|{{!}}-
  {{#vardefine: buildingName            | {{{Name}}} }}
  {{#vardefine: buildingTier            | {{{Tier}}} }}
  {{#vardefine: buildingDescription    | {{{Description}}} }}
  {{#vardefine: buildingJourneyReq      | {{{JourneyRequirement}}} }}
  {{#vardefine: buildingHealth          | {{{Health}}} }}
  {{#vardefine: buildingPowerCost      | {{{PowerCost}}} }}
  {{#vardefine: buildingGeneratesPower  | {{{GeneratesPower}}} }}
  {{#vardefine: buildingStorageSlots    | {{{StorageSlots}}} }}
  {{#vardefine: buildingStorageVolume  | {{{StorageVolume}}} }}
  {{#vardefine: buildingRecipeToBuild  | {{{RecipeToBuild}}} }}
  {{#vardefine: buildingPlacedWith      | {{{PlacedWith}}} }}
  {{#vardefine: buildingImageFile      | {{{ImageFile}}} }}
  {{#vardefine: buildingAdditionalNotes | {{{AdditionalNotes}}} }}
  {{#vardefine: buildingCategory3      | {{{Category3}}} }}
  {{#vardefine: buildingYoutubeURL      | {{{YoutubeURL}}} }}
}}
 
<!-- =========================
    3) RENDER THE BUILDING CARD
    ========================= -->
<div class="responsive-container">
<div class="responsive-container">
  <!-- LEFT COLUMN -->
   <div class="responsive-col col1">
   <div class="responsive-col col1">
     <div class="skin-pivot">
     <div class="skin-pivot">
Line 67: Line 8:
           <div class="dune-card-label">SCHEMATIC – BUILDABLE</div>
           <div class="dune-card-label">SCHEMATIC – BUILDABLE</div>
           <div class="dune-card-title">
           <div class="dune-card-title">
             <span class="icon">&#x1F6C8;</span> {{#var: buildingName }}
             <span class="icon">&#x1F6C8;</span> {{{Name}}}
           </div>
           </div>
           <div class="dune-card-image">
           <div class="dune-card-image">
             [[File:{{#var: buildingImageFile }}|200px
             [[File:{{{ImageFile}}}|200px|alt={{{Name}}}|style=max-width:100%;max-height:150px;object-fit:contain;border:2px solid #e2d3ae;border-radius:4px;padding:2px;background-color:#262626;]]
              |alt={{#var: buildingName }}
              |style=max-width:100%;max-height:150px;object-fit:contain;border:2px solid #e2d3ae;border-radius:4px;padding:2px;background-color:#262626;]]
           </div>
           </div>
           <div class="dune-card-description">
           <div class="dune-card-description">
             {{#var: buildingDescription }}
             {{{Description}}}
           </div>
           </div>
           <div class="dune-card-locked">
           <div class="dune-card-locked">
Line 82: Line 21:
             </div>
             </div>
             <div class="dune-card-locked-value">
             <div class="dune-card-locked-value">
               {{#var: buildingJourneyReq }}
               {{{JourneyRequirement}}}
             </div>
             </div>
           </div>
           </div>
Line 89: Line 28:
               <tr>
               <tr>
                 <th><span class="icon">&#127941;</span> Tier</th>
                 <th><span class="icon">&#127941;</span> Tier</th>
                 <td>{{#var: buildingTier }}</td>
                 <td>{{{Tier}}}</td>
               </tr>
               </tr>
               <tr>
               <tr>
Line 97: Line 36:
               <tr>
               <tr>
                 <th><span class="icon">&#9829;</span> Health</th>
                 <th><span class="icon">&#9829;</span> Health</th>
                 <td>{{#var: buildingHealth }}</td>
                 <td>{{{Health}}}</td>
               </tr>
               </tr>
               <tr>
               <tr>
                 <th><span class="icon">&#9889;</span> Power Cost</th>
                 <th><span class="icon">&#9889;</span> Power Cost</th>
                 <td>{{#var: buildingPowerCost }}</td>
                 <td>{{{PowerCost}}}</td>
               </tr>
               </tr>
               <tr>
               <tr>
                 <th><span class="icon">&#128230;</span> Inventory Slots</th>
                 <th><span class="icon">&#128230;</span> Inventory Slots</th>
                 <td>{{#var: buildingStorageSlots }}</td>
                 <td>{{{StorageSlots}}}</td>
               </tr>
               </tr>
               <tr>
               <tr>
                 <th><span class="icon">&#128451;</span> Volume Capacity</th>
                 <th><span class="icon">&#128451;</span> Volume Capacity</th>
                 <td>{{#var: buildingStorageVolume }}</td>
                 <td>{{{StorageVolume}}}</td>
               </tr>
               </tr>
               <tr>
               <tr>
                 <th><span class="icon">&#9883;</span> Components</th>
                 <th><span class="icon">&#9883;</span> Components</th>
                 <td>{{#var: buildingRecipeToBuild }}</td>
                 <td>{{{RecipeToBuild}}}</td>
               </tr>
               </tr>
               <tr>
               <tr>
                 <th><span class="icon">&#128296;</span> Placed With</th>
                 <th><span class="icon">&#128296;</span> Placed With</th>
                 <td>{{#var: buildingPlacedWith }}</td>
                 <td>{{{PlacedWith}}}</td>
               </tr>
               </tr>
             </table>
             </table>

Revision as of 22:37, 25 March 2025

SCHEMATIC – BUILDABLE
           🛈 {{{Name}}}
           [[File:{{{ImageFile}}}|200px|alt={{{Name}}}|style=max-width:100%;max-height:150px;object-fit:contain;border:2px solid #e2d3ae;border-radius:4px;padding:2px;background-color:#262626;]]
           {{{Description}}}
             🔒Locked Behind
             {{{JourneyRequirement}}}
🏅 Tier {{{Tier}}}
Primary Source Crafting
Health {{{Health}}}
Power Cost {{{PowerCost}}}
📦 Inventory Slots {{{StorageSlots}}}
🗃 Volume Capacity {{{StorageVolume}}}
Components {{{RecipeToBuild}}}
🔨 Placed With {{{PlacedWith}}}
CRAFTING
            Refining Recipes
           Below is a list of possible outputs, required inputs, and the time to refine.
           Times or power usage might vary based on external modifiers (e.g., upgrades).
           Error: Unknown database type .
Output Ingredients Craft Time
Additional Information
            Notes
VIDEO TUTORIALS
            Building Guide
           Coming Soon
RELATED BUILDINGS
           🏗 Other 
           Explore similar building types to expand your base capabilities.
           Error: Unknown database type .
Name Tier Description