Difference between revisions of "Refinement table"
Stratonian (talk | contribs) m |
Stratonian (talk | contribs) m (profession parameter) |
||
(6 intermediate revisions by the same user not shown) | |||
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::{{{1|{{PAGENAME}}}}}]]|link=none}}}}<!-- define recipes with given profession |
-->{{#arrayprint:recipes||@|<!-- print recipes | -->{{#arrayprint:recipes||@|<!-- print recipes | ||
− | -->{{#ask:[[@]]|?Has ingredient=|mainlabel=-|+index=3}}{{!}}{{!}}<!-- 'Raw Material' | + | -->{{#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}}