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

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>|-  
<includeonly>|-  
| {{item icon|{{{6}}}}}{{#if: {{{9|}}} |||{{collectable}}||}} {{#ifexpr:({{{5|0}}}+0)>1|(x{{{5}}})|}} {{#ifeq: {{{7|}}} ||| <br><small>(Learned from: {{#ifeq: {{#len: {{{7}}} }} | {{#len: {{#replace:{{{7}}}|,|}} }} | [[{{{7}}}]] | multiple recipes }})</small> }}
| {{item icon|{{{6}}}|size=big}}{{#ifeq: {{{9}}} |true| &nbsp;[[File:Collectable gray bg icon.png|16px|link=Collectables|alt=Collectable|Collectable]]}}{{#ifeq: {{{10}}} |true| &nbsp;{{ExpertRecipe}}}} {{#ifexpr:({{{5|0}}}+0)>1|(x{{{5}}})|}} {{#ifeq: {{{7|}}} ||| <br><small>(Learned from: {{#ifeq: {{#len: {{{7}}} }} | {{#len: {{#replace:{{{7}}}|,|}} }} | [[{{{7}}}]] | multiple recipes }})</small> }}
| style="text-align:center" | {{rarity|{{#show:{{{6}}}|?Has item rarity}}}}
| style="text-align:center" | {{rarity|{{#show:{{{6}}}|?Has item rarity}}}}
{{#ifeq:{{{userparam|x}}}|noclass|<!--skip class column-->|
{{#ifeq:{{{userparam|x}}}|noclass|<!--skip class column-->|
{{!}} 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}}}}
Line 21: Line 21:
#Has recipe rank (8)
#Has recipe rank (8)
#Is collectable recipe (9)
#Is collectable recipe (9)
#Is expert recipe (10)
#{{{userparam}}} noclass - skip rating columns
#{{{userparam}}} noclass - skip rating columns



Latest revision as of 22:39, 22 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