Template:Resource/doc: Difference between revisions

(Added documentation)
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 19: Line 19:
}}
}}
</pre>
</pre>
* '''imagearea''': The filename of the image to display. Default: [[media:No_image.png|No image.png]].
{| class="table table-hover"
* '''imagesize''': The horizontal width of the image, in pixels. For example: <tt>200px</tt>. Default: image width.
! Parameter !! Description !! Default
* '''appearance''': The version number of the first release in which this resource appeared. Default: <tt>?</tt>
|-
* '''weight''': The number of [[weight unit]]s that this resource takes up in inventories. For example: <tt>25 weight units</tt>. Default: not visible.
| <code>imagearea</code> || The filename of the image to display. || [[:File:No_image.png|No image.png]]
* '''value''': The trading value of this resource in the [[trading post]]. For example: <tt>4</tt>. Default: not visible.
|-
| <code>imagesize</code> || The horizontal width of the image, in pixels. For example: <tt>200px</tt>. || image width.
|-
| <code>appearance</code> || The version number of the first release in which this resource appeared. || <tt>?</tt>
|-
| <code>weight</code> || The number of [[weight unit]]s that this resource takes up in inventories. E.g. <tt>25 weight units</tt>. || Optional
|-
| <code>value</code> || The trading value of this resource in the [[trading post]]. For example <tt>4</tt>. || Optional
|}


== See also ==
== See also ==

Latest revision as of 16:07, 2 March 2014

Resource
Fish.jpg
First Appearance

1.0.0

Weight

1 weight unit

Trading value

1

Usage

The example on the right was made using this code:

{{resource
|imagearea=Fish.jpg
|imagesize=200px
|appearance=1.0.0
|weight=1 [[weight unit]]
|value=1
}}
Parameter Description Default
imagearea The filename of the image to display. No image.png
imagesize The horizontal width of the image, in pixels. For example: 200px. image width.
appearance The version number of the first release in which this resource appeared. ?
weight The number of weight units that this resource takes up in inventories. E.g. 25 weight units. Optional
value The trading value of this resource in the trading post. For example 4. Optional

See also


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

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis