Template:Item/doc: Difference between revisions

From Vintage Story Wiki
Update due to new Template:Item/Food/Category
No edit summary
(Update due to new Template:Item/Food/Category)
 
(11 intermediate revisions by one other user not shown)
Line 1: Line 1:
<languages />
<noinclude><languages /></noinclude>
<translate>
<translate>
<!--T:1-->
<!--T:1-->
Line 26: Line 26:
|OutputAmount=<translate><!--T:26--> Number of items obtained after emptying the container, defaults to 1</translate>
|OutputAmount=<translate><!--T:26--> Number of items obtained after emptying the container, defaults to 1</translate>


|FreshTime=<translate><!--T:27--> Time in hours the item stays fresh (i.e. time before you see it as 0% spoiled)</translate>
|FreshTime=<translate><!--T:27--> Time the item stays fresh (e.g. time before you see it as 0% spoiled)</translate>
|TransitionTime=<translate><!--T:28--> Time in hours the item takes to turn into something else (i.e. time between 0% spoiled to 100% spoiled)</translate>
|TransitionTime=<translate><!--T:28--> Time the item takes to turn into something else (e.g. time between 0% spoiled to 100% spoiled)</translate>
|TransitionRatio=<translate><!--T:29--> Conversion ratio of fresh stacksize to transitioned stack size (e.g. 10 onions turned into 5 rot: 0.5)</translate>
|TransitionRatio=<translate><!--T:29--> Conversion ratio of fresh stacksize to transitioned stack size (e.g. 10 onions turned into 5 rot: 0.5)</translate>


|Satiety=<translate><!--T:30--> Satiety points the item provides</translate>
|Satiety=<translate><!--T:30--> Satiety points the item provides</translate>
|Category=<translate><!--T:31--> Satiety category of the item (e.g. Protein)</translate>
|Category=<translate><!--T:31--> Satiety category of the item. One of the 7 allowed options (e.g. Protein)</translate>


|FloatRight=<translate><!--T:32--> Whether or not the box should float on the right side of the page (so you don't have to use a <nowiki><div></div></nowiki> tag)</translate>
|FloatRight=<translate><!--T:32--> Whether or not the box should float on the right side of the page (so you don't have to use a <nowiki><div></div></nowiki> tag)</translate>
Line 73: Line 73:
| ''OutputAmount'' || <translate><!--T:72--> Amount of items obtained after emptying the container</translate> || <translate><!--T:73--> number</translate> || <translate><!--T:74--> yes if ''OutputName'' is present</translate>
| ''OutputAmount'' || <translate><!--T:72--> Amount of items obtained after emptying the container</translate> || <translate><!--T:73--> number</translate> || <translate><!--T:74--> yes if ''OutputName'' is present</translate>
|-
|-
| ''FreshTime'' || <translate><!--T:75--> The amount of hours this item stays fresh / untransitioned</translate> || <translate><!--T:76--> number</translate> || <translate><!--T:77--> yes for ''Item/Transitionable''</translate>
| ''FreshTime'' || <translate><!--T:75--> The amount of time this item stays fresh / untransitioned</translate> || <translate><!--T:76--> string</translate> || <translate><!--T:77--> yes for ''Item/Transitionable''</translate>
|-
|-
| ''TransitionTime'' || <translate><!--T:78--> The amount of time it takes for the item to transition e.g. from 0% spoiled to 100% spoiled</translate> || <translate><!--T:79--> number</translate> || <translate><!--T:80--> yes for ''Item/Transitionable''</translate>
| ''TransitionTime'' || <translate><!--T:78--> The amount of time it takes for the item to transition e.g. from 0% spoiled to 100% spoiled</translate> || <translate><!--T:79--> string</translate> || <translate><!--T:80--> yes for ''Item/Transitionable''</translate>
|-
|-
| ''TransitionRatio'' || <translate><!--T:81--> Conversion ratio of fresh stacksize to transitioned stack size e.g. 10 apples transition to 5 rots = 0.50</translate> || <translate><!--T:82--> float</translate> || <translate><!--T:83--> no</translate>
| ''TransitionRatio'' || <translate><!--T:81--> Conversion ratio of fresh stacksize to transitioned stack size e.g. 10 apples transition to 5 rots = 0.50</translate> || <translate><!--T:82--> float</translate> || <translate><!--T:83--> no</translate>
Line 81: Line 81:
| ''Satiety'' || <translate><!--T:84--> Satiety points the item provides</translate> || <translate><!--T:85--> number</translate> || <translate><!--T:86--> yes for ''Item/Food''</translate>
| ''Satiety'' || <translate><!--T:84--> Satiety points the item provides</translate> || <translate><!--T:85--> number</translate> || <translate><!--T:86--> yes for ''Item/Food''</translate>
|-
|-
| ''Category'' || <translate><!--T:87--> Satiety category of the item (e.g. Protein)</translate> || <translate><!--T:88--> string</translate> || <translate><!--T:89--> yes for ''Item/Food''</translate>
| ''Category'' || <translate><!--T:87--> Satiety category of the item. One of the [[Template:Item/Food/Category|7 allowed options]] (e.g. Protein)</translate> || <translate><!--T:88--> string</translate> || <translate><!--T:89--> yes for ''Item/Food''</translate>
|-
|-
| ''FloatRight'' || <translate><!--T:90--> Whether or not the box should float on the right side of the page<br>(so you don't have to use a <nowiki><div></div></nowiki> tag)</translate> || <translate><!--T:91--> any</translate> || <translate><!--T:92--> no</translate>
| ''FloatRight'' || <translate><!--T:90--> Whether or not the box should float on the right side of the page<br>(so you don't have to use a <nowiki><div></div></nowiki> tag)</translate> || <translate><!--T:91--> any</translate> || <translate><!--T:92--> no</translate>
Line 125: Line 125:
}}
}}
|-
|-
| <pre>
| <font style="font-family: Consolas,monospace;">'''<nowiki></translate></nowiki>'''<br>
&lt;/translate>
<nowiki>{{Item</nowiki><br>
{{Item
<nowiki>|Name=</nowiki>'''<nowiki><translate></nowiki>'''Turnip'''<nowiki></translate></nowiki>'''<br>
|Name=&lt;translate>Turnip&lt;/translate>
<nowiki>|Image=File:Grid turnip.png</nowiki><br>
|Image=File:Grid turnip.png
<nowiki>|Stackable=64</nowiki><br>
|Stackable=64
<nowiki>|FreshTime=</nowiki>'''<nowiki><translate></nowiki>'''21 days'''<nowiki></translate></nowiki>'''<br>
|FreshTime=504
<nowiki>|TransitionTime=</nowiki>'''<nowiki><translate></nowiki>'''48 hours'''<nowiki></translate></nowiki>'''<br>
|TransitionTime=96
<nowiki>|TransitionRatio=0.5</nowiki><br>
|TransitionRatio=0.5
<nowiki>|Satiety=100</nowiki><br>
|Satiety=100
<nowiki>|Category=</nowiki>Vegetable<br>
|Category=&lt;translate>Vegetable&lt;/translate>
<nowiki>|FloatRight=yes</nowiki><br>
|FloatRight=yes
<nowiki>|NoBreak=yes</nowiki><br>
|NoBreak=yes
<nowiki>}}</nowiki><br>
}}
'''<nowiki><translate></nowiki>'''<br><br><br></font>
&lt;translate></pre> <translate>n.b. the translate tags "disappear" when put on a page that is properly [[Special:MyLanguage/Vintage_Story_Wiki:How_to_translate_the_wiki|marked for translation]].</translate>
<translate><!--T:98-->
n.b. the translate tags "disappear" when put on a page that is properly [[Special:MyLanguage/Vintage_Story_Wiki:How_to_translate_the_wiki|marked for translation]].
 
<!--T:99-->
The translator will not see any code. He will only see 3 sentences to translate:</translate>
*Turnip
*21 days
*48 hours
The <code>Category</code> parameter for foods should not be marked for translation anymore. It auto-translates if [[Template:Item/Food/Category]] itself is translated.
||
||
{{Item
{{Item
Line 145: Line 153:
|Image=File:Grid turnip.png
|Image=File:Grid turnip.png
|Stackable=64
|Stackable=64
|FreshTime=504
|FreshTime=21 days
|TransitionTime=96
|TransitionTime=48 hours
|TransitionRatio=0.5
|TransitionRatio=0.5
|Satiety=100
|Satiety=100
|Category=<translate><!--T:15--> Vegetable</translate>
|Category=Vegetable
|FloatRight=yes
|FloatRight=yes
|NoBreak=yes
|NoBreak=yes
Confirmedusers
1,783

edits