Difference between revisions of "Refinement table"

m
(added item quality)
Line 3: Line 3:
 
!Raw Material!!Refined Into
 
!Raw Material!!Refined Into
 
|-
 
|-
|{{#arraydefine:recipes|{{#ask:[[Has profession::{{PAGENAME}}]]|link=none}}}}<!-- define recipes with given profession
+
|{{#arraydefine:recipes|{{#ask:[[Has profession::Butchery]]|link=none}}}}<!-- define recipes with given profession
 
-->{{#arrayprint:recipes||@|<!-- print recipes
 
-->{{#arrayprint:recipes||@|<!-- print recipes
-->{{item|{{#ask:[[@]]|?Has ingredient=|mainlabel=-|+index=3|link=none}}}}{{!}}{{!}}<!-- 'Raw Material'
+
-->{{#vardefine:page|{{#explode:@|#|0}}}}<!-- get full page
-->{{item|{{#explode:@|#|0}}}}<!-- 'Refined Into' -->
+
-->{{#vardefine:refined into|{{#ask:[[@]]|?Has ingredient=|mainlabel=-|+index=3|link=none}}}}<!-- get refined into
 +
-->{{item|{{#var:refined into}}|{{#show:{{#var:refined into}}|?Has quality}}}}{{!}}{{!}}<!-- 'Raw Material'
 +
-->{{item|{{#var:page}}|{{#show:{{#var:page}}|?Has quality}}}}<!-- 'Refined Into' -->
 
{{!}}-
 
{{!}}-
 
{{!}}}}
 
{{!}}}}
 
|}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>
 
|}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>

Revision as of 11:48, 10 September 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}}'.