Difference between revisions of "Template:Grid"

From Luanti Wiki
Jump to navigation Jump to search
(Replaced parser switch with module invocation)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{#invoke:Animated|grid}}</includeonly>
<div class="animated" style="width: 32px; height: 32px; background-color: #888; border: 1px solid #333; {{#if: {{{padded|}}} | padding: 10px;|}}">
 
{{#if: {{#explode: {{{1|}}} | , | 0 }} | {{Grid/Cell|i={{#explode: {{{1|}}} | , | 0 }}|count={{#explode: {{{2|}}} | , | 0 }}}} |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 1 }} | {{Grid/Cell|i={{#explode: {{{1|}}} | , | 1 }}|count={{#explode: {{{2|}}} | , | 1 }}}} |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 2 }} | {{Grid/Cell|i={{#explode: {{{1|}}} | , | 2 }}|count={{#explode: {{{2|}}} | , | 2 }}}} |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 3 }} | {{Grid/Cell|i={{#explode: {{{1|}}} | , | 3 }}|count={{#explode: {{{2|}}} | , | 3 }}}} |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 4 }} | {{Grid/Cell|i={{#explode: {{{1|}}} | , | 4 }}|count={{#explode: {{{2|}}} | , | 4 }}}} |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 5 }} | {{Grid/Cell|i={{#explode: {{{1|}}} | , | 5 }}|count={{#explode: {{{2|}}} | , | 5 }}}} |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 6 }} | {{Grid/Cell|i={{#explode: {{{1|}}} | , | 6 }}|count={{#explode: {{{2|}}} | , | 6 }}}} |}}<!--
 
-->{{#if: {{#explode: {{{1|}}} | , | 7 }} | {{Grid/Cell|i={{#explode: {{{1|}}} | , | 7 }}|count={{#explode: {{{2|}}} | , | 7 }}}} |}}
 
</div>
 
</includeonly>
 
 
<noinclude>
 
<noinclude>
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 15:02, 9 April 2017