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:Infobox/doc: Difference between revisions

From SotA Wiki
Jump to navigation Jump to search
Fenyx4 (talk | contribs)
No edit summary
Gordias (talk | contribs)
mNo edit summary
Line 1: Line 1:
;Description
{{tocright}}
:A template for adding simple infobox with only an image.
== Purpose ==
;Syntax
This template may be used for adding simple infobox with only an image.
:{{T|Infobox|name|image|imagewidth}}
 
;Sample code
== Usage ==
:<code><nowiki>{{Infobox}}</nowiki></code> gives...
{| style="background:transparent; border:none;"
:{{Infobox}}
|<pre>
<br style="clear:both;"/>
{{Infobox|name=imagename|image=Image.jpg|imagewidth=width}}
:<code><nowiki>{{Infobox|name=Codex|image=Daedalus_small.jpg|imagewidth=20}}</nowiki></code> gives...
</pre>
:{{Infobox|name=Combat Sigil|image=Daedalus_small.jpg|imagewidth=250}}
|}
<br style="clear:both;"/>
 
;See also
== Parameters ==
:...
{| class="sotawikitable"
! Parameter
! Explanation
|-
| name ''(optional)''
| The title displayed at the caption of the infobox. Default is page name.
|-
| image ''(optional)''
| The name of the image file (if there is any) together with its extension.
|-
| imagewidth ''(optional)''
| Width of the image in pixels. Default is 250.
|}
 
== Example ==
<pre>{{Infobox|name=Codex|image=Daedalus_small.jpg|imagewidth=300}}</pre>
 
{{Infobox|name=Codex|image=Daedalus_small.jpg|imagewidth=300}}
 


<noinclude>[[Category:Template Documentation|{{PAGENAME}}]]</noinclude>
<noinclude>[[Category:Template Documentation|{{PAGENAME}}]]</noinclude>

Revision as of 10:17, 16 March 2014

Purpose

This template may be used for adding simple infobox with only an image.

Usage

{{Infobox|name=imagename|image=Image.jpg|imagewidth=width}}

Parameters

Parameter Explanation
name (optional) The title displayed at the caption of the infobox. Default is page name.
image (optional) The name of the image file (if there is any) together with its extension.
imagewidth (optional) Width of the image in pixels. Default is 250.

Example

{{Infobox|name=Codex|image=Daedalus_small.jpg|imagewidth=300}}


Codex
File:Daedalus small.jpg