Thank you for visiting SotAwiki, a Shroud of the Avatar Wiki Encyclopedia. If you see any information that is outdated, please take the time to update it, or if you prefer, leave a message for other editors. This community wiki is for the benefit of all Avatars!

Template:Tableimage/doc: Difference between revisions

From SotA Wiki
Jump to navigation Jump to search
Alianin (talk | contribs)
m Changed category.
Fenyx4 (talk | contribs)
Update documentation
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
:A template which puts an image inside of a table. To be used with <nowiki>{{Tabletop}}</nowiki> and <nowiki>{{Tablebottom}}</nowiki>.
:A template which puts an image inside of a table. To be used with <nowiki>{{Tabletop}}</nowiki> and <nowiki>{{Tablebottom}}</nowiki>.
;Syntax
;Syntax
:<nowiki>{{Tableimage
:{{T|image|imagewidth|imageheight|caption|collection}}
| image = SotA Crafting Sigil wood.jpg
== Parameters ==
| imagewidth = 250}}</nowiki>
{| class="sotawikitable"
! Parameter
! Explanation
|-
| image ''(optional if collection is provided)''
| Name and extension of image.
|-
| imagewidth ''(optional)''
| Width of the image. Defaults to 250.
|-
| imageheight ''(optional)''
| Height of the image.
|-
| caption ''(optional)''
| Caption for image, if necessary.
|-
| collection
| Images that has a matching [[Property:has image collection]].
|}
;Sample code
;Sample code
:<code><nowiki>{{Tabletop}}
:<code><nowiki>{{Tabletop}}
Line 26: Line 44:
:[[Template:Tablebottom]]
:[[Template:Tablebottom]]


<includeonly>[[Category:Utility templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template Documentation|{{PAGENAME}}]]</noinclude>
<includeonly>[[Category:Utility templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 22:58, 31 July 2014

Description
A template which puts an image inside of a table. To be used with {{Tabletop}} and {{Tablebottom}}.
Syntax
{{image|<imagewidth>|<imageheight>|<caption>|<collection>}}

Parameters[edit]

Parameter Explanation
image (optional if collection is provided) Name and extension of image.
imagewidth (optional) Width of the image. Defaults to 250.
imageheight (optional) Height of the image.
caption (optional) Caption for image, if necessary.
collection Images that has a matching Property:has image collection.
Sample code
{{Tabletop}} {{Tableimage | image = SotA Crafting Sigil wood.jpg | imagewidth = 250}} {{Tablebottom}} gives...
Tableimage/doc
File:SotA Crafting Sigil wood.jpg
See also
Template:Tabletop
Template:Tablerow
Template:TablerowAsk
Template:TablerowShow
Template:TablerowOptional
Template:TablerowAskOptional
Template:TablerowShowOptional
Template:Tablebottom