Raft Wiki
Advertisement
You are using mobile version of "Infobox Components tabs"! We recommend viewing this page via "PC mode" or by switching to the desktop skin!
About the Documentation template Documentation - Template:Infobox/componentsTabsViewEditHistoryPurge

ComponentsTabs is a radio-button powered Tabs system, which allows to show different variants of an item.

Uses

When implemented, remove all blank parameters, since they're taking a big amount of space.

Normal use (4 tabs)

Note: Requires 2 tabs. Otherwise, use old format. By default, you'll use:

{{Infobox
| name =
| name2 =
| name3 =
| name4 =

| item1component1 =
| item1component2 =
| item1component3 =
| item1component4 =
| item1component5 =
| item2component1 =
| item2component2 =
| item2component3 =
| item2component4 =
| item2component5 =
| item3component1 =
| item3component2 =
| item3component3 =
| item3component4 =
| item3component5 =
| item4component1 =
| item4component2 =
| item4component3 =
| item4component4 =
| item4component5 =
...
}}

The nameX parametre

Note: name2, name3, name4, name5, name6, name7 and name8 are temporary parametres. Please, note that we may remove them at any moment, once we fix all issues, that require us to use these parameres.

Except the first item, we add a number to indicate the existence of the item in this system. They're also used as image paths.

Item format

|itemXcomponentY = Name; Amount

Name is the name of the item (ex. Plank) and amount is a number of items needed for crafting (ex. 5).

The separator of Name and Amount is a semicolon (;)

Specialized use (8 tabs)

Requires 5 tabs. Otherwise the normal one will show up.

| name =
| name2 =
| name3 =
| name4 =
| name5 =
| name6 =
| name7 =
| name8 =

| item1component1 =
| item1component2 =
| item1component3 =
| item1component4 =
| item1component5 =
| item2component1 =
| item2component2 =
| item2component3 =
| item2component4 =
| item2component5 =
| item3component1 =
| item3component2 =
| item3component3 =
| item3component4 =
| item3component5 =
| item4component1 =
| item4component2 =
| item4component3 =
| item4component4 =
| item4component5 =
| item5component1 =
| item5component2 =
| item5component3 =
| item5component4 =
| item5component5 =
| item6component1 =
| item6component2 =
| item6component3 =
| item6component4 =
| item6component5 =
| item7component1 =
| item7component2 =
| item7component3 =
| item7component4 =
| item7component5 =
| item8component1 =
| item8component2 =
| item8component3 =
| item8component4 =
| item8component5 =

The above was transcluded from Template:Infobox/componentsTabs/doc

Advertisement