Template:Table-ImageNumberCell: Difference between revisions
Jump to navigation
Jump to search
CptTwinkie (talk | contribs) m (Protected "Template:Table-ImageNumberCell" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
CptTwinkie (talk | contribs) mNo edit summary |
||
Line 3: | Line 3: | ||
{{Table-Start}}<!--Top of the table: Row 1 --> | {{Table-Start}}<!--Top of the table: Row 1 --> | ||
{{Table-ImageNumberCell|MetalParts.png|10|Metal Parts}} | {{Table-ImageNumberCell|MetalParts.png|10|Metal Parts}} | ||
{{Table-ImageNumberCell| | {{Table-ImageNumberCell|IronAxe.png|1|Iron Axe}} | ||
{{Table-ImageNumberCell|Crossbow Quiver.png|2|Quiver}} | {{Table-ImageNumberCell|Crossbow Quiver.png|2|Quiver}} | ||
{{Table-AddRow}}<!--Add a new row: Row 2 --> | {{Table-AddRow}}<!--Add a new row: Row 2 --> | ||
Line 23: | Line 23: | ||
<pre>{{Table-Start}}<!--Top of the table: Row 1 --> | <pre>{{Table-Start}}<!--Top of the table: Row 1 --> | ||
{{Table-ImageNumberCell|MetalParts.png|10|Metal Parts}} | {{Table-ImageNumberCell|MetalParts.png|10|Metal Parts}} | ||
{{Table-ImageNumberCell| | {{Table-ImageNumberCell|IronAxe.png|1|Iron Axe}} | ||
{{Table-ImageNumberCell|Crossbow Quiver.png|2|Quiver}} | {{Table-ImageNumberCell|Crossbow Quiver.png|2|Quiver}} | ||
{{Table-AddRow}}<!--Add a new row: Row 2 --> | {{Table-AddRow}}<!--Add a new row: Row 2 --> |
Revision as of 13:58, 28 August 2017
Example: From File:IronIngot.png Iron Ingot
10 Metal Parts | 1 Iron Axe | 2 Quiver |
1 Crossbow | File:IronHammer.png 1 Iron Hammer | 1 Mace |
File:PickAxe.png 1 Pickaxe | 1 Hand Plow | 1 Sword |
Usage
The Table-ImageCell template is meant as an easy way to create a table cell with an image, number, and link embedded. It is used with Template:Table-Start, Template:Table-Cell, Template:Table-ImageCell, Template:Table-AddRow and Template:Table-End.
{{Table-ImageNumberCell|<imagename>|<number>|<link>}}
- The code above can be pasted into your page to add a cell with a small image, number and link to a table.
Example Source
{{Table-Start}}<!--Top of the table: Row 1 --> {{Table-ImageNumberCell|MetalParts.png|10|Metal Parts}} {{Table-ImageNumberCell|IronAxe.png|1|Iron Axe}} {{Table-ImageNumberCell|Crossbow Quiver.png|2|Quiver}} {{Table-AddRow}}<!--Add a new row: Row 2 --> {{Table-ImageNumberCell|Crossbow.png|1|Crossbow}} {{Table-ImageNumberCell|IronHammer.png|1|Iron Hammer}} {{Table-ImageNumberCell|Mace.png|1|Mace}} {{Table-AddRow}}<!--Add a new row: Row 3 --> {{Table-ImageNumberCell|PickAxe.png|1|Pickaxe}} {{Table-ImageNumberCell|HandPlow.png|1|Hand Plow}} {{Table-ImageNumberCell|Sword.png|1|Sword}} {{Table-End}}<!--Finish the table - Forgetting this will cause trouble -->