Difference between revisions of "Template:Grid/doc"
(Oh this is all very silly. But useful!) |
m (→Examples) |
||
Line 14: | Line 14: | ||
If no image is specified, the background will be added on its own, allowing you to do layouts like so: | If no image is specified, the background will be added on its own, allowing you to do layouts like so: | ||
− | <pre>{{Grid|TNT}}{{Grid|TNT}}{{Grid}}{{Grid}}{{Grid|TNT}}{{Grid|TNT}}<br /> | + | <pre style="width:422px">{{Grid|TNT}}{{Grid|TNT}}{{Grid}}{{Grid}}{{Grid|TNT}}{{Grid|TNT}}<br /> |
{{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}}{{Grid|TNT}}{{Grid|TNT}}{{Grid}}{{Grid}}<br /> |
Revision as of 14:31, 3 October 2011
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.
You can also specify the vertical alignment of the text with the image.
{{Grid|Name|Vertical Alignment}}
Examples
To display this image you would put: {{Grid|Raw Porkchop}}
- which will result in
If no image is specified, the background will be added on its own, allowing you 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}}
- which will result in
To align text to the middle on the same line as the image you would put: Smells like {{Grid|Raw Porkchop|middle}} in here!
- which will result in
Available images
Blocks
Items
Put uploaded images in Category:Grid images.
Other templates
These templates implement the grid template into a GUI screen which mimics how it would look in Minecraft with CSS.
- {{Crafting Table}}
- {{Furnace}}
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.