First Example |
---|
Nominal Cost |
42.00¢ |
Weight |
9.00kg |
Pack Size |
|
(Hate writing on my phone. Hope it make sense.) |
|||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
=How to use= | ==How to use== | ||
To use this template, simply copy this into the very top of a commodity's page. | To use this template, simply copy this into the very top of a commodity's page. | ||
Line 5: | Line 5: | ||
<nowiki>| Name = </nowiki> | <nowiki>| Name = </nowiki> | ||
<nowiki>| Picture = </nowiki> | <nowiki>| Picture = </nowiki> | ||
<nowiki>| Cost = </nowiki> | <nowiki>| Cost = ¢</nowiki> | ||
<nowiki>| Weight = </nowiki> | <nowiki>| Weight = kg</nowiki> | ||
<nowiki>| Size = </nowiki> | <nowiki>| Size = </nowiki> | ||
<nowiki>| Capacity = </nowiki> | <nowiki>| Capacity = </nowiki> | ||
Line 19: | Line 19: | ||
* Name = <code><nowiki>{{PAGENAME}}</nowiki></code> | * Name = <code><nowiki>{{PAGENAME}}</nowiki></code> | ||
* Picture = <code>Imbox deletion.png</code> | * Picture = <code>Imbox deletion.png</code> | ||
* Cost = <code>1. | * Cost = <code>1.00¢</code> | ||
* Weight = <code>0.00kg</code> | * Weight = <code>0.00kg</code> | ||
* Size = <code>n/a</code> | * Size = <code>n/a</code> | ||
* Capacity = (Special, the capacity section will only be visible if the "capacity" tag is used) | * Capacity = (Special, the capacity section will only be visible if the "capacity" tag is used) | ||
===Special Tabber Option=== | |||
A special styling option is also provided if you're using the infobox inside a tabbed section: | |||
<nowiki>Tabbed = yes</nowiki> | |||
Any value being given will center the table and also set its width to 100%. If left blank, the default style of floating to the right is used, and the table will use its default width. This is mainly used for tabbed commodities when used in the [[Template:TabberHeader]] template. '''Do not''' use outside of a tabbed section! | |||
==Minimal Example== | ==Minimal Example== | ||
Line 56: | Line 61: | ||
| Name = Example | | Name = Example | ||
| Picture = C_Key.png | | Picture = C_Key.png | ||
| Cost = 42. | | Cost = 42.00¢ | ||
| Weight = 9.00kg | | Weight = 9.00kg | ||
| Size = | | Size = 27 | ||
| Capacity = | | Capacity = | ||
}} | }} | ||
Line 64: | Line 69: | ||
<nowiki>| Name = Example</nowiki> | <nowiki>| Name = Example</nowiki> | ||
<nowiki>| Picture = C_Key.png</nowiki> | <nowiki>| Picture = C_Key.png</nowiki> | ||
<nowiki>| Cost = 42. | <nowiki>| Cost = 42.00¢</nowiki> | ||
<nowiki>| Weight = 9.00kg</nowiki> | |||
<nowiki>| Size = 27</nowiki> | |||
<nowiki>| Capacity = </nowiki> | |||
<nowiki>}}</nowiki> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
==Tabber Example== | |||
{{TabberHeader}}<tabber> | |||
|-|First= | |||
{{Commodity | |||
| Name = First Example | |||
| Picture = C_Key.png | |||
| Cost = 42.00¢ | |||
| Weight = 9.00kg | |||
| Size = 27 | |||
| Capacity = | |||
| Center = yes | |||
}} | |||
|-|Second= | |||
{{Commodity | |||
| Name = Second Example | |||
| Picture = C_Key.png | |||
| Cost = 2142.00¢ | |||
| Weight = 10.00kg | |||
| Size = 28 | |||
| Capacity = | |||
| Center = yes | |||
}} | |||
</tabber>{{TabberFooter}} | |||
<nowiki>{{TabberHeader}}<tabber></nowiki> | |||
<nowiki>|-|First=</nowiki> | |||
<nowiki>{{Commodity</nowiki> | |||
<nowiki>| Name = First Example</nowiki> | |||
<nowiki>| Picture = C_Key.png</nowiki> | |||
<nowiki>| Cost = 42.00¢</nowiki> | |||
<nowiki>| Weight = 9.00kg</nowiki> | <nowiki>| Weight = 9.00kg</nowiki> | ||
<nowiki>| Size = | <nowiki>| Size = 27</nowiki> | ||
<nowiki>| Capacity = </nowiki> | |||
<nowiki>| Tabbed = yes</nowiki> | |||
<nowiki>}}</nowiki> | |||
<nowiki>|-|Second=</nowiki> | |||
<nowiki>{{Commodity</nowiki> | |||
<nowiki>| Name = Second Example</nowiki> | |||
<nowiki>| Picture = C_Key.png</nowiki> | |||
<nowiki>| Cost = 2142.00¢</nowiki> | |||
<nowiki>| Weight = 18.00kg</nowiki> | |||
<nowiki>| Size = 13</nowiki> | |||
<nowiki>| Capacity = </nowiki> | <nowiki>| Capacity = </nowiki> | ||
<nowiki>| Tabbed = yes</nowiki> | |||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
<nowiki></tabber>{{TabberFooter}}</nowiki> |
To use this template, simply copy this into the very top of a commodity's page.
{{Commodity | Name = | Picture = | Cost = ¢ | Weight = kg | Size = | Capacity = }}
Then fill in information as need. See the examples below.
Notes:
A few of the fields can left blank to invoke the default, which is:
{{PAGENAME}}
Imbox deletion.png
1.00¢
0.00kg
n/a
A special styling option is also provided if you're using the infobox inside a tabbed section:
Tabbed = yes
Any value being given will center the table and also set its width to 100%. If left blank, the default style of floating to the right is used, and the table will use its default width. This is mainly used for tabbed commodities when used in the Template:TabberHeader template. Do not use outside of a tabbed section!
Commodity/Doc |
---|
Nominal Cost |
1.00¢ |
Weight |
0.00kg |
Pack Size |
|
{{Commodity | Name = | Picture = | Cost = | Weight = | Size = | Capacity = }}
Example |
---|
Nominal Cost |
42.00¢ |
Weight |
9.00kg |
Pack Size |
|
{{Commodity | Name = Example | Picture = C_Key.png | Cost = 42.00¢ | Weight = 9.00kg | Size = 27 | Capacity = }}
{{TabberHeader}}<tabber> |-|First= {{Commodity | Name = First Example | Picture = C_Key.png | Cost = 42.00¢ | Weight = 9.00kg | Size = 27 | Capacity = | Tabbed = yes }} |-|Second= {{Commodity | Name = Second Example | Picture = C_Key.png | Cost = 2142.00¢ | Weight = 18.00kg | Size = 13 | Capacity = | Tabbed = yes }} </tabber>{{TabberFooter}}