ResourceDisplayCard: Difference between revisions
From Dune Awakening DB
mNo edit summary |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<!-- Template:ResourceDisplayCard --> | <!-- Template:ResourceDisplayCard --> | ||
{{#get_external_data:source = externaldb|from = data_resources|data = Name = name,Description = description,Rarity = rarity,Subclass = resource_subclass,Weight = weight,XP = xp_per_harvest,Faction = faction,ImageFile = image_link|where = name = 'Copper Ingot'|limit = 1}} | {{#get_external_data:source = externaldb|from = data_resources|data = Name = name,Description = description,Rarity = rarity,Subclass = resource_subclass,Weight = weight,XP = xp_per_harvest,Faction = faction,ImageFile = image_link, Category1 = category_1, | ||
Category2 = category_2, | |||
Category3 = category_3|where = name = 'Copper Ingot'|limit = 1}} | |||
{{#for_external_table:| | {{#for_external_table:| | ||
{{#vardefine:Name | {{{Name}}} }} | {{#vardefine:Name | {{{Name}}} }} | ||
| Line 10: | Line 12: | ||
{{#vardefine:Fact | {{{Faction}}} }} | {{#vardefine:Fact | {{{Faction}}} }} | ||
{{#vardefine:ImageFile | {{{ImageFile}}} }} | {{#vardefine:ImageFile | {{{ImageFile}}} }} | ||
{{#vardefine:Category1 | {{{Category1}}} }} | |||
{{#vardefine:Category2 | {{{Category2}}} }} | |||
{{#vardefine:Category3 | {{{Category3}}} }} | |||
}} | }} | ||
{{#vardefine:Tint| | {{#vardefine:Tint| | ||
| Line 18: | Line 23: | ||
| legendary = #cf7a30 | | legendary = #cf7a30 | ||
| #default =}}}} | | #default =}}}} | ||
<div class="dune-breadcrumb-nav"><span id="menuRadialTrigger" class="menu-button-wrapper" style="cursor:pointer;">[[File:MenuButton.png|100px|link=|alt=Menu]]</span><span class="dune-breadcrumb-separator">/</span>[[{{#var:Category1}}|{{#var:Category1}}]]<span class="dune-breadcrumb-separator">/</span>[[{{#var:Category2}}|{{#var:Category2}}]]{{#if:{{#var:Category3}}|<span class="dune-breadcrumb-separator">/</span>[[{{#var:Category3}}|{{#var:Category3}}]]}}<span class="dune-breadcrumb-separator">/</span><span>{{PAGENAME}}</span> | |||
</div> | |||
<div class="responsive-col col1"> | <div class="responsive-col col1"> | ||
<div class="skin-pivot"> | <div class="skin-pivot"> | ||
| Line 52: | Line 61: | ||
<tr><th><span class="icon">[[File:BuildingHealthIcon.png]]</span>Faction</th> <td>{{#var:Fact}}</td></tr> | <tr><th><span class="icon">[[File:BuildingHealthIcon.png]]</span>Faction</th> <td>{{#var:Fact}}</td></tr> | ||
</table> | </table> | ||
</div> | |||
</div><!-- dune-card-inner --> | |||
</div><!-- dune-card --> | |||
</div><!-- skin-pivot --> | |||
</div><!-- responsive-col --> | |||
<!-- ──────────────── MIDDLE COLUMN – “Used In” card ──────────────── --> | |||
<div class="responsive-col col2"> | |||
<div class="skin-pivot"> | |||
<div class="dune-card"> | |||
<div class="dune-card-decoration"></div> | |||
<div class="dune-card-inner"> | |||
<!-- header --> | |||
<div class="dune-card-label">CRAFTING</div> | |||
<div class="dune-card-title"><span class="icon">⚛</span> Used In</div> | |||
<div style="padding:3px;"></div> | |||
<div class="dune-card-description"> | |||
This resource is required for the following recipes. | |||
</div> | |||
<div id="usedInFilterHolder"></div> | |||
<!-- Used-In table --> | |||
<div class="dune-card-infobox-left"> | |||
{{#get_external_data: | |||
source = externaldb | |||
|from = data_crafting_recipes | |||
|data = | |||
Output = name, | |||
Time = time_to_craft, | |||
Recipe = recipe_to_build, | |||
Station = where_to_craft | |||
|cache = yes | |||
|where = recipe_to_build LIKE '%[[Copper Ingot]]%' | |||
}} | |||
<div class="dune-table-wrapper" style="overflow-x:auto;"> | |||
<table class="infobox-dune-standard-table"> | |||
<tr class="tr-dark"> | |||
<th style="text-align:left; width:30%;">Output</th> | |||
<th style="text-align:left; width:45%;">Recipe</th> | |||
<th style="text-align:left; width:25%;">Crafted At</th> | |||
</tr> | |||
{{#for_external_table:| | |||
<tr><td style="text-align:left;">{{#invoke:DataTableParserV2|iconize|1=[[{{{Output}}}]]}} | |||
</td> | |||
<td style="text-align:left;">{{#invoke:DataTableParserV2|formatRecipeList|1={{{Recipe}}}}} | |||
</td> | |||
<td style="text-align:left;">{{{Station}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
</div> | |||
</div> | </div> | ||
Latest revision as of 02:54, 7 May 2025
RESOURCE – Refined Resource
🛈 Resource Information
A Copper ingot, refined from Copper Ore at any Ore Refinery. Used to create products that require Copper
CRAFTING
⚛ Used In
This resource is required for the following recipes.
The query SELECT name,time_to_craft,recipe_to_build,where_to_craft FROM `data_crafting_recipes` WHERE recipe_to_build LIKE '%Copper Ingot%' is invalid (Error 1146: Table 'dunedbco_ddb.data_crafting_recipes' doesn't exist
Function: EDConnectorRdbms::fetch Query: SELECT name,time_to_craft,recipe_to_build,where_to_craft FROM `data_crafting_recipes` WHERE recipe_to_build LIKE '%Copper Ingot%' ).
| Output | Recipe | Crafted At |
|---|---|---|
| [[{{{Output}}}]] | {{{Recipe}}} | {{{Station}}} |
