GravityOffline: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
Created page with "Test Page"
 
No edit summary
Line 1: Line 1:
Test Page
Test Page
{{#cargo_query:tables=Faction=F, Building=B
| join on=B.faction=F.id
| fields= B.id, B.name_sid, B.level, B.icon, B.background_image, B.des_sid, B.narrative_desc_sid, B.prereqs, B.gold_cost, B.wood_cost, B.ore_cost, B.crystals_cost, B.gemstones_cost, B.mercury_cost, B.dust_cost, B.graal_cost, B.units_hire_sid, B.units_weekly
| where=F.id='nature'
|fields  = B.id                                      = id,
          B.name_sid                                = buildingName,
          B.level                                  = level,
          B.icon                                    = icon,
          B.background_image                        = backgroundImage,
          B.desc_sid                                = description,
          B.narrative_desc_sid                      = narrativeDesc,
          B.prereqs                                = prereqs,
          B.gold_cost                              = goldCost,
          B.wood_cost                              = woodCost,
          B.ore_cost                                = oreCost,
          B.crystals_cost                          = crystalsCost,
          B.gemstones_cost                          = gemstonesCost,
          B.mercury_cost                            = mercuryCost,
          B.dust_cost                              = dustCost,
          B.graal_cost                              = graalCost,
          B.units_hire_sid                          = unitsHireSid,
          B.units_weekly                            = unitsWeekly
| format    = template
| template  = buildingTemplateTest
| named args = yes
| delimiter  = \n
}}
<!-- <includeonly>{{#cargo_query:
tables  = Hero=H, HeroClass=HC, Faction=F,
          Translation=hero_t, Translation=hero_en, Translation=motto_t
|join on = H.class_id = HC.id,
          H.faction  = F.id,
          H.id      = hero_t.target_id,
          H.id      = hero_en.target_id,
          H.id      = motto_t.target_id
|where  = H.id = '{{{id|}}}'
          AND hero_t.type    = 'hero'      AND hero_t.language    = '{{{lang|en}}}'
          AND hero_en.type  = 'hero'      AND hero_en.language  = 'en'
          AND motto_t.type  = 'hero_motto' AND motto_t.language  = '{{{lang|en}}}'
|fields  = H.id                                      = id,
          hero_t.language                          = lang,
          hero_t.name                              = name,
          CONCAT(hero_en.name,'.png')              = portrait,
          motto_t.description                      = motto,
          hero_t.description                        = biography,
          H.class_id                                = class,
          H.faction                                = faction,
          COALESCE(H.offence, HC.offence)          = startattack,
          COALESCE(H.defence, HC.defence)          = startdefense,
          COALESCE(H.spell_power, HC.spell_power)  = startspellpower,
          COALESCE(H.intelligence, HC.intelligence) = startknowledge
|format  = template
|template= HeroInfoBox/base
|named args = yes
}}</includeonly> -->
<includeonly>
{|class="wikitable" style="width:100%;"
|
|
|-

Revision as of 15:34, 17 May 2026