Difference between revisions of "Refinement table"

(Created page with "<includeonly> {| class="wikitable" !Resource!!Refined Into |- |{{#arraydefine:recipes|{{#ask:[[Has profession::{{{1}}}]]|link=none}}}}<!-- define raw materials -->{{#arrayprin...")
 
m (profession parameter)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
{| class="wikitable"
 
{| class="wikitable"
!Resource!!Refined Into
+
!Raw Material!!Refined Into
 
|-
 
|-
|{{#arraydefine:recipes|{{#ask:[[Has profession::{{{1}}}]]|link=none}}}}<!-- define raw materials
+
|{{#arraydefine:recipes|{{#ask:[[Has profession::{{{1|{{PAGENAME}}}}}]]|link=none}}}}<!-- define recipes with given profession
-->{{#arrayprint:recipes||@|<!-- print raw materials
+
-->{{#arrayprint:recipes||@|<!-- print recipes
-->{{#ask:[[@]]|?Has ingredient=|mainlabel=-|+index=3}}{{!}}{{!}}<!-- first column
+
-->{{#vardefine:page|{{#explode:@|#|0}}}}<!-- get full page
-->[[@]]
+
-->{{#vardefine:refined into|{{#ask:[[@]]|?Has ingredient=|mainlabel=-|+index=3|link=none}}}}<!-- get refined into
 +
-->{{item|{{#var:refined into}}}}{{!}}{{!}}<!-- 'Raw Material'
 +
-->{{item|{{#var:page}}}}<!-- 'Refined Into' -->
 
{{!}}-
 
{{!}}-
 
{{!}}}}
 
{{!}}}}
 
|}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>
 
|}</includeonly><noinclude>{{{{PAGENAME}}/Documentation}}</noinclude>

Latest revision as of 14:31, 30 June 2024

Description[edit]

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

Usage[edit]

{{Refinement table}}

Parameters[edit]

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