Editing Template:NpcDataGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
<includeonly>{{#invoke:NpcData| | <includeonly>{{#if:{{{index|}}} | ||
|<!-- If index is provided, get an element from a list -->{{#invoke:NpcData|get_list_elem|{{{1}}}|{{{2}}}|{{{index}}}}} | |||
|<!-- Otherwise, check for dots (nested path) or fall back to single stat -->{{#if:{{#pos:{{{2}}}|.}} | |||
|{{#invoke:NpcData|get_nested_var|{{{1}}}|{{{2}}}|{{{3|}}}}} | |||
|{{#invoke:NpcData|get_npc_var|{{{1}}}|{{{2}}}|{{{3|}}}}} | |||
}} | |||
}}</includeonly><noinclude> | |||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||