Difference between revisions of "Template:Recipe list result format"
Jump to navigation
Jump to search
m |
m |
||
Line 6: | Line 6: | ||
-->}}<!-- end ifeq noclass --> | -->}}<!-- end ifeq noclass --> | ||
{{!}} style="text-align:center" {{!}} {{{3}}} | {{!}} style="text-align:center" {{!}} {{{3}}} | ||
| <div class="ingredients">{{#arraymap:{{#replace:{{{4|}}}| | | <div class="ingredients">{{#arraymap:{{#replace:{{{4|}}}|+|}},|),|@@@|<!-- Formatting the ingredients --> | ||
;{{#sub:{{#explode:@@@| |1}}|1|-1}}:{{#vardefine:recipe_ingredient|{{#sub:@@@|{{#expr:{{#pos:@@@| |2}} + 1}}}}}}{{item icon|{{#var:recipe_ingredient}}}} | ;{{#sub:{{#explode:@@@| |1}}|1|-1}}:{{#vardefine:recipe_ingredient|{{#sub:@@@|{{#expr:{{#pos:@@@| |2}} + 1}}}}}}{{item icon|{{#var:recipe_ingredient}}}} | ||
|\n}} | |\n}} |
Revision as of 06:01, 16 July 2017
This is a semantic result template for use in {{recipe list}} . The input parameters generated by the semantic query are:
- Recipe subobject
- Requires class
- Requires crafting level
- Has ingredient
- Has output quantity
- Has item data object
- Learned from recipe sheet
- {{{userparam}}} noclass - skip rating columns