Template:ItemInfoTable/doc

From Official Temtem Wiki
Jump to navigation Jump to search
Template-info.png Documentation

ItemInfoTable Table[edit]

The ItemInfoTable was specially made for tables displaying an image, name, location, cost, and description. This template aims to provide an easier and more customized table for cosmetic item tables and dye tables. It aims to bring uniformity across similar tables on the wiki, while offering a high level of customization.

Benefits[edit]

The main benefits to using this table are as follows:

  • The table auto-formats and auto-links names, locations, and images.
  • The Pansun image automatically appears next to the price.
  • The price is automatically formatted with any needed punctuation.
  • While offering uniformity, the column titles, table name, and column widths can be manually set on a need basis.

Usage[edit]

For basic use

{{ ItemInfoTable
| BoxTitle =

| RowXImage =
| RowXName = 
| RowXLocation = 
| RowXCost = 
| RowXDesc = 

More columns if needed...
}}

Renaming row names

{{ ItemInfoTable
| BoxTitle =

| Column1Name =
| Column2Name =
| Column3Name =
| Column4Name =
| Column5Name =

| RowXImage =
| RowXName = 
| RowXLocation = 
| RowXCost = 
| RowXDesc = 

More columns if needed...
}}

All parameters

{{ ItemInfoTable
| BoxTitle =
| BoxWidth =

| collapse =

| Column1Name =
| Column2Name =
| Column3Name =
| Column4Name =
| Column5Name =

| Column1Width =
| Column2Width =
| Column3Width =
| Column4Width =
| Column5Width =

| Col2noformat = 
| Col3noformat = 
| Col4noformat =

| RowXImage =
| RowXName = 
| RowXLocation = 
| RowXCost = 
| RowXDesc = 


More columns if needed...
}}

Parameters[edit]

BoxTitle
Default: List
Title of the table. Displays at the top of the table contents.
BoxWidth
Default: 100%
The width the entire table should take up. Accepts anything you throw at it, whether it's px, vw, or %.
collapse
Optional. When specified, the table's contents will initially appear hidden.
Column1Name
Default: Image
Optional. Title of Column 1 content.
Column2Name
Default: Name
Optional. Title of Column 2 content.
Column3Name
Default: Location
Optional. Title of Column 3 content.
Column4Name
Default: Cost
Optional. Title of Column 4 content.
Column5Name
Default: In-Game Description
Optional. Title of Column 5 content.
Column1Width
Default: auto
Optional. Width of Column 1. Accepts anything you thColumn at it, whether it's px, vw, or %.
Column2Width
Default: auto
Optional. Width of Column 2. Accepts anything you thColumn at it, whether it's px, vw, or %.
Column3Width
Default: auto
Optional. Width of Column 3. Accepts anything you thColumn at it, whether it's px, vw, or %.
Column4Width
Default: auto
Optional. Width of Column 4. Accepts anything you thColumn at it, whether it's px, vw, or %.
Column5Width
Default: auto
Optional. Width of Column 5. Accepts anything you thColumn at it, whether it's px, vw, or %. Automatically takes up the rest of the space available in the table.
Col2noformat
Optional. Removes formatting from column 2. This will remove any links automatically added for the text. Also removes any images auto added.
Col3noformat
Optional. Removes formatting from column 3. This will remove any links automatically added for the text. Also removes any images auto added.
Col4noformat
Optional. Removes formatting from column 4. This will remove any links automatically added for the text. Also removes any images auto added.

Note: This table supports X amount of rows, with X being 1-9999.... When creating rows, increase X by 1 for each row. See the example below for more information.

RowXImage
Image for Row. Only inlcude the filename, NOT the File:.
RowXName
Name of item. This will automatically create a link to it's article.
RowXLocation
Location of item. This will automatically create a link to the location's article.
RowXCost
Cost of the item. The number will be auto-formatted and the Pansun image will be added to the right of the number.
RowXDesc
The in-game description of the item. Any page linking needed can be done as well.


Example[edit]

The below example is taken from the Template:Cosmetics Bag page.

{{ ItemInfoTable
| BoxTitle = Cosmetic Bag List

| Row1Image = School Bag.png
| Row1Name = School Bag
| Row1Location = Character Creation
| Row1Cost = Free
| Row1Desc = A trusty backpack for school or a day trip to the beach

| Row2Image = Donut Bag.png
| Row2Name = Donut Bag
| Row2Location = Arissola
| Row2Cost = N/A
| Row2Desc = Not the most practical of rucksacks... but it's so yummy!

| Row3Image = Striped backpack.png
| Row3Name = Striped backpack
| Row3Location = Turquesa
| Row3Cost = 33499
| Row3Desc = Ideal for school, Dojo practice or simply to carry your [[TemCard|TemCards]] and a sandwich.

| Row4Image = Leafy Bag.png
| Row4Name = Leafy Bag
| Row4Location = Nanga
| Row4Cost = 2999
| Row4Desc = Made with authentic, especially cured leaves of the [[Giant Banyan]] by [[Mokupuni]] artisants.

| Row5Image = Survival Kit.png
| Row5Name = Survival Kit
| Row5Location = Quetzal 
| Row5Cost = 38999
| Row5Desc = Water container, with water purifying tables and the rest of the must-haves for survival on the surface of [[Tucma]].

| Row6Image = Trendy knapsack.png
| Row6Name = Trendy knapsack
| Row6Location = Nanga
| Row6Cost = 25999
| Row6Desc = A small and smart knapsack, with two separate zipped compartments, to keep Temcards and potions tidy.
}}

Produces: Table below.


Cosmetic Bag List
Image Name Location Cost In-Game Description
School Bag.png
School Bag Character Creation Free Pansuns.png A trusty backpack for school or a day trip to the beach
Donut Bag.png
Donut Bag Arissola N/A Pansuns.png Not the most practical of rucksacks... but it's so yummy!
Striped backpack.png
Striped backpack Turquesa 33,499 Pansuns.png Ideal for school, Dojo practice or simply to carry your TemCards and a sandwich.
Leafy Bag.png
Leafy Bag Nanga 2,999 Pansuns.png Made with authentic, especially cured leaves of the Giant Banyan by Mokupuni artisants.
Survival Kit.png
Survival Kit Quetzal 38,999 Pansuns.png Water container, with water purifying tables and the rest of the must-haves for survival on the surface of Tucma.
Trendy Knapsack.png
Trendy knapsack Nanga 25,999 Pansuns.png A small and smart knapsack, with two separate zipped compartments, to keep Temcards and potions tidy.