Template:Items/doc: Difference between revisions

From Another Chance Wiki
Jump to navigation Jump to search
(Created page)
 
No edit summary
Line 21: Line 21:
             "required": true
             "required": true
         },
         },
"interact": {
        "interact": {
             "label": "Interaction Text",
             "label": "Interaction Text",
             "description": "The text that appears when pressing the hand icon on the item in the inventory. Use \"N/A\" if it doesn't have one.",
             "description": "The text that appears when pressing the hand icon on the item in the inventory. Use \"N/A\" if it doesn't have one.",
             "type": "string",
             "type": "string",
             "required": true
             "required": true
        },
        "consume": {
            "label": "Consume Text",
            "description": "The text that appears when MC consumes the item from the inventory.",
            "type": "string",
            "required": false
         },
         },
         "obtain": {
         "obtain": {

Revision as of 17:00, 21 November 2026

This template creates a table to give a brief overview and information on items collected in the game.

Template parameters

ParameterDescriptionTypeStatus
Imageimage

A single 95x95 image or multiple 95x95 images used to represent the item.

Stringrequired
Code Namecode

The name internally used when adding or removing the item from the inventory.

Stringrequired
Investigation Textinvestigate

The text that appears when pressing the magnifying glass icon on the item in the inventory. Use "N/A" if it doesn't have one.

Stringrequired
Interaction Textinteract

The text that appears when pressing the hand icon on the item in the inventory. Use "N/A" if it doesn't have one.

Stringrequired
Consume Textconsume

The text that appears when MC consumes the item from the inventory.

Stringoptional
How to Obtainobtain

Describing all the ways that the item can be obtained in the game. Split multiple up using the <br> tag.

Stringrequired
Use(s)use

Describing all the ways that the item can be used in the game. Split multiple up using the <br> tag.

Stringrequired
{{Items
|image=[[File:Cake slice.webp|180px]]
|code=cake_slice
|investigate=This cocaine cake is more addictive than... well, cocaine.
|interact=[[Flora]] always finds her recipes on the dark web.
|obtain=Reward for completing [[Punked]].<br>Has a chance to be found in the rightmost locker in [[A Beautiful Motive]].
|use=Give to [[Flora]] during [[Tiny Thirsty Tree]].
}}
Cake slice.webp


Code Name
"cake_slice"
Investigate.webp Investigation Text
"This cocaine cake is more addictive than... well, cocaine."
Interact.webp Interaction Text
"Flora always finds her recipes on the dark web."
How to Obtain Reward for completing Punked.
Has a chance to be found in the rightmost locker in A Beautiful Motive.
Use(s) Give to Flora during Tiny Thirsty Tree.