A Wiki in the Desert
Log in

Difference between revisions of "Template:RequireTable"

From A Wiki in the Desert
Line 1: Line 1:
 
{{#vardefine:isComplex|{{#switch: {{FULLPAGENAME}} | Treated Boards = true | Treated Metal = true | Gearbox = true | Paint = true | Raeli Tiles = true | false }}}}
 
{{#vardefine:isComplex|{{#switch: {{FULLPAGENAME}} | Treated Boards = true | Treated Metal = true | Gearbox = true | Paint = true | Raeli Tiles = true | false }}}}
{{#ifeq: {{trim|{{{1}}}}} | All |
+
{{#ifeq: {{trim|{{{1}}}}} | All |{{#arraydefine:buildings|{{#ask:
{{#arraydefine:buildings|{{#ask:
 
 
     [[Has subobject::<q>[[requires::{{FULLPAGENAME}}]]</q>]] | link=none
 
     [[Has subobject::<q>[[requires::{{FULLPAGENAME}}]]</q>]] | link=none
}}}}
+
}}}}}}{{#ifeq: {{trim|{{{1}}}}} | Building |{{#arraydefine:buildings|{{#ask:
}}
 
{{#ifeq: {{trim|{{{1}}}}} | Building |
 
{{#arraydefine:buildings|{{#ask:
 
 
     [[Category:Buildings]]
 
     [[Category:Buildings]]
 
     [[Has subobject::<q>[[requires::{{FULLPAGENAME}}]]</q>]] | link=none
 
     [[Has subobject::<q>[[requires::{{FULLPAGENAME}}]]</q>]] | link=none
}}}}
+
}}}}}}{{#ifeq: {{trim|{{{1}}}}} | Research |{{#arraydefine:buildings|{{#ask:
}}
 
{{#ifeq: {{trim|{{{1}}}}} | Research |
 
{{#arraydefine:buildings|{{#ask:
 
 
     [[Category:Technologies]]
 
     [[Category:Technologies]]
 
     [[Has subobject::<q>[[requires::{{FULLPAGENAME}}]]</q>]] | link=none
 
     [[Has subobject::<q>[[requires::{{FULLPAGENAME}}]]</q>]] | link=none
}}}}
+
}}}}}}{| class="smwtable-clean sortable"  
}}
 
{| class="smwtable-clean sortable"  
 
 
! Building  
 
! Building  
 
! Count  
 
! Count  

Revision as of 14:15, 7 May 2021

Building Count Verified