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 | false }}}}
 
{{#vardefine:isComplex|{{#switch: {{FULLPAGENAME}} | Treated Boards = true | false }}}}
{{#var: isComplex}}
 
 
{{#ifeq: {{trim|{{{1}}}}} | Building |
 
{{#ifeq: {{trim|{{{1}}}}} | Building |
 
{{#arraydefine:buildings|{{#ask:
 
{{#arraydefine:buildings|{{#ask:
Line 32: Line 31:
 
       <td>[[{{ #arrayindex: buildings | {{ #var:i }} }}]]</td>
 
       <td>[[{{ #arrayindex: buildings | {{ #var:i }} }}]]</td>
 
       <td>{{#ask: [[{{ #arrayindex: requirements | {{ #var:j }} }}]] |?count#= |mainlabel=- }}</td>
 
       <td>{{#ask: [[{{ #arrayindex: requirements | {{ #var:j }} }}]] |?count#= |mainlabel=- }}</td>
       <td>{{#ask: [[{{ #arrayindex: requirements | {{ #var:j }} }}]] |?requires_property#= |mainlabel=- }}</td>
+
       {{#ifeq: {{#var: isComplex}} | true | <td>{{#ask: [[{{ #arrayindex: requirements | {{ #var:j }} }}]] |?requires_property#= |mainlabel=- }}</td>}}
 
     </tr>
 
     </tr>
 
   }}
 
   }}
 
}}
 
}}
 
</table>
 
</table>

Revision as of 01:03, 5 May 2021


BuildingCount