Template:Commodity/Doc: Difference between revisions

From Hazeron Wiki
Jump to navigation Jump to search
(Added Tabber example.)
m (Minor fix.)
Line 6: Line 6:
  <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 61: Line 61:
| Name = Example
| Name = Example
| Picture = C_Key.png
| Picture = C_Key.png
| Cost = 42.00
| Cost = 42.00¢
| Weight = 9.00kg
| Weight = 9.00kg
| Size = 27
| Size = 27
Line 93: Line 93:
| Name = First Example
| Name = First Example
| Picture = C_Key.png
| Picture = C_Key.png
| Cost = 42.00
| Cost = 42.00¢
| Weight = 9.00kg
| Weight = 9.00kg
| Size = 27
| Size = 27
Line 103: Line 103:
| Name = Second Example
| Name = Second Example
| Picture = C_Key.png
| Picture = C_Key.png
| Cost = 2142.00
| Cost = 2142.00¢
| Weight = 10.00kg
| Weight = 10.00kg
| Size = 28
| Size = 28
Line 125: Line 125:
  <nowiki>| Name = Second Example</nowiki>
  <nowiki>| Name = Second Example</nowiki>
  <nowiki>| Picture = C_Key.png</nowiki>
  <nowiki>| Picture = C_Key.png</nowiki>
  <nowiki>| Cost = 2142.00</nowiki>
  <nowiki>| Cost = 2142.00¢</nowiki>
  <nowiki>| Weight = 10.00kg</nowiki>
  <nowiki>| Weight = 18.00kg</nowiki>
  <nowiki>| Size = 28</nowiki>
  <nowiki>| Size = 13</nowiki>
  <nowiki>| Capacity = </nowiki>
  <nowiki>| Capacity = </nowiki>
  <nowiki>| Center = yes</nowiki>
  <nowiki>| Center = yes</nowiki>
  <nowiki>}}</nowiki>
  <nowiki>}}</nowiki>
  <nowiki></tabber>{{TabberFooter}}</nowiki>
  <nowiki></tabber>{{TabberFooter}}</nowiki>

Revision as of 19:57, 26 February 2024

How to use

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:

  • If the commodity does not have any capacity, just leave the capacity tag blank.

A few of the fields can left blank to invoke the default, which is:

  • Name = {{PAGENAME}}
  • Picture = Imbox deletion.png
  • Cost = 1.00¢
  • Weight = 0.00kg
  • Size = n/a
  • Capacity = (Special, the capacity section will only be visible if the "capacity" tag is used)

Special Tabber Options

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.

Minimal Example

Commodity
Commodity/Doc
Nominal Cost
1.00¢
Weight
0.00kg
Pack Size
  • n/a
{{Commodity
| Name = 
| Picture = 
| Cost = 
| Weight = 
| Size = 
| Capacity = 
}}






Full Examples

Commodity
Example
C_Key.png
Nominal Cost
42.00¢
Weight
9.00kg
Pack Size
  • 27
{{Commodity
| Name = Example
| Picture = C_Key.png
| Cost = 42.00¢
| Weight = 9.00kg
| Size = 27
| Capacity = 
}}







Tabber Example

First Example
C_Key.png
Nominal Cost
42.00¢
Weight
9.00kg
Pack Size
  • 27

Second Example
C_Key.png
Nominal Cost
2142.00¢
Weight
10.00kg
Pack Size
  • 28

{{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}}