Template:Testpage: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 70: Line 70:
}}
}}


<!--
Query to fetch Prereqs for a building
{{#cargo_query:
tables  = Building=B,
          Translation=building_t
|join on =
          building_t.target_id = B.id
|where  = B.faction = 'unfrozen'
          AND building_t.language = 'en'
          AND B.prereqs__full = 'Build_Market_L1'


|order by = B.prereqs__full = 'Build_Market_L1'


|fields  = B.id                    = id,
          building_t.name          = name,
          B.icon                  = icon,
          B.prereqs__full          = requirements
|format    = table
|named args = yes
}}
-->






 
<!-- Default View
 
<!--
{{#cargo_query:
{{#cargo_query:
  tables  = Building=B,
  tables  = Building=B,
Line 117: Line 134:
|format  = Table
|format  = Table
|named args = yes
|named args = yes
}}
}} -->
-->





Revision as of 04:03, 30 May 2026



Test Query

id name icon
unfrozen_Build_Artifact_Market_L1 Artifact Merchant U_build_Artifact_Market



Query with results sent to sub-template



id: unfrozen_Build_Artifact_Market_L1
name: Artifact Merchant