Template:Nutrition: Difference between revisions
Jump to navigation
Jump to search
imported>Robert W King No edit summary |
imported>Robert W King No edit summary |
||
Line 58: | Line 58: | ||
|} | |} | ||
|} | |} | ||
<noinclude> | |||
{{newtemplate | |||
|description= Nutrition Facts label based on [http://osuextra.okstate.edu/pdfs/FAPC-119web.pdf this site at okstate.edu] | |||
|execution= use | |||
<pre> | |||
{{nutrition | |||
|align=the side you want it on | |||
|servingsize= how many servings for each unit? | |||
|percontainer= how many servings in the total container | |||
|grams= how many grams per serving | |||
|calories= number of calories | |||
|fromfat= calories from fat | |||
|totalfat= total fat | |||
|percenttotalfat= percentage of total fat | |||
|satfat= saturated fat | |||
|percentsatfat= percentage of saturated fat | |||
|cholesterol= cholesterol | |||
|percentcholesterol= percentage of cholesterol | |||
|sodium= sodium | |||
|percentsodium= percentage of sodium | |||
|carbs= carbohydrates | |||
|percentcarbs= percent of carbs | |||
|fiber= dietary fibers | |||
|percentfiber= percent of dietary fiber | |||
|sugar= sugar in grams | |||
|protein= protein in grams | |||
|A= vitamin A percent | |||
|C= vitamin C percent | |||
|calcium= percent calcium | |||
|iron= percent iron | |||
}}</nowiki></code> | |||
|sample= | |||
{{Nutrition | |||
|align=right | |||
|servingsize=2 pieces | |||
|percontainer=1000 | |||
|grams=3 | |||
|calories=5 | |||
|fromfat=100 | |||
|totalfat=13 | |||
|percenttotalfat=20 | |||
|satfat=5 | |||
|percentsatfat=10 | |||
|cholesterol=30 | |||
|percentcholesterol=10 | |||
|sodium=660 | |||
|percentsodium=28 | |||
|carbs=31 | |||
|percentcarbs=10 | |||
|fiber=0 | |||
|percentfiber=0 | |||
|sugar=5 | |||
|protein=5 | |||
|A=4 | |||
|C=2 | |||
|calcium=15 | |||
|iron=4 | |||
}} | |||
</pre> | |||
|caveats=does not yet include logic to add or remove sections of the label as of 2008-02-24 | |||
|authors=--[[User:Robert W King|Robert W King]] 18:41, 24 February 2008 (CST) | |||
}} | |||
</noinclude> |
Revision as of 19:41, 24 February 2008
| |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
|
Template Description
Nutrition Facts label based on this site at okstate.edu
Execution
use
{{nutrition |align=the side you want it on |servingsize= how many servings for each unit? |percontainer= how many servings in the total container |grams= how many grams per serving |calories= number of calories |fromfat= calories from fat |totalfat= total fat |percenttotalfat= percentage of total fat |satfat= saturated fat |percentsatfat= percentage of saturated fat |cholesterol= cholesterol |percentcholesterol= percentage of cholesterol |sodium= sodium |percentsodium= percentage of sodium |carbs= carbohydrates |percentcarbs= percent of carbs |fiber= dietary fibers |percentfiber= percent of dietary fiber |sugar= sugar in grams |protein= protein in grams |A= vitamin A percent |C= vitamin C percent |calcium= percent calcium |iron= percent iron }}</nowiki></code> |sample= {{Nutrition |align=right |servingsize=2 pieces |percontainer=1000 |grams=3 |calories=5 |fromfat=100 |totalfat=13 |percenttotalfat=20 |satfat=5 |percentsatfat=10 |cholesterol=30 |percentcholesterol=10 |sodium=660 |percentsodium=28 |carbs=31 |percentcarbs=10 |fiber=0 |percentfiber=0 |sugar=5 |protein=5 |A=4 |C=2 |calcium=15 |iron=4 }}
Sample
{{{sample}}}
Caveats
does not yet include logic to add or remove sections of the label as of 2008-02-24
Authors
--Robert W King 18:41, 24 February 2008 (CST)