BuildingRefinerDisplayV2: Difference between revisions
From Dune Awakening DB
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
< | <!-- Begin Building Card Template using externaldata directly --> | ||
<!-- Fetch building data from data_buildings and filter by the current page name --> | |||
{{#get_external_data: source=externaldb | {{#get_external_data: source=externaldb | ||
|from=data_buildings | |from=data_buildings | ||
| | |data=name=Name,tier=Tier,description=Description,journey_requirement=JourneyRequirement,health=Health,power_cost=PowerCost,generates_power=GeneratesPower,storage_slots=StorageSlots,storage_volume=StorageVolume,recipe_to_build=RecipeToBuild,placed_with=PlacedWith,image_file=ImageFile,additional_notes=AdditionalNotes,youtube_url=YoutubeURL,category1=Category1,category2=Category2,category3=Category3 | ||
|cache=yes | |||
|filter=Name={{PAGENAME}} | |||
}} | }} | ||
< | <!-- Process the externaldata output and assign parameters. | ||
(This step assumes the externaldata call returns only the matching row.) | |||
If you need additional filtering logic, consider wrapping the #for_external_table call. --> | |||
{{#for_external_table:| | |||
{{!}}- | |||
{{!}} {{{Name}}} | |||
{{!}} {{{Tier}}} | |||
{{!}} {{{Description}}} | |||
{{!}} {{{JourneyRequirement}}} | |||
{{!}} {{{Health}}} | |||
{{!}} {{{PowerCost}}} | |||
{{!}} {{{GeneratesPower}}} | |||
{{!}} {{{StorageSlots}}} | |||
{{!}} {{{StorageVolume}}} | |||
{{!}} {{{RecipeToBuild}}} | |||
{{!}} {{{PlacedWith}}} | |||
{{!}} {{{ImageFile}}} | |||
{{!}} {{{AdditionalNotes}}} | |||
{{!}} {{{YoutubeURL}}} | |||
{{!}} {{{Category1}}} | |||
{{!}} {{{Category2}}} | |||
{{ | {{!}} {{{Category3}}} | ||
}} | |||
<div class="responsive-container"> | |||
{{ | |||
< | |||
<div class="responsive-col | <div class="responsive-col col1"> | ||
< | <div class="skin-pivot"> | ||
<div class=" | <div class="dune-card"> | ||
<div class="dune-card-decoration"></div> | |||
<div class="dune-card-inner"> | |||
<div class="dune-card-label">SCHEMATIC – BUILDABLE</div> | |||
<div class="dune-card-title"><span class="icon">🛈</span> {{{Name}}}</div> | |||
<div class="dune-card-image"> | |||
[[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;]] | |||
</div> | |||
<div class="dune-card-description">{{{Description}}}</div> | |||
<div class="dune-card-locked"> | |||
<div class="dune-card-locked-label"> | |||
<span class="dune-card-locked-icon">🔒</span>Locked Behind | |||
</div> | |||
<div class="dune-card-locked-value">{{{JourneyRequirement}}}</div> | |||
</div> | |||
<div class="dune-card-infobox"> | |||
<table class="infobox-dune"> | |||
<tr> | |||
<th><span class="icon">🏅</span> Tier</th> | |||
<td>{{{Tier}}}</td> | |||
</tr> | |||
<tr> | |||
<th><span class="icon">⚙</span> Primary Source</th> | |||
<td>Crafting</td> | |||
</tr> | |||
<tr> | |||
<th><span class="icon">♥</span> Health</th> | |||
<td>{{{Health}}}</td> | |||
</tr> | |||
<tr> | |||
<th><span class="icon">⚡</span> Power Cost</th> | |||
<td>{{{PowerCost}}}</td> | |||
</tr> | |||
<tr> | |||
<th><span class="icon">📦</span> Inventory Slots</th> | |||
<td>{{{StorageSlots}}}</td> | |||
</tr> | |||
<tr> | |||
<th><span class="icon">🗃</span> Volume Capacity</th> | |||
<td>{{{StorageVolume}}}</td> | |||
</tr> | |||
<tr> | |||
<th><span class="icon">⚛</span> Components</th> | |||
<td>{{{RecipeToBuild}}}</td> | |||
</tr> | |||
<tr> | |||
<th><span class="icon">🔨</span> Placed With</th> | |||
<td>{{{PlacedWith}}}</td> | |||
</tr> | |||
</table> | |||
</div> | |||
</div> | |||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
<div class="skin-pivot" style="margin-bottom:20px;"> | <div class="responsive-col col2"> | ||
<!-- Refining Recipes Card --> | |||
<div class="dune-card-decoration"></div> | <div class="skin-pivot" style="margin-bottom:20px;"> | ||
<div class="dune-card"> | |||
<div class="dune-card-decoration"></div> | |||
<div class="dune-card-inner"> | |||
<div class="dune-card-label">CRAFTING</div> | |||
<div class="dune-card-title"><span class="icon">⚛</span> Refining Recipes</div> | |||
<div class="dune-card-description"> | |||
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). | |||
</div> | |||
<div class="dune-card-infobox-left"> | |||
<!-- Fetch refining recipes for this building by filtering the recipes table --> | |||
{{#get_external_data: source=externaldb | |||
|from=data_refining_recipes | |||
|data=refiner=Refiner,output=Output,ingredients=Ingredients,time=Time,recipe=Recipe | |||
|cache=yes | |||
|filter=Refiner={{{Name}}} | |||
}} | |||
{{#for_external_table:| | |||
{{!}}- | |||
<tr> | |||
<td style="text-align:left;">{{{Output}}}</td> | |||
<td style="text-align:left;">{{{Ingredients}}}</td> | |||
<td style="text-align:left;">{{{Time}}}</td> | |||
</tr> | |||
}} | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="skin-pivot" style="margin-bottom:20px;"> | |||
<div class="dune-card"> | |||
<div class="dune-card-decoration"></div> | |||
<div class="dune-card-inner"> | |||
<div class="dune-card-label">Additional Information</div> | |||
<div class="dune-card-title"><span class="icon">≡</span> Notes</div> | |||
<div class="dune-card-description">{{{AdditionalNotes}}}</div> | |||
</div> | |||
</div> | |||
</div> | </div> | ||
</div> | </div> | ||
<div class="responsive-col col3"> | <div class="responsive-col col3"> | ||
<div class="skin-pivot" style="margin-bottom:20px;"> | <div class="skin-pivot" style="margin-bottom:20px;"> | ||
<div class="dune-card"> | |||
<div class="dune-card-decoration"></div> | |||
<div class="dune-card-inner"> | |||
<div class="dune-card-label">VIDEO TUTORIALS</div> | |||
<div class="dune-card-title"> | |||
<span class="icon">▶</span> {{{VideoTitle|Building Guide}}} | |||
</div> | |||
<div class="dune-card-video" style="border:2px solid #e2d3ae;border-radius:4px;padding:2px;background-color:#262626;"> | |||
<!-- Simplified YouTube embed: if a Youtube URL is provided, embed it --> | |||
</div> | {{#if: {{{YoutubeURL|}}} | <youtube>{{{YoutubeURL}}}</youtube> | Coming Soon }} | ||
</div> | |||
</div> | </div> | ||
</div> | |||
</div> | |||
<div class="skin-pivot"> | <div class="skin-pivot"> | ||
<div class="dune-card"> | |||
<div class="dune-card-decoration"></div> | |||
<div class="dune-card-inner"> | |||
<div class="dune-card-label">RELATED BUILDINGS</div> | |||
<div class="dune-card-title"> | |||
<span class="icon">🏗</span> Other {{{Category3}}} | |||
</div> | |||
<div class="dune-card-description"> | |||
{{{RelatedBuildingsDescription|Explore similar building types to expand your base capabilities.}}} | |||
</div> | |||
<div class="dune-card-infobox"> | |||
<!-- Pull related buildings from data_buildings by matching Category3 --> | |||
{{#get_external_data: source=externaldb | |||
|from=data_buildings | |||
|data=name=Name,tier=Tier,description=Description,image_file=ImageFile,category3=Category3 | |||
|cache=yes | |||
|filter=Category3={{{Category3}}} | |||
}} | |||
{{#for_external_table:| | |||
{{!}}- | |||
[[{{{Name}}}]] ({{{Tier}}})<br>{{{Description}}}<br> | |||
}} | |||
</div> | |||
</div> | |||
</ | |||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
<div style="clear:both;"></div> | <div style="clear:both;"></div> | ||
</div> | </div> | ||
<!-- End Building Card Template --> | |||
Revision as of 21:56, 25 March 2025
The query SELECT Name,Tier,Description,JourneyRequirement,Health,PowerCost,GeneratesPower,StorageSlots,StorageVolume,RecipeToBuild,PlacedWith,ImageFile,AdditionalNotes,YoutubeURL,Category1,Category2,Category3 FROM `data_buildings` is invalid (Error 1054: Unknown column 'Tier' in 'SELECT'
Function: EDConnectorRdbms::fetch
Query: SELECT Name,Tier,Description,JourneyRequirement,Health,PowerCost,GeneratesPower,StorageSlots,StorageVolume,RecipeToBuild,PlacedWith,ImageFile,AdditionalNotes,YoutubeURL,Category1,Category2,Category3 FROM `data_buildings`
).
[[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;]]
Locked Behind
| 🏅 Tier | {{{Tier}}} |
|---|---|
| ⚙ Primary Source | Crafting |
| ♥ Health | {{{Health}}} |
| ⚡ Power Cost | {{{PowerCost}}} |
| 📦 Inventory Slots | {{{StorageSlots}}} |
| 🗃 Volume Capacity | {{{StorageVolume}}} |
| ⚛ Components | {{{RecipeToBuild}}} |
| 🔨 Placed With | {{{PlacedWith}}} |
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).
The query SELECT Refiner,Output,Ingredients,Time,Recipe FROM `data_refining_recipes` is invalid (Error 1146: Table 'dunedbco_ddb.data_refining_recipes' doesn't exist
Function: EDConnectorRdbms::fetch Query: SELECT Refiner,Output,Ingredients,Time,Recipe FROM `data_refining_recipes` ).
▶ Building Guide
Coming Soon
🏗 Other {{{Category3}}}
Explore similar building types to expand your base capabilities.
The query SELECT Name,Tier,Description,ImageFile,Category3 FROM `data_buildings` is invalid (Error 1054: Unknown column 'Tier' in 'SELECT'
Function: EDConnectorRdbms::fetch Query: SELECT Name,Tier,Description,ImageFile,Category3 FROM `data_buildings` ).
