Template:Item/Food/Category: Difference between revisions

From Vintage Story Wiki
(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

Other languages:


[view | edit | history | purge this page]Documentation

Returns food category name by it's id. Support translations.

Template parameters

ParameterDescriptionTypeStatus
Food category id1

case-insensitive

Default
unknown
Example
protein
Stringrequired

Usage

{{Item/Food/Category|category id}}

Examples

Allowed food category ids
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.