Difference between revisions of "Template:Recipe list result format"
Jump to navigation
Jump to search
m |
m |
||
Line 5: | Line 5: | ||
{{!}} style="text-align:center" {{!}} {{#if: {{{2|}}} | {{#arraymap:{{{2}}}|,|@@@|{{@@@|name=y}}|}} }}<!-- | {{!}} style="text-align:center" {{!}} {{#if: {{{2|}}} | {{#arraymap:{{{2}}}|,|@@@|{{@@@|name=y}}|}} }}<!-- | ||
-->}}<!-- end ifeq noclass --> | -->}}<!-- end ifeq noclass --> | ||
{{!}} style="text-align:center" {{!}} {{{3}}} | {{!}} style="text-align:center" {{!}} {{{3}}} {{#switch:{{{8|}}}|1=★|2=★★|3=★★★|4=★★★★|#default=}} | ||
| <div class="ingredients">{{#arraymap:{{#replace:{{{4|}}}|+|}},|),|@@@|<!-- Formatting the ingredients --> | | <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}}}} | ||
Line 19: | Line 19: | ||
#Has item data object | #Has item data object | ||
#Learned from recipe sheet | #Learned from recipe sheet | ||
#Has recipe rank | |||
#{{{userparam}}} noclass - skip rating columns | #{{{userparam}}} noclass - skip rating columns | ||
Revision as of 19:09, 18 October 2018
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 recipe yield
- Has item data object
- Learned from recipe sheet
- Has recipe rank
- {{{userparam}}} noclass - skip rating columns