From Dark and Darker Wiki
m (example usage) |
m (Adding parameter functionality.) |
||
Line 1: | Line 1: | ||
<includeonly>{{#arraydefine:all|{{Monster Data|{{ | <includeonly>{{#arraydefine:all|{{Monster Data|{{{1}}}s}}}}<!-- | ||
-->{{#arraydefine:bosses}}<!-- | -->{{#arraydefine:bosses}}<!-- | ||
-->{{#arraydefine:minibosses}}<!-- | -->{{#arraydefine:minibosses}}<!-- | ||
Line 22: | Line 22: | ||
|{{#expr:{{#arraysize:bosses}}-1}} | |{{#expr:{{#arraysize:bosses}}-1}} | ||
|{{#vardefine:current|{{ #arrayindex:bosses | {{ #var:i }}}}}}<!-- | |{{#vardefine:current|{{ #arrayindex:bosses | {{ #var:i }}}}}}<!-- | ||
--><li>[[{{#var:current}}]]</li> | -->{{#if:{{#var:current}}|<li>[[{{#var:current}}]]</li>}} | ||
}}</ul> | }}</ul> | ||
==Mini Bosses== | ==Mini Bosses== | ||
Line 29: | Line 29: | ||
|{{#expr:{{#arraysize:minibosses}}-1}} | |{{#expr:{{#arraysize:minibosses}}-1}} | ||
|{{#vardefine:current|{{ #arrayindex:minibosses | {{ #var:i }}}}}}<!-- | |{{#vardefine:current|{{ #arrayindex:minibosses | {{ #var:i }}}}}}<!-- | ||
--><li>[[{{#var:current}}]]</li> | -->{{#if:{{#var:current}}|<li>[[{{#var:current}}]]</li>}} | ||
}}</ul> | }}</ul> | ||
==Monsters== | ==Monsters== | ||
Line 36: | Line 36: | ||
|{{#expr:{{#arraysize:monsters}}-1}} | |{{#expr:{{#arraysize:monsters}}-1}} | ||
|{{#vardefine:current|{{ #arrayindex:monsters | {{ #var:i }}}}}}<!-- | |{{#vardefine:current|{{ #arrayindex:monsters | {{ #var:i }}}}}}<!-- | ||
--><li>[[{{#var:current}}]]</li> | -->{{#if:{{#var:current}}|<li>[[{{#var:current}}]]</li>}} | ||
}}</ul></includeonly> | }}</ul></includeonly> | ||
<noinclude> | <noinclude> | ||
Example: <pre> {{GenerateMonsterRace | Example: <pre> {{GenerateMonsterRace|Skeleton}} </pre> | ||
{{ | {{GenerateRacePage|Skeleton}} | ||
</noinclude> | </noinclude> |
Revision as of 20:35, 20 February 2024
Example:
{{GenerateMonsterRace|Skeleton}}
Bosses
Mini Bosses
Monsters