First Example |
---|
Nominal Cost |
42.00¢ |
Weight |
9.00kg |
Pack Size |
|
(→Special Tabber Options: docs on new option) |
mNo edit summary |
||
Line 31: | Line 31: | ||
One is also provided if you wish to set the width of the table to 100%. This is to prevent the width from jumping around between tab changes: | One is also provided if you wish to set the width of the table to 100%. This is to prevent the width from jumping around between tab changes: | ||
<nowiki>Fullwidth = yes</nowiki> | <nowiki>Fullwidth = yes</nowiki> | ||
Any value being given will set the table's width to 100%. '''Do not''' use outside of a tabbed section! | Any value being given will set the table's width to 100%. This will match the width you set in the <nowiki>{{TabberHeader}}</nowiki> template. '''Do not''' use outside of a tabbed section! | ||
==Minimal Example== | ==Minimal Example== |
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 want to center the infobox:
Center = yes
Any value being given will center the table. If left blank, the default style of floating to the right is used. This is mainly used for tabbed commodities.
One is also provided if you wish to set the width of the table to 100%. This is to prevent the width from jumping around between tab changes:
Fullwidth = yes
Any value being given will set the table's width to 100%. This will match the width you set in the {{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 = | Center = yes }} |-|Second= {{Commodity | Name = Second Example | Picture = C_Key.png | Cost = 2142.00¢ | Weight = 18.00kg | Size = 13 | Capacity = | Center = yes }} </tabber>{{TabberFooter}}