Template:Grid2

From Better Than Wolves Wiki
Jump to: navigation, search
Template-info.png Documentation

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
Raw Porkchop
GridNumbersCSS.png
GridNumbersCSS.png

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

TNT TNT     TNT TNT
TNT TNT     TNT TNT
    TNT TNT    
  TNT TNT TNT TNT  
  TNT TNT TNT TNT  
  TNT     TNT  


Animation is fully supported up to 16 frames, frames are separated by semi-colons (;). {{Grid2|Soul Dust;;Grass Block,5;Sand}}

shows
Soul Dust   Grass Block
GridNumbersCSS.png
Sand

Here is an animation with 16 frames, for debugging purposes:

Dirt Sand
GridNumbersCSS.png
Gravel
GridNumbersCSS.png
Stone
GridNumbersCSS.png
Cobblestone
GridNumbersCSS.png
Netherrack
GridNumbersCSS.png
Clay
GridNumbersCSS.png
Glowstone
GridNumbersCSS.png
End Stone
GridNumbersCSS.png
Iron Ingot
GridNumbersCSS.png
GridNumbersCSS.png
Gold Ingot
GridNumbersCSS.png
GridNumbersCSS.png
Diamond Ingot
GridNumbersCSS.png
GridNumbersCSS.png
Diamond
GridNumbersCSS.png
GridNumbersCSS.png
Emerald
GridNumbersCSS.png
GridNumbersCSS.png
Redstone (Dust)
GridNumbersCSS.png
GridNumbersCSS.png
Lapis Lazuli
GridNumbersCSS.png
GridNumbersCSS.png

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.

The above documentation is transcluded from Template:Grid2/doc. (edit | history)