Template:Testpage: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 30: Line 30:
}} --> </noinclude>
}} --> </noinclude>


Test Query
{{#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.id = 'unfrozen_Build_Artifact_Market_L1'
|fields  = B.id                    = id,
          building_t.name          = name,
          B.icon                  = icon
         
|format    = table
|named args = yes
}}
Query with results sent to sub-template
{{#cargo_query:
{{#cargo_query:
  tables  = Building=B,
  tables  = Building=B,

Revision as of 01:22, 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