Difference between revisions of "Template:RequireTable"
From A Wiki in the Desert
Tag: Undo |
Tag: Undo |
||
Line 12: | Line 12: | ||
}}}} | }}}} | ||
}} | }} | ||
− | + | <table class="smwtable-clean sortable"> | |
− | + | <tr><th>Building</th><th>Count</th>{{#ifeq: {{#var: isComplex}} | true | <th>Properties</th>}} | |
− | |||
{{#loop: i | {{#loop: i | ||
| 0 | | 0 | ||
Line 25: | Line 24: | ||
}}}} | }}}} | ||
− | {{# | + | {{#loop: j |
− | | | + | | 0 |
− | | | + | | {{ #arraysize:requirements }} |
− | | | + | | |
− | + | <tr> | |
− | + | <td>[[{{ #arrayindex: buildings | {{ #var:i }} }}]]</td> | |
− | + | <td>{{#ask: [[{{ #arrayindex: requirements | {{ #var:j }} }}]] |?count#= |mainlabel=- }}</td> | |
− | + | {{#ifeq: {{#var: isComplex}} | true | <td>{{#ask: [[{{ #arrayindex: requirements | {{ #var:j }} }}]] |?requires_property#= |mainlabel=- }}</td>}} | |
+ | </tr> | ||
}} | }} | ||
}} | }} | ||
− | + | </table> |
Revision as of 11:58, 5 May 2021
Building | Count |
---|