Template:Consumables: Difference between revisions
(removed styling header & removed nested table) |
(merged doc with template page) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <noinclude> | ||
{{Documentation/sandbox|doc= | |||
The {{tll|Consumables}} (previously called {{Code|'''Consumables2'''}}) template is used to add a table to a food item's page. If a property is not included or is 0, it will not be displayed. | |||
==Parameters== | |||
===Table=== | |||
*position [left{{!}}center{{!}}right] | |||
===Images=== | |||
*image [required] | |||
*burned image | |||
*rotten image | |||
*cooked image | |||
===Properties=== | |||
*perishable [true{{!}}false] (use 1 for true, 0 for false) | |||
*cookable [true{{!}}false] (use 1 for true, 0 for false) | |||
===Uncooked=== | |||
;Fresh: | |||
*weight | |||
*hunger | |||
*boredom | |||
*stress | |||
*unhappiness | |||
;Stale: | |||
<small>(Unrotten meaning not fresh anymore but not yet rotten</small> | |||
*unrotten hunger | |||
*unrotten boredom | |||
*unrotten stress | |||
*unrotten unhappiness | |||
;Rotten: | |||
*rotten hunger | |||
*rotten boredom | |||
*rotten stress | |||
*rotten unhappiness | |||
===Cooked=== | |||
;Fresh: | |||
*cooked weight | |||
*cooked hunger | |||
*cooked boredom | |||
*cooked stress | |||
*cooked unhappiness | |||
;Stale: | |||
*unrottencooked weight | |||
*unrottencooked hunger | |||
*unrottencooked boredom | |||
*unrottencooked stress | |||
*unrottencooked unhappiness | |||
;Rotten: | |||
*rottencooked weight | |||
*rottencooked hunger | |||
*rottencooked boredom | |||
*rottencooked stress | |||
*rottencooked unhappiness | |||
===Burned=== | |||
;Burned: | |||
*burned hunger | |||
*burned boredom | |||
*burned unhappiness | |||
==Examples== | |||
===Example 1=== | |||
;Code | |||
<pre>{{Consumables | |||
|image = Grapes.png | |||
|hunger = -15 | |||
|unrotten hunger = -11 | |||
|unrotten boredom = +10 | |||
|unrotten unhappiness = +10 | |||
|unrotten image = Grapes.png | |||
|rotten hunger = -6 | |||
|rotten boredom = +20 | |||
|rotten unhappiness = +20 | |||
|perishable = 1 | |||
|rotten image = GrapesRotten.png | |||
}}</pre> | |||
;Result | |||
{{Consumables | |||
|image = Grapes.png | |||
|hunger = -15 | |||
|unrotten hunger = -11 | |||
|unrotten boredom = +10 | |||
|unrotten unhappiness = +10 | |||
|unrotten image = Grapes.png | |||
|rotten hunger = -6 | |||
|rotten boredom = +20 | |||
|rotten unhappiness = +20 | |||
|perishable = 1 | |||
|rotten image = GrapesRotten.png | |||
}} | |||
===Example 2=== | |||
;Code | |||
<pre>{{Consumables | |||
|position = center | |||
|image = Chicken.png | |||
|rotten image = Chicken Rotten.png | |||
|cooked image = Chicken Cooked.png | |||
|burned image = Chicken Overdone.png | |||
|perishable = 1 | |||
|cookable = 1 | |||
|hunger = -35 | |||
|dangerous uncooked = 1 | |||
|boredom = 0 | |||
|unhappiness = 0 | |||
|unrotten hunger = -26 | |||
|unrotten unhappiness = +10 | |||
|unrotten boredom = +10 | |||
|rotten hunger = -15 | |||
|rotten unhappiness = +20 | |||
|rotten boredom = +20 | |||
|cooked hunger = -45 | |||
|cooked unhappiness = 0 | |||
|cooked boredom = 0 | |||
|unrottencooked hunger = -26 | |||
|unrottencooked unhappiness = +10 | |||
|unrottencooked boredom = +10 | |||
|rottencooked hunger = -15 | |||
rottencooked unhappiness = +20 | |||
|rottencooked boredom = +20 | |||
|burned hunger = -11 | |||
|burned boredom = +20 | |||
|burned unhappiness = +20 | |||
}}</pre> | |||
;Result | |||
{{Consumables | |||
|image = Chicken.png | |||
|rotten image = Chicken Rotten.png | |||
|cooked image = Chicken Cooked.png | |||
|burned image = Chicken Overdone.png | |||
|perishable = 1 | |||
|cookable = 1 | |||
|hunger = -35 | |||
|dangerous uncooked = 1 | |||
|boredom = 0 | |||
|unhappiness = 0 | |||
|unrotten hunger = -26 | |||
|unrotten unhappiness = +10 | |||
|unrotten boredom = +10 | |||
|rotten hunger = -15 | |||
|rotten unhappiness = +20 | |||
|rotten boredom = +20 | |||
|cooked hunger = -45 | |||
|cooked unhappiness = 0 | |||
|cooked boredom = 0 | |||
|unrottencooked hunger = -26 | |||
|unrottencooked unhappiness = +10 | |||
|unrottencooked boredom = +10 | |||
|rottencooked hunger = -15 | |||
|rottencooked unhappiness = +20 | |||
|rottencooked boredom = +20 | |||
|burned hunger = -11 | |||
|burned boredom = +20 | |||
|burned unhappiness = +20 | |||
}} | |||
==See also== | |||
*{{ll|Template:ConditionChange}} | |||
}} | |||
{{ll|Category:Templates}} | |||
</noinclude><includeonly><!-- | |||
########################### | ########################### | ||
Line 132: | Line 302: | ||
{{ConditionChange|WillMakeSick=1}} | {{ConditionChange|WillMakeSick=1}} | ||
</small> | </small> | ||
{{!}}}|}}|}}</includeonly | {{!}}}|}}|}}</includeonly> |
Revision as of 15:05, 4 April 2024
The {{Consumables}}
(previously called '''Consumables2'''
) template is used to add a table to a food item's page. If a property is not included or is 0, it will not be displayed.
Parameters
Table
- position [left|center|right]
Images
- image [required]
- burned image
- rotten image
- cooked image
Properties
- perishable [true|false] (use 1 for true, 0 for false)
- cookable [true|false] (use 1 for true, 0 for false)
Uncooked
- Fresh
- weight
- hunger
- boredom
- stress
- unhappiness
- Stale
(Unrotten meaning not fresh anymore but not yet rotten
- unrotten hunger
- unrotten boredom
- unrotten stress
- unrotten unhappiness
- Rotten
- rotten hunger
- rotten boredom
- rotten stress
- rotten unhappiness
Cooked
- Fresh
- cooked weight
- cooked hunger
- cooked boredom
- cooked stress
- cooked unhappiness
- Stale
- unrottencooked weight
- unrottencooked hunger
- unrottencooked boredom
- unrottencooked stress
- unrottencooked unhappiness
- Rotten
- rottencooked weight
- rottencooked hunger
- rottencooked boredom
- rottencooked stress
- rottencooked unhappiness
Burned
- Burned
- burned hunger
- burned boredom
- burned unhappiness
Examples
Example 1
- Code
{{Consumables |image = Grapes.png |hunger = -15 |unrotten hunger = -11 |unrotten boredom = +10 |unrotten unhappiness = +10 |unrotten image = Grapes.png |rotten hunger = -6 |rotten boredom = +20 |rotten unhappiness = +20 |perishable = 1 |rotten image = GrapesRotten.png }}
- Result
Fresh | Stale | Rotten |
---|---|---|
|
|
|
Example 2
- Code
{{Consumables |position = center |image = Chicken.png |rotten image = Chicken Rotten.png |cooked image = Chicken Cooked.png |burned image = Chicken Overdone.png |perishable = 1 |cookable = 1 |hunger = -35 |dangerous uncooked = 1 |boredom = 0 |unhappiness = 0 |unrotten hunger = -26 |unrotten unhappiness = +10 |unrotten boredom = +10 |rotten hunger = -15 |rotten unhappiness = +20 |rotten boredom = +20 |cooked hunger = -45 |cooked unhappiness = 0 |cooked boredom = 0 |unrottencooked hunger = -26 |unrottencooked unhappiness = +10 |unrottencooked boredom = +10 |rottencooked hunger = -15 rottencooked unhappiness = +20 |rottencooked boredom = +20 |burned hunger = -11 |burned boredom = +20 |burned unhappiness = +20 }}
- Result
Fresh | Stale | Rotten | |
---|---|---|---|
Uncooked
|
|
|
Hunger: -15 |
Cooked
|
|
| |
Burned
|
|