Template:Grid/doc
File:Edit-copy green.svg | This is a documentation subpage for Template:Grid. It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
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 {{{1}}}.png, within it.
Usage
Put {{Grid|Name}}}
where you want the image.
All inputs are optional (however Amount, Mod, Link and Title won't do anything without Name):
{{Grid|Name|Amount|default=Image always shown under the Name 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 Stone.png with an amount of 20 you would put: {{Grid|Raw Stone|20}}
- which will result in
Amount supports from 2 - 999, anything else will not be displayed.
If no image is specified, [[File:No Image.png]]
will be shown.
Align supports anything vertical-align supports, for example to align to the middle:
Smells like {{Grid|Food|align=middle}} in here!
- which will result in
Smells like File:No Image.png
in here!
Default is always shown and is placed under the image. {{Grid|default=layout Brewing Empty}}{{Grid|Splash Mundane Potion|default=layout Brewing Empty}}
- which will result in
To change the link from the image name put: {{Grid|Charcoal|link=Coal#Charcoal}}
- which will result in
To remove the link, set link to none: {{Grid|Charcoal|link=none}}
- which will result in
Note that this will retain the title.
To add a different title, put: {{Grid|Raw Porkchop|title=Smelly Pork}}
- which will result in
To remove the title, set title to none: {{Grid|Raw Porkchop|title=}}
Note that setting title will remove the link, this is due to the automatic titling of a link overwriting what title is set to.
Template:Grid/Available images
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. Template:Grid/See also