Basic template documentation, copy from source for correct indentation.
Commented template code
<includeonly><!--
If the third parameter is not empty, show the value of the parameter as content wrapped in a popup card container.
-->{{#if:{{{3|}}}|<!--
If parameter 2 is not empty, the container will be shown as collapsed. Otherwise, show it as expanded.
--><div class="gw-popup-card {{#if:{{{2|}}}||b-tech-nav_item__opened}}"><!--
--><div class="b-performance_title gw-popup-card_head js-tech-nav_head"><!--
Show the value of the first parameter as header text for the card container.
--><div>{{{1}}}</div><!--
--><span style="top: 5px" class="b-tech-nav_arrow"/><!--
--></div><!--
The content of the card container.
--><div class="gw-popup-card_content" {{#if:{{{2|}}}|style="display: none;"}}><!--
--><div><!--
--><div class="b-performance_text"><!--
--><table class="t-performance"><!--
Initialize the variable i with value 3. While the numbered parameter i+1 is not empty, add a new table row.
The entry name is the numbered parameter i, the entry value is the numbered parameter i+1, the unit of measurement of the value is defined as parameter i+2.
{{#expr:{{#var:i}}+1}} is equivalent to "i+1". The complex syntax is necessary to allow mathematical evaluations through MediaWiki.
-->{{#vardefine:i|3}}{{#while:|{{{{{#var:i}}|}}}|{{#if:{{{{{#expr:{{#var:i}}+1}}|}}}|<tr>
<td>
<span class="t-performance_left" style="display:inline">{{{{{#var:i}}|}}}</span>
<span class="t-performance_right">{{{{{#expr:{{#var:i}}+1}}|}}} <span style="color:gray">{{{{{#expr:{{#var:i}}+2}}|}}}</span></span>
</td><!--
End the table row and increase the current value of i by 3.
--></tr>}}{{#vardefine:i|{{#expr:{{#var:i}}+3}}}}}}<!--
--></table><!--
--></div><!--
--></div><!--
--></div><!--
--></div>}}</includeonly><noinclude>{{Doc}}[[Category:WoWs templates]]<noinclude>