<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?action=history&amp;feed=atom&amp;title=Module%3AHeroClass%2Fdoc</id>
	<title>Module:HeroClass/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?action=history&amp;feed=atom&amp;title=Module%3AHeroClass%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?title=Module:HeroClass/doc&amp;action=history"/>
	<updated>2026-10-20T01:34:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?title=Module:HeroClass/doc&amp;diff=22006&amp;oldid=prev</id>
		<title>76561198256426587: Created page with &quot;== Description == This module is a comprehensive utility for generating hero class profiles. It integrates statistical data, secondary skill probabilities, and subclass information into a unified, styled infobox layout. It handles multi-language support and automatic data linking via &#039;&#039;&#039;Cargo&#039;&#039;&#039;.  == Usage == You can invoke specific sections or the entire main box:  &lt;pre&gt; {{#invoke:HeroList|getMainBox|class=...|language=...}} {{#invoke:HeroList|getStatsTable|class=...}}...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?title=Module:HeroClass/doc&amp;diff=22006&amp;oldid=prev"/>
		<updated>2026-06-06T07:57:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Description == This module is a comprehensive utility for generating hero class profiles. It integrates statistical data, secondary skill probabilities, and subclass information into a unified, styled infobox layout. It handles multi-language support and automatic data linking via &amp;#039;&amp;#039;&amp;#039;Cargo&amp;#039;&amp;#039;&amp;#039;.  == Usage == You can invoke specific sections or the entire main box:  &amp;lt;pre&amp;gt; {{#invoke:HeroList|getMainBox|class=...|language=...}} {{#invoke:HeroList|getStatsTable|class=...}}...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Description ==&lt;br /&gt;
This module is a comprehensive utility for generating hero class profiles. It integrates statistical data, secondary skill probabilities, and subclass information into a unified, styled infobox layout. It handles multi-language support and automatic data linking via &amp;#039;&amp;#039;&amp;#039;Cargo&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
You can invoke specific sections or the entire main box:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#invoke:HeroList|getMainBox|class=...|language=...}}&lt;br /&gt;
{{#invoke:HeroList|getStatsTable|class=...}}&lt;br /&gt;
{{#invoke:HeroList|getSkillsTable|class=...}}&lt;br /&gt;
{{#invoke:HeroList|getSubclassesBlock|class=...}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter !! Description !! Example&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;class&amp;lt;/code&amp;gt; || The identifier or common name of the hero class (e.g., knight, herald, warlock). || &amp;lt;code&amp;gt;class=Knight&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;language&amp;lt;/code&amp;gt; || Forces the Wiki language (if omitted, it detects the page suffix). || &amp;lt;code&amp;gt;language=fr&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Key Features ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Main Infobox (&amp;lt;code&amp;gt;getMainBox&amp;lt;/code&amp;gt;)&amp;#039;&amp;#039;&amp;#039;: Combines class crests, base stats, skill probabilities, and subclasses into a cohesive, responsive container.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Dynamic Statistics (&amp;lt;code&amp;gt;getStatsTable&amp;lt;/code&amp;gt;)&amp;#039;&amp;#039;&amp;#039;: Displays base hero attributes along with growth rates at levels 1-12 and 13+. Features automatic icon rendering.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Skill Probabilities (&amp;lt;code&amp;gt;getSkillsTable&amp;lt;/code&amp;gt;)&amp;#039;&amp;#039;&amp;#039;: Retrieves &amp;quot;Skill Roll Weights&amp;quot; from Cargo to generate a comparison table showing the likelihood of learning specific secondary skills.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Subclass Integration (&amp;lt;code&amp;gt;getSubclassesBlock&amp;lt;/code&amp;gt;)&amp;#039;&amp;#039;&amp;#039;: Dynamically fetches subclass data, including localization for names and descriptions, and lists activation skills with icons.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Smart Localization&amp;#039;&amp;#039;&amp;#039;: Automatically detects page language (e.g., &amp;lt;code&amp;gt;/fr&amp;lt;/code&amp;gt;) and falls back to English if translations are missing in the &amp;lt;code&amp;gt;Translation&amp;lt;/code&amp;gt; table.&lt;br /&gt;
&lt;br /&gt;
== Implementation Example ==&lt;br /&gt;
To display the full infobox for the &amp;quot;Knight&amp;quot; class:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#invoke:HeroList|getMainBox|class=Knight}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Technical Notes ==&lt;br /&gt;
* The module uses several Cargo tables: &amp;lt;code&amp;gt;HeroClass&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;SkillRollWeight&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;HeroSubClass&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;Translation&amp;lt;/code&amp;gt;.&lt;br /&gt;
* The &amp;lt;code&amp;gt;class_mapping&amp;lt;/code&amp;gt; table within the script translates user-friendly names (e.g., &amp;quot;knight&amp;quot;) into technical Cargo IDs (e.g., &amp;quot;might_human&amp;quot;).&lt;br /&gt;
* CSS is embedded inline to ensure the infobox maintains a consistent look across different Wiki skins, using a dark-theme style (&amp;lt;code&amp;gt;#1a1f26&amp;lt;/code&amp;gt; background).&lt;/div&gt;</summary>
		<author><name>76561198256426587</name></author>
	</entry>
</feed>