Template:Table-ImageNumberCell: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
m (CptTwinkie moved page Template:Small Image Number Link to Template:Table-ImageNumberCell without leaving a redirect)
mNo edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:{{{1}}}|25px|frameless|link={{{3}}}]] {{{2}}} [[{{{3}}}]]<noinclude>
<includeonly><td style="width:33%">[[File:{{{1}}}|25px|frameless|link={{{3}}}]] {{{2}}} [[{{{3}}}]]</td></includeonly><noinclude>
==Example: From {{Small_Image_Link|IngotIron.png|Iron Ingot}}==
{{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|Crossbow0.5.png|1|:Category:Tag/WeaponRanged{{!}}Crossbow}}
{{Table-ImageNumberCell|HammerOneHand_Construction.png|1|Iron Hammer}}
{{Table-ImageNumberCell|Mace0.5.png|1|Mace}}
{{Table-AddRow}}<!--Add a new row: Row 3 -->
{{Table-ImageNumberCell|IronPickaxe.png|1|Pickaxe}}
{{Table-ImageNumberCell|HandPlow0.5.png|1|Hand Plow}}
{{Table-ImageNumberCell|Sword.png|1|Sword}}
{{Table-End}}<!--Finish the table - Forgetting this will cause trouble -->


==Usage==
==Usage==
The Small Image Number Link template is meant to be used when adding items to a table that have images and numbers.
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]].
<pre>{{Small_Image_Number_Link|<imagename>|<number>|<link>}}</pre>
<pre>{{Table-ImageNumberCell|<imagename>|<number>|<link>}}</pre>
*The code above can be pasted into your page and edited.
*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==
<pre>{{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|Crossbow0.5.png|1|:Category:Tag/WeaponRanged{{!}}Crossbow}}
{{Table-ImageNumberCell|HammerOneHand_Construction.png|1|Iron Hammer}}
{{Table-ImageNumberCell|Mace0.5.png|1|Mace}}
{{Table-AddRow}}<!--Add a new row: Row 3 -->
{{Table-ImageNumberCell|IronPickaxe.png|1|Pickaxe}}
{{Table-ImageNumberCell|HandPlow0.5.png|1|Hand Plow}}
{{Table-ImageNumberCell|Sword.png|1|Sword}}
{{Table-End}}<!--Finish the table - Forgetting this will cause trouble --></pre>
[[Category:Templates/Formatting]]</noinclude>
[[Category:Templates/Formatting]]</noinclude>

Latest revision as of 17:04, 7 May 2018

Example: From IngotIron.png Iron Ingot

MetalParts.png 10 Metal Parts IronAxe.png 1 Iron Axe Crossbow Quiver.png 2 Quiver
Crossbow 1 Crossbow HammerOneHand Construction.png 1 Iron Hammer Mace0.5.png 1 Mace
IronPickaxe.png 1 Pickaxe HandPlow0.5.png 1 Hand Plow Sword.png 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|Crossbow0.5.png|1|:Category:Tag/WeaponRanged{{!}}Crossbow}}
{{Table-ImageNumberCell|HammerOneHand_Construction.png|1|Iron Hammer}}
{{Table-ImageNumberCell|Mace0.5.png|1|Mace}}
{{Table-AddRow}}<!--Add a new row: Row 3 -->
{{Table-ImageNumberCell|IronPickaxe.png|1|Pickaxe}}
{{Table-ImageNumberCell|HandPlow0.5.png|1|Hand Plow}}
{{Table-ImageNumberCell|Sword.png|1|Sword}}
{{Table-End}}<!--Finish the table - Forgetting this will cause trouble -->