Difference between revisions of "Template:Resource/doc"

(Added documentation)
 
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.
+
|-
* '''appearance''': The version number of the first release in which this resource appeared. Default: <tt>?</tt>
+
| <code>imagearea</code> || The filename of the image to display. || [[:File:No_image.png|No image.png]]
* '''weight''': The number of [[weight unit]]s that this resource takes up in inventories. For example: <tt>25 weight units</tt>. Default: not visible.
+
|-
* '''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 ==

Revision as of 11:11, 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
}}
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


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
Looking for a server?

Join Techworld - an amazing custom modpack server.