First Example |
---|
Nominal Cost |
42.00¢ |
Weight |
9.00kg |
Pack Size |
|
(I think this will work?) |
(Forgot to add the other conditional here) |
||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{| style="float: right;" class="wikitable" | {| style="{{#if:{{{Tabbed|}}}{{{Center|}}}|margin: 0 auto;width:100%;|float:right;}}" class="wikitable" | ||
|+ {{#if:{{{Tabbed|}}}{{{Center|}}}||Commodity}} | |||
|- | |||
! {{#if:{{{Name|}}}|{{{Name}}}|{{PAGENAME}}}} | ! {{#if:{{{Name|}}}|{{{Name}}}|{{PAGENAME}}}} | ||
|- | |- | ||
| align="center" | [[File:{{#if:{{{Picture|}}}|{{{Picture}}}{{!}} | | align="center" | [[File:{{#if:{{{Picture|}}}|{{{Picture}}}{{!}}100px{{!}}{{{Picture}}}|Imbox deletion.png}}]] | ||
|- | |- | ||
! Nominal Cost | ! Nominal Cost | ||
|- | |- | ||
|| | | align="right" | {{#if:{{{Cost|}}}|{{{Cost}}}|1.00¢}} | ||
|- | |- | ||
! Weight | ! Weight | ||
|- | |- | ||
|| | | align="right" | {{#if:{{{Weight|}}}|{{{Weight}}}|0.00kg}} | ||
|- | |- | ||
! Pack Size | ! Pack Size | ||
|- | |- | ||
|| | || | ||
*{{#if:{{{Size|}}}|{{{Size}}}|n/a}} | * {{#if:{{{Size|}}}|{{{Size}}}|n/a}} | ||
{{#if:{{{Capacity|}}}|{{!}}- | {{#if:{{{Capacity|}}}|{{!}}- | ||
! Capacity | ! Capacity | ||
{{!}}- | {{!}}- | ||
{{!}}{{!}} | {{!}}{{!}} | ||
*{{{Capacity}}}}} | * {{{Capacity}}}}} | ||
|} | |} | ||
</includeonly><noinclude>{{Commodity/Doc}}</noinclude> | </includeonly><noinclude>{{Commodity/Doc}}</noinclude> |
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 |
---|
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}}