Difference between revisions of "Template:Grid2/doc"
(Created page with "{{doc/start}} The grid template is a singular grid cell, which has the ability to display any image (usually a block or item) that is uploaded as Grid <Name>.png, within it. == U...") |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
== Usage == | == Usage == | ||
All inputs are optional (however Amount, Link and Title won't do anything without Name):<br> | All inputs are optional (however Amount, Link and Title won't do anything without Name):<br> | ||
− | <pre style="max-width: 484px">{{ | + | <pre style="max-width: 484px">{{Grid2 |
|Amount | |Amount | ||
|default=Image always shown under the main image | |default=Image always shown under the main image | ||
Line 21: | Line 21: | ||
If no image is specified, the background will be added on its own, this could be used to do layouts like so: | If no image is specified, the background will be added on its own, this could be used to do layouts like so: | ||
− | <pre style="width: | + | <pre style="width:600px">{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2}}{{Grid2}}{{Grid2|TNT}}{{Grid2|TNT}}<br> |
− | {{ | + | {{Grid2|TNT}}{{Grid2|TNT}}{{Grid2}}{{Grid2}}{{Grid2|TNT}}{{Grid2|TNT}}<br> |
− | {{ | + | {{Grid2}}{{Grid2}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2}}{{Grid2}}<br> |
− | {{ | + | {{Grid2}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2}}<br> |
− | {{ | + | {{Grid2}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2}}<br> |
− | {{ | + | {{Grid2}}{{Grid2|TNT}}{{Grid2}}{{Grid2}}{{Grid2|TNT}}{{Grid2}}</pre> |
;shows | ;shows | ||
− | {{ | + | {{Grid2|TNT}}{{Grid2|TNT}}{{Grid2}}{{Grid2}}{{Grid2|TNT}}{{Grid2|TNT}}<br> |
− | {{ | + | {{Grid2|TNT}}{{Grid2|TNT}}{{Grid2}}{{Grid2}}{{Grid2|TNT}}{{Grid2|TNT}}<br> |
− | {{ | + | {{Grid2}}{{Grid2}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2}}{{Grid2}}<br> |
− | {{ | + | {{Grid2}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2}}<br> |
− | {{ | + | {{Grid2}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2}}<br> |
− | {{ | + | {{Grid2}}{{Grid2|TNT}}{{Grid2}}{{Grid2}}{{Grid2|TNT}}{{Grid2}} |
Animation is fully supported up to 16 frames, frames are separated by semi-colons (;). | Animation is fully supported up to 16 frames, frames are separated by semi-colons (;). | ||
− | <code><nowiki>{{ | + | <code><nowiki>{{Grid2|Soul Dust;;Grass Block,5;Sand}}</nowiki></code> |
;shows | ;shows | ||
− | {{Grid2| | + | {{Grid2|Soul Dust;;Grass Block,5;Sand}} |
− | + | Here is an animation with 16 frames, for debugging purposes: | |
− | + | {{Grid2|Dirt,1;Sand,2;Gravel,3;Stone,4;Cobblestone,5;Netherrack,6;Clay,7;Glowstone,8;End Stone,9;Iron Ingot,10;Gold Ingot,11;Diamond Ingot,12;Diamond,13;Emerald,14;Redstone (Dust),15;Lapis Lazuli,16}} | |
− | |||
− | |||
− | ; | ||
− | |||
− | |||
− | |||
− | |||
− | ; | ||
− | |||
− | |||
− | |||
− | |||
− | ; | ||
− | |||
− | |||
− | |||
− | |||
− | ; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ; | ||
− | |||
− | |||
− | |||
− | |||
− | ; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
== Other templates == | == Other templates == | ||
These templates implement this template into a GUI screen which mimics how it would look in Minecraft. Thus, they have mostly the same features as this template. | These templates implement this template into a GUI screen which mimics how it would look in Minecraft. Thus, they have mostly the same features as this template. | ||
− | |||
{{doc/end}}<noinclude> | {{doc/end}}<noinclude> | ||
</noinclude> | </noinclude> |
Latest revision as of 18:14, 18 February 2019
The grid template is a singular grid cell, which has the ability to display any image (usually a block or item) that is uploaded as Grid <Name>.png, within it.
Usage
All inputs are optional (however Amount, Link and Title won't do anything without Name):
{{Grid2 |Amount |default=Image always shown under the main image |align=Vertical Alignment |link=Link override |title=Title, removes link |class=Adds additional classes to the .grid class }}
Examples
To display this image File:Grid Raw Porkchop.png with an amount of 20 you would put: {{Grid|Raw Porkchop,20}}
- shows
An amount of 2 - 999 is supported, anything else will not be displayed. Note, the automatic link is removed if {{SUBPAGENAME}} is the same as the item name. This is to help prevent self-links, use the link parameter to re-add the link if you need it.
If no image is specified, the background will be added on its own, this could be used to do layouts like so:
{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2}}{{Grid2}}{{Grid2|TNT}}{{Grid2|TNT}}<br> {{Grid2|TNT}}{{Grid2|TNT}}{{Grid2}}{{Grid2}}{{Grid2|TNT}}{{Grid2|TNT}}<br> {{Grid2}}{{Grid2}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2}}{{Grid2}}<br> {{Grid2}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2}}<br> {{Grid2}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2|TNT}}{{Grid2}}<br> {{Grid2}}{{Grid2|TNT}}{{Grid2}}{{Grid2}}{{Grid2|TNT}}{{Grid2}}
- shows
Animation is fully supported up to 16 frames, frames are separated by semi-colons (;).
{{Grid2|Soul Dust;;Grass Block,5;Sand}}
- shows
Here is an animation with 16 frames, for debugging purposes:
Other templates
These templates implement this template into a GUI screen which mimics how it would look in Minecraft. Thus, they have mostly the same features as this template.
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.