User:Dinoxel/Crafts row

{{#vardefine:_result_name|{{{result|{{BASEPAGENAME}}}}}}{{#vardefine:_result_image|{{#var:_result_name}}.png}}{{#dplvar:set|_result_info|{{#var:_result_name}}¦{{#ifeq:{{{link|}}}|no||{{#var:_result_name}}}}¦{{{image|{{#var:_result_image}}}}}¦{{#ifeq:{{#dplvar:_result_amount}}|1|| ({{#dplvar:_result_amount}})}}}}{{#if:{{#dplvar:cate}}|{{#vardefine:do_categorization|{{#ifeq:{{#dplvar:cate}}|force|y|{{#ifeq:{{#var:_result_name}}|{{PAGENAME}}|y}}}}}}{{#if:{{#var:do_categorization}}|[[Category:{{#if:{{#dplvar:_cate-{{#dplvar:group_tool}}}}|{{#dplvar:_cate-{{#dplvar:group_tool}}}}|{{#ifeq:{{#sub:{{#dplvar:group_tool}}|0|1}}|#|{{#sub:{{#dplvar:group_tool}}|1}}|{{#dplvar:group_tool}}}}}}]]}}}}{{#if:{{#dplvar:nostation}}|{{#if:{{#dplvar:group_count}}| |{{#dplvar:set|group_count|1}} }}{{#arraydefine:_result_array|{{#dplvar:_result_info}}|¦}}{{item|{{#arrayindex:_result_array|0}}|link={{#arrayindex:_result_array|1}}|image={{#arrayindex:_result_array|2}}}}{{#arrayindex:_result_array|3}}  {{#invoke:Crafts/ingredient|go|{{#dplvar:_ingredients_info}}|{{BASEPAGENAME}}}}  |{{#if:{{#dplvar:_new_tool}}|{{#if:{{#dplvar:group_count}}| {{user:Dinoxel/Crafts/group|{{#dplvar:group_buffer_first}}|{{#dplvar:group_count}}|{{#dplvar:group_buffer}}}}  }}{{#dplvar:set|group_buffer_first|{{{tool|}}}«{{#dplvar:_result_info}}«{{#dplvar:_ingredients_info}}|group_count|1|group_buffer|}}|{{#dplvar:set|group_count|{{#expr:{{#dplvar:group_count}}+1}}|group_buffer|{{#dplvar:group_buffer}}»{{#dplvar:_result_info}}«{{#dplvar:_ingredients_info}}}}}}}}  Internal template. See Template:Crafts for documentation.