Template:Infobox diet
From W8MD weight loss and sleep centers
Template:Documentation subpage
Usage
Use this template for encyclopedia pages about diets, dietary patterns, nutrition programs, and weight-loss eating plans.
{{Infobox diet
| name =
| image =
| caption =
| type =
| origin =
| creator =
| year =
| purpose =
| foods =
| excluded =
| macros =
| carbohydrate =
| protein =
| fat =
| calories =
| fiber =
| nutrients =
| supplements =
| benefits =
| risks =
| medical_use =
| contraindications =
| related =
| website =
}}
Parameters
- name - Name of the diet or dietary pattern. Defaults to page name if blank.
- image - Image file with size, such as
[[File:Example.jpg|250px]]. - caption - Image caption.
- type - Type of diet, such as low-carbohydrate diet, ketogenic diet, vegan diet, Mediterranean diet, or meal replacement diet.
- origin - Historical, cultural, medical, or commercial origin.
- creator - Creator or organization associated with the diet, if applicable.
- year - Year introduced, if applicable.
- purpose - Main purpose, such as weight loss, diabetes prevention, heart health, ethical eating, or medical nutrition therapy.
- foods - Foods emphasized.
- excluded - Foods excluded or restricted.
- macros - Overall macronutrient pattern.
- carbohydrate - Carbohydrate level.
- protein - Protein level.
- fat - Fat level.
- calories - Typical calorie level, if relevant.
- fiber - Fiber emphasis or goal.
- nutrients - Nutrients of concern.
- supplements - Supplements commonly recommended or required.
- benefits - Potential benefits.
- risks - Potential risks or limitations.
- medical_use - Medical uses or conditions for which the diet may be used.
- contraindications - Conditions where caution or medical supervision may be needed.
- related - Related diets or eating patterns.
- website - Official website or related resource, if applicable.
Example
{{Infobox diet
| name = Vegan diet
| image = [[File:Vegan friendly icon.svg|250px]]
| caption = A vegan diet excludes animal-derived foods.
| type = [[Plant-based diet]], [[vegetarian diet]]
| purpose = Ethical eating, environmental concerns, health, and [[weight loss]]
| foods = [[Vegetables]], [[fruits]], [[beans]], [[lentils]], [[tofu]], [[tempeh]], [[nuts]], [[seeds]], [[whole grains]]
| excluded = Meat, poultry, fish, seafood, eggs, dairy, honey, gelatin
| nutrients = [[Vitamin B12]], [[vitamin D]], [[calcium]], [[iron]], [[zinc]], [[iodine]], [[omega-3 fatty acids]]
| supplements = [[Vitamin B12]] supplementation is commonly recommended
| benefits = May support [[weight loss]], improved fiber intake, and cardiometabolic health when well planned
| risks = Nutrient deficiencies if poorly planned
| related = [[Veganism]], [[vegetarianism]], [[plant-based diet]], [[vegan keto diet]]
}}
TemplateData
<templatedata> {
"description": "Infobox for diets, dietary patterns, nutrition programs, and weight-loss eating plans.",
"params": {
"name": {
"label": "Name",
"description": "Name of the diet or dietary pattern.",
"type": "string",
"default": "Infobox diet",
"suggested": true
},
"image": {
"label": "Image",
"description": "Image file with size, such as
.",
"type": "wiki-file-name",
"suggested": true
},
"caption": {
"label": "Caption",
"description": "Caption for the image.",
"type": "string"
},
"type": {
"label": "Type",
"description": "Type of diet, such as low-carbohydrate diet, ketogenic diet, vegan diet, or Mediterranean diet.",
"type": "string",
"suggested": true
},
"origin": {
"label": "Origin",
"description": "Historical, cultural, medical, or commercial origin.",
"type": "string"
},
"creator": {
"label": "Creator",
"description": "Creator, author, clinician, or organization associated with the diet.",
"type": "string"
},
"year": {
"label": "Introduced",
"description": "Year the diet was introduced or popularized.",
"type": "string"
},
"purpose": {
"label": "Purpose",
"description": "Main purpose of the diet.",
"type": "string",
"suggested": true
},
"foods": {
"label": "Foods emphasized",
"description": "Foods emphasized by the diet.",
"type": "string",
"suggested": true
},
"excluded": {
"label": "Foods excluded",
"description": "Foods excluded or restricted by the diet.",
"type": "string"
},
"macros": {
"label": "Macronutrient pattern",
"description": "Overall macronutrient pattern.",
"type": "string"
},
"carbohydrate": {
"label": "Carbohydrate level",
"description": "Carbohydrate level or range.",
"type": "string"
},
"protein": {
"label": "Protein level",
"description": "Protein level or emphasis.",
"type": "string"
},
"fat": {
"label": "Fat level",
"description": "Fat level or emphasis.",
"type": "string"
},
"calories": {
"label": "Calorie level",
"description": "Typical calorie level, if relevant.",
"type": "string"
},
"fiber": {
"label": "Fiber",
"description": "Fiber emphasis or goal.",
"type": "string"
},
"nutrients": {
"label": "Nutrients of concern",
"description": "Nutrients that need attention on this diet.",
"type": "string"
},
"supplements": {
"label": "Supplements",
"description": "Supplements commonly recommended or required.",
"type": "string"
},
"benefits": {
"label": "Potential benefits",
"description": "Potential benefits of the diet.",
"type": "string"
},
"risks": {
"label": "Potential risks",
"description": "Potential risks, limitations, or side effects.",
"type": "string"
},
"medical_use": {
"label": "Medical use",
"description": "Medical uses or conditions for which the diet may be used.",
"type": "string"
},
"contraindications": {
"label": "Contraindications",
"description": "Conditions where caution or medical supervision may be needed.",
"type": "string"
},
"related": {
"label": "Related diets",
"description": "Related diets, eating patterns, or nutrition concepts.",
"type": "string"
},
"website": {
"label": "Website",
"description": "Official website or related resource.",
"type": "url"
}
},
"format": "block"
} </templatedata>
