Template:Item/doc: Difference between revisions
From Vintage Story Wiki
No edit summary |
(Update due to new Template:Item/Food/Category) |
||
Line 1: | Line 1: | ||
<languages /> | <noinclude><languages /></noinclude> | ||
<translate> | <translate> | ||
<!--T:1--> | <!--T:1--> | ||
Line 31: | Line 31: | ||
|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 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 134: | Line 134: | ||
<nowiki>|TransitionRatio=0.5</nowiki><br> | <nowiki>|TransitionRatio=0.5</nowiki><br> | ||
<nowiki>|Satiety=100</nowiki><br> | <nowiki>|Satiety=100</nowiki><br> | ||
<nowiki>|Category=</nowiki> | <nowiki>|Category=</nowiki>Vegetable<br> | ||
<nowiki>|FloatRight=yes</nowiki><br> | <nowiki>|FloatRight=yes</nowiki><br> | ||
<nowiki>|NoBreak=yes</nowiki><br> | <nowiki>|NoBreak=yes</nowiki><br> | ||
Line 143: | Line 143: | ||
<!--T:99--> | <!--T:99--> | ||
The translator will not see any code. He will only see | The translator will not see any code. He will only see 3 sentences to translate:</translate> | ||
*Turnip | *Turnip | ||
*21 days | *21 days | ||
*48 hours | *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 157: | Line 157: | ||
|TransitionRatio=0.5 | |TransitionRatio=0.5 | ||
|Satiety=100 | |Satiety=100 | ||
|Category= | |Category=Vegetable | ||
|FloatRight=yes | |FloatRight=yes | ||
|NoBreak=yes | |NoBreak=yes |