Difference between revisions of "Stratonian"

m
m
Line 1: Line 1:
 
[https://en.wikibooks.org/wiki/Editing_Wikitext/Tables Editing Wikitext/Tables]
 
[https://en.wikibooks.org/wiki/Editing_Wikitext/Tables Editing Wikitext/Tables]
  
{| class="wikitable"
+
<table class="wikitable">
!Profession!!Raw Material!!Refined Into
+
<tr><th>Profession</th><th>Raw Material</th><th>Refined Into</th></tr>
|-
+
{{#arraydefine:professions|{{#ask:[[Category:Gathering Professions]]|link=none}}}}<!-- define gathering professions
{{!}}{{#arraydefine:professions|{{#ask:[[Category:Gathering Professions]]|link=none}}}}<!-- define gathering professions
 
 
-->{{#arrayprint:professions||@|<!-- print profession
 
-->{{#arrayprint:professions||@|<!-- print profession
--><tr style="background-color: #ffffff1a;">rowspan={{#expr:{{#ask:[[Category:@ Raw Materials]]|format=count}}+1}}{{!}}<!-- get rowspan
+
--><tr><!--
--><center>'''@'''</center></tr><!-- title -->
+
    --><td style="background-color: #ffffff1a;" rowspan="{{#expr:{{#ask:[[Category:@ Raw Materials]]|format=count}}+1}}"><center>'''@'''</center></td><!--
{{!}}-
+
--></tr>
{{!}}{{#arraydefine:recipes|{{#ask:[[Has profession::@]]|link=none}}}}<!-- define raw materials
+
{{#arraydefine:recipes|{{#ask:[[Has profession::@]]|link=none}}}}<!-- define raw materials
 
-->{{#arrayprint:recipes||@|<!-- print raw materials
 
-->{{#arrayprint:recipes||@|<!-- print raw materials
-->{{#ask:[[@]]|?Has ingredient=|mainlabel=-|+index=3}}{{!}}{{!}}<!-- first column
+
--><tr><!--
-->[[@]]
+
--><td>{{#ask:[[@]]|?Has ingredient=|mainlabel=-|+index=3}}</td><!-- first column
{{!}}-
+
--><td>[[@]]</td><!--
{{!}}}}}}
+
--></tr>
|}
+
}}}}
 +
</table>

Revision as of 13:36, 31 August 2023