Template:HeroClass: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 4: Line 4:
  - class: (required) class name as used in p.data (case-sensitive)
  - class: (required) class name as used in p.data (case-sensitive)
  - description: (optional) class description wikitext
  - description: (optional) class description wikitext
  - notes: (optional) class notes or designer notesModule:HeroesUtil|heroTable (e.g. Dungeon, Temple). When provided the template will call the module to render the heroes list for that faction.
  - notes: (optional) class notes or designer notes
- faction: (optional) faction name to pass to Module:HeroesUtil|heroTable (e.g. Dungeon, Temple). When provided the template will call the module to render the heroes list for that faction.


Usage example:
Usage example:
Line 13: Line 14:
}}
}}


This template renders a two-column layout: left column contains the class description, notes, and a "Heroes" area listing the heroes of that class. The right column are all the information specific to the class.
This template renders a two-column layout: left column contains the class description, notes, and a "Heroes" area listing the provided heroes (each hero collapsible to show the heroBox). The right column shows the class-box produced by Module:HeroClasses.


-->
-->
<div class="heroclass-template" style="display:flex; gap:16px; align-items:flex-start; width:100%;">
<div class="heroclass-template" style="display:flex; gap:16px; align-items:flex-start; width:100%;">
   <div class="heroclass-main" style="flex:1;">
   <div class="heroclass-main" style="flex:1;">
Line 24: Line 24:
     {{Note box|{{{notes|}}}}}
     {{Note box|{{{notes|}}}}}


     == Heroes of that Class==
     == Heroes ==
     <div class="heroclass-heroes">
     <div class="heroclass-heroes">
       {{#invoke:HeroesUtil|heroTable|{{{class|}}}}}
       {{#invoke:Module_HeroesUtil|heroTable|{{{class|}}}}}
     </div>
     </div>


     </div>
     </div>
  </div>


   <div class="heroclass-sidebar" style="width:420px;">
   <div class="heroclass-sidebar" style="width:420px;">

Revision as of 08:47, 28 October 2025

   == Description ==
Notes:
       == Heroes ==
    
         Script error: No such module "Module_HeroesUtil".
    
       Script error: No such module "HeroClasses".