Template:NpcData: Difference between revisionsGive feedback
Add support for get_nester_var |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{index|}}} | <includeonly>{{#if:{{{index|}}} | ||
|<!-- If index is provided, | |<!-- If an index is provided, assume it's a list and use the specific list function -->{{#invoke:NpcData|get_list_elem|{{{1}}}|{{{2}}}|{{{index}}}}} | ||
|<!-- Otherwise, | |<!-- Otherwise, use the main function which can handle simple and nested values -->{{#invoke:NpcData|get_npc_var|{{{1}}}|{{{2}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||