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
Jump to navigation
Jump to search
m Changed category. |
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 | ||
: | :{{T|image|imagewidth|imageheight|caption|collection}} | ||
| image | == Parameters == | ||
| imagewidth | {| 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 | <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...
| File:SotA Crafting Sigil wood.jpg |