Template:Item/Food/Category: Difference between revisions
From Vintage Story Wiki
< Template:Item | Food
(7 food categories) |
(Marked this version for translation) |
||
Line 1: | Line 1: | ||
<noinclude><languages /></noinclude> | <noinclude><languages /></noinclude> | ||
<includeonly>{{#switch: {{lc: {{{1|}}} }} | <includeonly>{{#switch: {{lc: {{{1|}}} }} | ||
| fruit = <translate>Fruit</translate> | | fruit = <translate><!--T:1--> Fruit</translate> | ||
| vegetable = <translate>Vegetable</translate> | | vegetable = <translate><!--T:2--> Vegetable</translate> | ||
| grain = <translate>Grain</translate> | | grain = <translate><!--T:3--> Grain</translate> | ||
| protein = <translate>Protein</translate> | | protein = <translate><!--T:4--> Protein</translate> | ||
| dairy = <translate>Dairy</translate> | | dairy = <translate><!--T:5--> Dairy</translate> | ||
| no nutrition | | no nutrition | ||
| nonutrition = <translate>No nutrition</translate> | | nonutrition = <translate><!--T:6--> No nutrition</translate> | ||
| #default = {{{1}}} <!-- Fallback to input value --> | | #default = {{{1}}} <!-- Fallback to input value --> | ||
| | | | ||
| unknown = <translate>Unknown</translate> | | unknown = <translate><!--T:7--> Unknown</translate> | ||
}}</includeonly> | }}</includeonly> | ||
<noinclude>{{Documentation}}</noinclude> | <noinclude>{{Documentation}}</noinclude> |
Latest revision as of 14:59, 11 December 2023
[view | edit | history | purge this page]Documentation
Returns food category name by it's id. Support translations.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Food category id | 1 | case-insensitive
| String | required |
Usage
{{Item/Food/Category|category id}}
Examples
id | Code | Result |
---|---|---|
fruit | {{Item/Food/Category|fruit}} |
Fruit |
vegetable | {{Item/Food/Category|vegetable}} |
Vegetable |
grain | {{Item/Food/Category|grain}} |
Grain |
protein | {{Item/Food/Category|protein}} |
Protein |
grain | {{Item/Food/Category|grain}} |
Grain |
dairy | {{Item/Food/Category|dairy}} |
Dairy |
nonutrition | {{Item/Food/Category|nonutrition}} |
No nutrition |
unknown | {{Item/Food/Category|unknown}} |
Unknown |
[view | edit | history | purge this page]The above documentation is transcluded from Template:Item/Food/Category/doc.