Template:HeroClass: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
HeavyBeber (talk | contribs) No edit summary |
HeavyBeber (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<!-- Template:HeroClass | |||
Parameters: | |||
- class: (required) class name as used in p.data (case-sensitive) | |||
- 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. | |||
Usage example: | |||
{{Template:HeroClass | |||
|class = Overlord | |||
|description = Overlords are tactical commanders ... | |||
|notes = Some developer notes or rules. | |||
}} | |||
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. | |||
--> | |||
<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 4: | Line 22: | ||
== Description == | == Description == | ||
<div class="heroclass-description">{{{description|}}}</div> | <div class="heroclass-description">{{{description|}}}</div> | ||
{{Note box|{{{notes|}}}}} | |||
== Class | == Heroes of that Class== | ||
<div class="heroclass-heroes"> | <div class="heroclass-heroes"> | ||
{{#invoke:HeroesUtil|heroTable|{{{ | {{#invoke:HeroesUtil|heroTable|{{{class|}}}}} | ||
</div> | </div> | ||
Revision as of 08:38, 28 October 2025
== Description ==
| Notes:
|
== Heroes of that Class==
Script error: No such module "HeroesUtil".


