Template:Testpage: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
{{FactionBuildingCargo
|faction = dungeon
|bldg_id = dungeon_Build_Artifact_Market_L1
|note    = Notenotenote
}}


<!--{{#cargo_query:
<!--{{#cargo_query:
Line 29: Line 40:
|named args = yes
|named args = yes
}} --> </noinclude>
}} --> </noinclude>


Test Query
Test Query
Line 38: Line 51:
|where  = B.faction = 'unfrozen'
|where  = B.faction = 'unfrozen'
           AND building_t.language = 'en'
           AND building_t.language = 'en'
           AND B.id = 'unfrozen_Build_Artifact_Market_L1'
           AND B.id = 'unfrozen_Build_Market_L1'


|fields  = B.id                    = id,
|fields  = building_t.name          = name
          building_t.name          = name,
          B.icon                  = icon
            
            
|format    = table
|format    = table
Line 48: Line 59:
}}
}}


 
unfrozen_Build_Market_L1




Line 70: Line 81:
}}
}}


<!--
 
Query to fetch Prereqs for a building
Query to fetch Prereqs for a building
{{#cargo_query:
{{#cargo_query:
Line 85: Line 96:
|fields  = B.id                    = id,
|fields  = B.id                    = id,
           building_t.name          = name,
           building_t.name          = name,
          building_t.description  = description,
           B.icon                  = icon,
           B.icon                  = icon,
           B.prereqs__full          = requirements
           B.prereqs__full          = requirements
|format    = table
|format    = table
|named args = yes
|named args = yes
}}
}}
-->
 





Revision as of 15:48, 31 May 2026




Artifact Merchant
Requirements: Marketplace
Cost Effect
2500 Gold
5 Wood
5 Ore
Allows artifacts to be traded.









Test Query

name
Marketplace

unfrozen_Build_Market_L1


Query with results sent to sub-template



id: unfrozen_Build_Artifact_Market_L1
name: Artifact Merchant


Query to fetch Prereqs for a building

id name description icon requirements
unfrozen_Build_Artifact_Market_L1 Artifact Merchant Allows artifacts to be traded. U_build_Artifact_Market Build_Market_L1