Template:Grid/doc
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, Mod, Link and Title won't do anything without Name):
{{Grid |Mod:Name,Amount |mod=Default mod (useful for animations and layout templates) |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 }}
Inputs
Not all inputs (crafting ingredients) have filenames which match the item, especially for items whose names contain more than one word. For those items, add them to the {{Icon to item}}
template. Just add the items you need to the list that follows, using this format: |Filename = Item Name
- For example
|PlantAloe = Aloe
Examples
To display this image File:Pork.png with an amount of 20 you would put: {{Grid|Pork,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:
{{Grid|Tnt}}{{Grid|Tnt}}{{Grid}}{{Grid}}{{Grid|Tnt}}{{Grid|Tnt}}<br> {{Grid|Tnt}}{{Grid|Tnt}}{{Grid}}{{Grid}}{{Grid|Tnt}}{{Grid|Tnt}}<br> {{Grid}}{{Grid}}{{Grid|Tnt}}{{Grid|Tnt}}{{Grid}}{{Grid}}<br> {{Grid}}{{Grid|Tnt}}{{Grid|Tnt}}{{Grid|Tnt}}{{Grid|Tnt}}{{Grid}}<br> {{Grid}}{{Grid|Tnt}}{{Grid|Tnt}}{{Grid|Tnt}}{{Grid|Tnt}}{{Grid}}<br> {{Grid}}{{Grid|Tnt}}{{Grid}}{{Grid}}{{Grid|Tnt}}{{Grid}}
- shows
Align uses the vertical-align CSS property. For example to align to the middle:
Smells like {{Grid|Blueberries|align=middle}} in here!
- shows
To change the link from the image name put: {{Grid|Coal|link=Coal#Crafting}}
- shows
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.
es:Plantilla:Grid/doc fr:Modèle:Grid/doc