Template:Table-ImageCell: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
m (default image)
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<td style="width:33%">[[File:{{{1|No.png}}}|25px|frameless|link={{{2}}}]][[{{{2}}}]]</td><noinclude>
<includeonly><td style="width:33%">{{Small_Image_Link|{{{1}}}|{{{2}}}}}</td></includeonly><noinclude>
==Example==
{{Table-Start}}<!--Top of the table: Row 1 -->
{{Table-ImageCell|StoneCube.png|Stone Cube}}
{{Table-ImageCell|StoneRoundedFull.png|Small Round Corner}}
{{Table-ImageCell|StoneRoundLargeFull.png|Large Round Corner}}
{{Table-AddRow}}<!--Add a new row: Row 2 -->
{{Table-ImageCell|HouseStoneRoundIn.png|Round Interior}}
{{Table-ImageCell|StoneRoundInDoorLeft.png|:Category:Block Group/Round Interiors With Doors{{!}}Round Interiors With Doors}}
{{Table-ImageCell|StoneArchFull.png|Small Arch}}
{{Table-End}}<!--Finish the table - Forgetting this will cause trouble -->


==Usage==
==Usage==
The Table-ImageCell template is meant as an easy way to create a table cell with a [[Template:Small_Image_Link]] embedded. It is used with [[Template:Table-Start]], [[Template:Table-Cell]], [[Template:Table-AddRow]] and [[Template:Table-End]].
The Table-ImageCell template is meant as an easy way to create a table cell with a [[Template:Small_Image_Link]] embedded. It is used with [[Template:Table-Start]], [[Template:Table-Cell]], [[Template:Table-ImageNumberCell]], [[Template:Table-AddRow]] and [[Template:Table-End]].
<pre>{{Table-Cell|<imagename>|<link>}}</pre>
<pre>{{Table-ImageCell|<imagename>|<link>}}</pre>
*The code above can be pasted into your page to add a cell with a small image link to a table.
*The code above can be pasted into your page to add a cell with a small image link to a table.
==Example Source==
<pre>{{Table-Start}}<!--Top of the table: Row 1 -->
{{Table-ImageCell|StoneCube.png|Stone Cube}}
{{Table-ImageCell|StoneRoundedFull.png|Small Round Corner}}
{{Table-ImageCell|StoneRoundLargeFull.png|Large Round Corner}}
{{Table-AddRow}}<!--Add a new row: Row 2 -->
{{Table-ImageCell|HouseStoneRoundIn.png|Round Interior}}
{{Table-ImageCell|StoneRoundInDoorLeft.png|:Category:Block Group/Round Interiors With Doors{{!}}Round Interiors With Doors}}
{{Table-ImageCell|StoneArchFull.png|Small Arch}}
{{Table-End}}<!--Finish the table - Forgetting this will cause trouble --></pre>
[[Category:Templates/Formatting]]</noinclude>
[[Category:Templates/Formatting]]</noinclude>

Latest revision as of 13:08, 5 August 2017

Example

 Stone Cube  Small Round Corner  Large Round Corner
 Round Interior Round Interiors With Doors Round Interiors With Doors  Small Arch

Usage

The Table-ImageCell template is meant as an easy way to create a table cell with a Template:Small_Image_Link embedded. It is used with Template:Table-Start, Template:Table-Cell, Template:Table-ImageNumberCell, Template:Table-AddRow and Template:Table-End.

{{Table-ImageCell|<imagename>|<link>}}
  • The code above can be pasted into your page to add a cell with a small image link to a table.

Example Source

{{Table-Start}}<!--Top of the table: Row 1 -->
{{Table-ImageCell|StoneCube.png|Stone Cube}}
{{Table-ImageCell|StoneRoundedFull.png|Small Round Corner}}
{{Table-ImageCell|StoneRoundLargeFull.png|Large Round Corner}}
{{Table-AddRow}}<!--Add a new row: Row 2 -->
{{Table-ImageCell|HouseStoneRoundIn.png|Round Interior}}
{{Table-ImageCell|StoneRoundInDoorLeft.png|:Category:Block Group/Round Interiors With Doors{{!}}Round Interiors With Doors}}
{{Table-ImageCell|StoneArchFull.png|Small Arch}}
{{Table-End}}<!--Finish the table - Forgetting this will cause trouble -->