Jump to: navigation, search

Template:Grid/Available images/entry: Difference between revisions

(Created page with "<includeonly>{{#if: {{{h|}}} | ! colspan="12" style="background: #ccc;" {{!}} {{{h}}} |<!-- -->! [[{{{link|{{{1}}}}}}|{{{name|{{{1}}}}}}]] !! [[File:Grid {{{1}}}.png]] }} {{#i...")
 
(Removed auto-link)
Line 1: Line 1:
<includeonly>{{#if: {{{h|}}} | ! colspan="12" style="background: #ccc;" {{!}} {{{h}}} |<!--
<includeonly>{{#if: {{{h|}}} | ! colspan="12" style="background: #ccc;" {{!}} {{{h}}} |<!--
-->! [[{{{link|{{{1}}}}}}|{{{name|{{{1}}}}}}]] !! [[File:Grid {{{1}}}.png]] }}
-->! {{{name|{{{1}}}}}} !! [[File:Grid {{{1}}}.png]] }}
{{#if: {{{2|}}} | !! colspan="{{#expr: 12 - ({{{2}}} * 2) }}" {{#if:{{{rowspan|}}} | rowspan="{{{rowspan}}}" }} {{!}} }}</includeonly><noinclude>
{{#if: {{{2|}}} | !! colspan="{{#expr: 12 - ({{{2}}} * 2) }}" {{#if:{{{rowspan|}}} | rowspan="{{{rowspan}}}" }} {{!}} }}</includeonly><noinclude>
{{/doc}}
{{/doc}}


[[Category:Templates]]
[[Category:Templates]]

Revision as of 03:33, 18 May 2017

Template-info.png Documentation

This template is to be used in the cells on the table in the Available images template.

Usage

{{Grid/Available images/entry|Bone}}

Will output

! Bone !! Grid Bone.png


If you don't have 10 entries on a row, put the amount of entries you do have on the last line of the row.
For example:

{{Grid/Available images/entry|Stick}}
{{Grid/Available images/entry|Bone|2}}

Will output:
! Stick !! Grid Stick.png

! Bone !! Grid Bone.png !! colspan="8" |

Other parameters

Code Usage Default
h This should not be used with anything below. The value you put here is what the header will say; including any wikicode. None
{{{1}}} The link and link name will be set to this value. The image name will have it inserted as part of it: [[File:Grid {{{1}}}.png]] None
{{{2}}} Explained above. None
rowspan Used in conjunction with {{{2}}}. Sets the amount of rows that will be filled, starting from the row it's on. None
link Used to modify what the first cell links to. {{{1}}}
name Used to modify what the first cell's text is. {{{1}}}


Cookies help us deliver our services. By using our services, you agree to our use of cookies.