Difference between revisions of "Template:Recipe list result format"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
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}}} {{#switch:{{{8|}}}|1=★|2=★★|3=★★★|4=★★★★|#default=}}
{{!}} style="text-align:center" {{!}} {{{3}}} {{#switch:{{{8|}}}|1=★|2=★★|3=★★★|4=★★★★|5=★★★★★|#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}}}}

Revision as of 21:20, 3 October 2023

This is a semantic result template for use in {{recipe list}} . The input parameters generated by the semantic query are:

  1. Recipe subobject (1)
  2. Requires class (2)
  3. Requires crafting level (3)
  4. Has ingredient (4)
  5. Has recipe yield (5)
  6. Has item data object (6)
  7. Learned from recipe sheet (7)
  8. Has recipe rank (8)
  9. Is collectable recipe (9)
  10. Is expert recipe (10)
  11. {{{userparam}}} noclass - skip rating columns