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 28: | Line 28: | ||
|align="right"|<font family="Helvetica Black">'''{{{percentsatfat}}}%'''</font> | |align="right"|<font family="Helvetica Black">'''{{{percentsatfat}}}%'''</font> | ||
|- | |- | ||
|align="left" nowrap="true" colspan="2"|<font family="Helvetica Black">'''Cholesterol''' | |align="left" nowrap="true" colspan="2"|<font family="Helvetica Black">'''Cholesterol''' {{{cholesterol}}}mg</font> | ||
|align="right"|<font family="Helvetica Black">'''{{{percentcholesterol}}}%'''</font> | |align="right"|<font family="Helvetica Black">'''{{{percentcholesterol}}}%'''</font> | ||
|- | |- | ||
Line 42: | Line 42: | ||
|align="left" nowrap="true" colspan="3"|<font family="Helvetica Regular"> Sugars {{{sugar}}}g</font> | |align="left" nowrap="true" colspan="3"|<font family="Helvetica Regular"> Sugars {{{sugar}}}g</font> | ||
|- | |- | ||
|align="left" nowrap="true" colspan="3"|<font family="Helvetica Black">'''Protein''' | |align="left" nowrap="true" colspan="3"|<font family="Helvetica Black">'''Protein''' {{{protein}}}g</font> | ||
|} | |} | ||
|- | |- |
Revision as of 19:57, 24 February 2008
| |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
|
Template Description
Nutrition Facts label based on this site at okstate.edu
Execution
Pretty much just look at a food label, and copy the numbers! 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 }}
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)