Template:Grid/doc

< Template:Grid
Revision as of 00:26, 25 December 2012 by Mastergalen (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

File:No Image.png


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

link={{{1}}}


File:No Image.png


To change the link from the image name put: {{Grid|Charcoal|link=Coal#Charcoal}}

which will result in

File:No Image.png



To remove the link, set link to none: {{Grid|Charcoal|link=none}}

which will result in

File:No Image.png


Note that this will retain the title.


To add a different title, put: {{Grid|Raw Porkchop|title=Smelly Pork}}

which will result in

File:No Image.png



To remove the title, set title to none: {{Grid|Raw Porkchop|title=}}

File:No Image.png


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


fr:Modèle:Grille/doc

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis