Difference between revisions of "Template:Grid"
Jump to navigation
Jump to search
m (Added Lua notice) |
(Added documentation) |
||
Line 1: | Line 1: | ||
− | {{#invoke:Animated|grid}}<!-- | + | <includeonly>{{#invoke:Animated|grid}}</includeonly><noinclude> |
− | -->< | + | {{Lua|Animated}} |
− | {{ | + | |
+ | == Usage == | ||
+ | <code>{{{1}}}</code> is a list of item names, separated by commas. <code>{{{2}}}</code> is a corresponding list of item counts, also separated by commas. | ||
+ | |||
+ | Set <code>{{{padded=1}}}</code> to enable 10px padding. | ||
+ | |||
+ | == Examples == | ||
+ | {| class="wikitable" | ||
+ | ! Source !! Output | ||
+ | |- | ||
+ | | <code><nowiki>{{Grid|Stick}}</nowiki></code> || {{Grid|Stick}} | ||
+ | |- | ||
+ | | <code><nowiki>{{Grid|Iron Lump, Copper Lump, Gold Lump}}</nowiki></code> || {{Grid|Iron Lump, Copper Lump, Gold Lump}} | ||
+ | |- | ||
+ | | <code><nowiki>{{Grid|Steel Ingot, Bronze Ingot, Gold Ingot|2, 3, 4}}</nowiki></code> || {{Grid|Steel Ingot, Bronze Ingot, Gold Ingot|2, 3, 4}} | ||
+ | |- | ||
+ | | <code><nowiki>{{Grid|Diamond|padded=1}}</nowiki></code> || {{Grid|Diamond|padded=1}} | ||
+ | |- | ||
+ | | <code><nowiki>{{Grid|Diamond, Mese Crystal|2, 3|padded=1}}</nowiki></code> || {{Grid|Diamond, Mese Crystal|2, 3|padded=1}} | ||
+ | |} | ||
== See also == | == See also == |
Revision as of 08:17, 6 May 2017
This template uses Module:Animated, a script written in Lua. Please see wikipedia:Wikipedia:Lua and mw:Extension:Scribunto to learn more. |
Usage
{{{1}}}
is a list of item names, separated by commas. {{{2}}}
is a corresponding list of item counts, also separated by commas.
Set {{{padded=1}}}
to enable 10px padding.
Examples
Source | Output |
---|---|
{{Grid|Stick}} |
|
{{Grid|Iron Lump, Copper Lump, Gold Lump}} |
|
{{Grid|Steel Ingot, Bronze Ingot, Gold Ingot|2, 3, 4}} |
|
{{Grid|Diamond|padded=1}} |
|
{{Grid|Diamond, Mese Crystal|2, 3|padded=1}} |