Difference between revisions of "Refinement table"

m (variable rename)
m
Line 3: Line 3:
 
!Raw Material!!Refined Into
 
!Raw Material!!Refined Into
 
|-
 
|-
|{{#arraydefine:raw materials|{{#ask:[[Has profession::{{PAGENAME}}]]|link=none}}}}<!-- define raw materials
+
|{{#arraydefine:recipes|{{#ask:[[Has profession::{{PAGENAME}}]]|link=none}}}}<!-- define recipes with given profession
-->{{#arrayprint:raw materials||@|<!-- print raw materials
+
-->{{#arrayprint:recipes||@|<!-- print recipes
-->{{#ask:[[@]]|?Has ingredient=|mainlabel=-|+index=3}}{{!}}{{!}}<!-- first column
+
-->{{#ask:[[@]]|?Has ingredient=|mainlabel=-|+index=3}}{{!}}{{!}}<!-- 'Raw Material'
-->[[@]]
+
-->[[@]]<!-- 'Refined Into' -->
 
{{!}}-
 
{{!}}-
 
{{!}}}}
 
{{!}}}}
 
|}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>
 
|}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>

Revision as of 13:42, 31 August 2023

Description

Displays a table with all Raw Materials gathered by a profession (specified by the name of the page) and what they refine into.

Usage

{{Refinement table}}

Parameters

Arrow.png1: The name of the profession to be queried.
Optional. Defaults to '{{PAGENAME}}'.