Difference between revisions of "Template:Infobox nutrition facts"

From blackwiki
Jump to navigation Jump to search
(hyphenate compound adjective ("2,000-calorie diet"))
imported>WOSlinker
(tidy style for better HTML5 compatibility)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>{| class="infobox" style="width: 20em; text-align: left; font-size: 95%; padding-left:5px; padding-right:5px;"
 
<includeonly>{| class="infobox" style="width: 20em; text-align: left; font-size: 95%; padding-left:5px; padding-right:5px;"
|+ style="background:#00CCFF; font-size: 150%" align="center" colspan="4" | '''Nutrition Facts'''
+
|+ style="background:#00CCFF; font-size: 150%; text-align:center;" colspan="4" | '''Nutrition facts'''
 
|-
 
|-
| colspan="4" | Serving Size {{{serv_size_us}}} ({{{serv_size_met}}})
+
| colspan="4" | Serving size {{{serv_size_us}}} ({{{serv_size_met}}})
 
|-
 
|-
| colspan="4" | Servings Per Container {{{#_servings}}}
+
| colspan="4" | Servings per container {{{#_servings}}}
 
|-
 
|-
 
| colspan="4" style="background:#000000;" |
 
| colspan="4" style="background:#000000;" |
 
|-
 
|-
| colspan="4" | <small>'''Amount Per Serving'''</small>
+
| colspan="4" | <small>'''Amount per serving'''</small>
 
|-  
 
|-  
| colspan="2" | '''Calories''' {{{calories}}} || colspan="2" align="right" | Calories from Fat {{{cal_from_fat}}}
+
| colspan="2" | '''Calories''' {{{calories}}} || colspan="2" style="text-align:right;" | Calories from fat {{{cal_from_fat}}}
 
|-
 
|-
 
| colspan="4" style="background:#000000;" |
 
| colspan="4" style="background:#000000;" |
 
|-
 
|-
| colspan="4" style="text-align:right;" | '''%&nbsp;Daily&nbsp;Value*'''
+
| colspan="4" style="text-align:right;" | '''%&nbsp;Daily value*'''
 
|-
 
|-
| colspan="3" | '''Total Fat''' {{{total_fat_g}}} g || style="text-align:right;" | '''{{ #expr: ({{{total_fat_g}}}/65)*100 round 0 }}%'''
+
| colspan="3" | '''Total fat''' {{{total_fat_g}}} g || style="text-align:right;" | '''{{ #expr: ({{{total_fat_g}}}/65)*100 round 0 }}%'''
 
|-
 
|-
| colspan="3" | &nbsp;&nbsp;&nbsp;Saturated Fat {{{sat_fat_g}}} g || style="text-align:right;" | '''{{ #expr: ({{{sat_fat_g}}}/20)*100 round 0 }}%'''
+
| colspan="3" | &nbsp;&nbsp;&nbsp;Saturated fat {{{sat_fat_g}}} g || style="text-align:right;" | '''{{ #expr: ({{{sat_fat_g}}}/20)*100 round 0 }}%'''
 
|-
 
|-
| colspan="4" | &nbsp;&nbsp;&nbsp;''Trans'' Fat {{{trans_fat_g}}} g
+
| colspan="4" | &nbsp;&nbsp;&nbsp;''Trans'' fat {{{trans_fat_g}}} g
 
|-
 
|-
 
| colspan="3" | '''Cholesterol''' {{{cholesterol_mg}}} mg || style="text-align:right;" | '''{{ #expr: ({{{cholesterol_mg}}}/300)*100 round 0 }}%'''
 
| colspan="3" | '''Cholesterol''' {{{cholesterol_mg}}} mg || style="text-align:right;" | '''{{ #expr: ({{{cholesterol_mg}}}/300)*100 round 0 }}%'''
Line 28: Line 28:
 
| colspan="3" | '''Potassium''' {{{potassium_mg}}} mg || style="text-align:right;" | '''{{ #expr: ({{{potassium_mg}}}/3600)*100 round 0 }}%'''
 
| colspan="3" | '''Potassium''' {{{potassium_mg}}} mg || style="text-align:right;" | '''{{ #expr: ({{{potassium_mg}}}/3600)*100 round 0 }}%'''
 
|-
 
|-
| colspan="3" | '''Total Carbohydrate''' {{{carb_g}}} g || style="text-align:right;" | '''{{ #expr: ({{{carb_g}}}/300)*100 round 0 }}%'''
+
| colspan="3" | '''Total carbohydrate''' {{{carb_g}}} g || style="text-align:right;" | '''{{ #expr: ({{{carb_g}}}/300)*100 round 0 }}%'''
 
|-
 
|-
| colspan="3" | &nbsp;&nbsp;&nbsp;Dietary Fiber {{{fiber_g}}} g || style="text-align:right;" | '''{{ #expr: ({{{fiber_g}}}/250)*100 round 0 }}%'''
+
| colspan="3" | &nbsp;&nbsp;&nbsp;Dietary fiber {{{fiber_g}}} g || style="text-align:right;" | '''{{ #expr: ({{{fiber_g}}}/250)*100 round 0 }}%'''
 
|-
 
|-
 
| colspan="4" | &nbsp;&nbsp;&nbsp;Sugars {{{sugars_g}}} g
 
| colspan="4" | &nbsp;&nbsp;&nbsp;Sugars {{{sugars_g}}} g
Line 38: Line 38:
 
| colspan="4" style="background:#000000;" |
 
| colspan="4" style="background:#000000;" |
 
|-
 
|-
| Vitamin A || align="right" | '''{{{vit_a}}}%''' || &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vitamin C || style="text-align:right;" | '''{{{vit_c}}}%'''
+
| Vitamin A || style="text-align:right;" | '''{{{vit_a}}}%''' || &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vitamin C || style="text-align:right;" | '''{{{vit_c}}}%'''
 
|-
 
|-
| Calcium || align="right" | '''{{{calcium}}}%''' || &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Iron || style="text-align:right;" | '''{{{iron}}}%'''
+
| Calcium || style="text-align:right;" | '''{{{calcium}}}%''' || &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Iron || style="text-align:right;" | '''{{{iron}}}%'''
 
|-
 
|-
 
| colspan="4" style="background:#000000;" |
 
| colspan="4" style="background:#000000;" |
 
|-
 
|-
| colspan="4" | <small><nowiki>*</nowiki>Percent Daily Values are based on a 2,000-calorie diet. Your Daily Values may be higher or lower depending on your calorie needs.</small>
+
| colspan="4" | <small><nowiki>*</nowiki>Percent daily values are based on a 2,000‑calorie diet. Your daily values may be higher or lower depending on your calorie needs.</small>
|}</includeonly><noinclude>{{warning|'''This template has been deprecated in favor of [[Template:Nutritional value]].'''}}</noinclude>
+
|}</includeonly><noinclude>{{warning|'''This template has been deprecated in favor of [[Template:Infobox nutritional value]].'''}}</noinclude>

Latest revision as of 21:32, 26 June 2015