Difference between revisions of "Template:Infobox medical condition/doc"

From blackwiki
Jump to navigation Jump to search
imported>RexxS
(update documentation to include 'management' parameter)
imported>Eric Kvaalen
(Deaths: Number of deaths per unit of time. Specify the unit of time, such as per year.)
 
(5 intermediate revisions by 3 users not shown)
Line 6: Line 6:
 
{{Uses Wikidata|P1995}}
 
{{Uses Wikidata|P1995}}
  
Use this template freely for any medical condition. Its use is not limited strictly to diseases. It can be paired with {{tl|Medical resources}}.
+
Use this template freely for any medical condition. Its use is not limited strictly to diseases.
 +
Please consider adding the {{tl|Medical resources}} template at the same time.
 +
 
 +
Per the outcome of a [[Wikipedia:Arbitration/Requests/Case/Infoboxes#Use_of_infoboxes|2013 Arbitration Committee on using infoboxes]]; consensus should be established on the article's talk page before adding this (or any other) infobox.  
  
 
== Usage summary ==
 
== Usage summary ==
Line 16: Line 19:
 
<pre style="overflow: auto; width:65%">
 
<pre style="overflow: auto; width:65%">
 
{{Infobox medical condition
 
{{Infobox medical condition
  |name         =  
+
  |name           =  
  |synonym       =  
+
  |synonym         =  
  |image         =  
+
  |image           =  
  |image_size   =  
+
  |image_size     =
  |alt           =  
+
|image_thumbtime =  
  |caption       =  
+
  |alt             =  
  |pronounce     =  
+
  |caption         =  
  |specialty     = <!--from Wikidata; can be overwritten-->
+
  |pronounce       =  
  |symptoms     =  
+
  |specialty       = <!--from Wikidata; can be overwritten-->
  |complications =  
+
  |symptoms       =  
  |onset         =  
+
  |complications   =  
  |duration     =  
+
  |onset           =  
  |types         =  
+
  |duration       =  
  |causes       =  
+
  |types           =  
  |risks         =  
+
  |causes         =  
  |diagnosis     =  
+
  |risks           =  
  |differential =  
+
  |diagnosis       =  
  |prevention   =  
+
  |differential   =  
  |treatment     = <!-- or |management = -->
+
  |prevention     =  
  |medication   =  
+
  |treatment       = <!-- or |management = -->
  |prognosis     =  
+
  |medication     =  
  |frequency     =  
+
  |prognosis       =  
  |deaths       =  
+
  |frequency       =  
 +
  |deaths         =  
 
}}
 
}}
 
</pre>
 
</pre>
 +
 
The {{para|treatment}} parameter may be replaced by {{para|management}}. This will change the label to "'''Management'''".
 
The {{para|treatment}} parameter may be replaced by {{para|management}}. This will change the label to "'''Management'''".
  
Line 47: Line 52:
 
<templatedata>
 
<templatedata>
 
{
 
{
 +
"description": "Infobox for medical conditions",
 +
"format": "{{_\n| _____________ = _\n}}\n",
 
"params": {
 
"params": {
 
"name": {
 
"name": {
Line 57: Line 64:
 
"description": "Common terms for the illness or condition.",
 
"description": "Common terms for the illness or condition.",
 
"example": "Upper respiratory tract infection – \"common cold\", \"bug\", \"snuffles\"",
 
"example": "Upper respiratory tract infection – \"common cold\", \"bug\", \"snuffles\"",
"type": "string",
+
"type": "string"
"suggested": false
 
 
},
 
},
 
"image": {
 
"image": {
Line 81: Line 87:
 
"description": "Size of image. (See MOS:IMAGE for help.)",
 
"description": "Size of image. (See MOS:IMAGE for help.)",
 
             "example": "250px",
 
             "example": "250px",
"type": "string",
+
"type": "string"
"suggested": false
+
},
 +
        "image_thumbtime": {
 +
"description": "Specifies time (seconds) of video to draw thumbnail image from",
 +
            "example": "4",
 +
"type": "number"
 
},
 
},
 
"pronounce": {},
 
"pronounce": {},
Line 88: Line 98:
 
"description": "Main health specialties involved with diagnosis and treatment of the disorder.",
 
"description": "Main health specialties involved with diagnosis and treatment of the disorder.",
 
"example": "Psychiatry, clinical psychology",
 
"example": "Psychiatry, clinical psychology",
"type": "string",
+
"type": "string"
"suggested": false
 
 
},
 
},
 
"symptoms": {
 
"symptoms": {
 
"description": "Brief description of most common symptoms (or symptom clusters)",
 
"description": "Brief description of most common symptoms (or symptom clusters)",
 
"example": "Disturbing thoughts, feelings, or dreams related to the event; mental or physical distress to trauma-related cues; efforts to avoid trauma-related situations; increased fight-or-flight response",
 
"example": "Disturbing thoughts, feelings, or dreams related to the event; mental or physical distress to trauma-related cues; efforts to avoid trauma-related situations; increased fight-or-flight response",
"type": "string",
+
"type": "string"
"suggested": false
 
 
},
 
},
 
"onset": {
 
"onset": {
 
"description": "Typical or average age of onset (if known)",
 
"description": "Typical or average age of onset (if known)",
 
"example": "Schizophrenia – Early adulthood",
 
"example": "Schizophrenia – Early adulthood",
"type": "string",
+
"type": "string"
"suggested": false
 
 
},
 
},
 
"duration": {
 
"duration": {
Line 111: Line 118:
 
"description": "Cause of the disease (if known). Try to separate from risk factors, although some overlap is common.",
 
"description": "Cause of the disease (if known). Try to separate from risk factors, although some overlap is common.",
 
"example": "Diabetes (Type 2) – Family history; obesity; sedentary lifestyle; age over 45",
 
"example": "Diabetes (Type 2) – Family history; obesity; sedentary lifestyle; age over 45",
"type": "string",
+
"type": "string"
"suggested": false
 
 
},
 
},
 
"risks": {
 
"risks": {
 
"description": "Risk factors",
 
"description": "Risk factors",
 
"example": "Heart disease – Smoking; high blood pressure; high cholesterol; obesity; family history (genetics)",
 
"example": "Heart disease – Smoking; high blood pressure; high cholesterol; obesity; family history (genetics)",
"type": "string",
+
"type": "string"
"suggested": false
 
 
},
 
},
 
"diagnosis": {
 
"diagnosis": {
 
"description": "How is the illness usually diagnosed? For example: Based on symptoms, medical imagine, genetic testing, blood tests, etc.",
 
"description": "How is the illness usually diagnosed? For example: Based on symptoms, medical imagine, genetic testing, blood tests, etc.",
"type": "string",
+
"type": "string"
"suggested": false
 
 
},
 
},
 
"differential": {
 
"differential": {
 
"description": "Differential diagnosis (what other disease or conditions should be evaluated before concluding patient has the illness).",
 
"description": "Differential diagnosis (what other disease or conditions should be evaluated before concluding patient has the illness).",
 
"example": "Crohn's disease – Gastritis, gallstones, peptic ulcer, abdominal aortic aneurysm, constipation, irritable bowel syndrome, ulcerative colitis",
 
"example": "Crohn's disease – Gastritis, gallstones, peptic ulcer, abdominal aortic aneurysm, constipation, irritable bowel syndrome, ulcerative colitis",
"type": "string",
+
"type": "string"
"suggested": false
 
 
},
 
},
 
"prevention": {},
 
"prevention": {},
Line 144: Line 147:
 
"type": "string"
 
"type": "string"
 
},
 
},
"deaths": {}
+
"deaths": {"description": "Number of deaths per unit of time. Specify the unit of time, such as per year.",
},
+
"type": "string"
"description": "Infobox for medical conditions"
+
}
 +
}
 
}
 
}
 
</templatedata>
 
</templatedata>

Latest revision as of 14:33, 20 June 2020

Template:Uses Wikidata

Use this template freely for any medical condition. Its use is not limited strictly to diseases. Please consider adding the {{Medical resources}} template at the same time.

Per the outcome of a 2013 Arbitration Committee on using infoboxes; consensus should be established on the article's talk page before adding this (or any other) infobox.

Usage summary

The template is a summary about the condition itself. Don't worry about trying to fill in all the fields—even if you can only get one or two, that can still be useful. Items are provided as a list with a typically maximum of six.

While editing a condition, copy and paste the following text at the top of the page: Template:Parameter names example

{{Infobox medical condition
 |name            = 
 |synonym         = 
 |image           = 
 |image_size      = 
 |image_thumbtime = 
 |alt             = 
 |caption         = 
 |pronounce       = 
 |specialty       = <!--from Wikidata; can be overwritten-->
 |symptoms        = 
 |complications   = 
 |onset           = 
 |duration        = 
 |types           = 
 |causes          = 
 |risks           = 
 |diagnosis       = 
 |differential    = 
 |prevention      = 
 |treatment       = <!-- or |management = -->
 |medication      = 
 |prognosis       = 
 |frequency       = 
 |deaths          = 
}}

The |treatment= parameter may be replaced by |management=. This will change the label to "Management".

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Infobox medical condition

Infobox for medical conditions

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Namename

Name of disease or medical condition (should be the same as the title of the article)

Example
Posttraumatic stress disorder
Stringrequired
Synonymsynonym

Common terms for the illness or condition.

Example
Upper respiratory tract infection – "common cold", "bug", "snuffles"
Stringoptional
Imageimage

Image file (just the filename without File: or |thumb, etc.)

Example
USMC-120503-M-9426J-001.jpg
Filesuggested
Altalt

Brief description of image for individuals who cannot see the image.

Example
Painting by Monet of water lillies
Stringsuggested
Captioncaption

Caption for the image.

Example
Claude Monet, The Water Lilies – Setting Sun, 1920–1926, Musée de l'Orangerie
Stringsuggested
Image_sizeimage_size

Size of image. (See MOS:IMAGE for help.)

Example
250px
Stringoptional
Image_thumbtimeimage_thumbtime

Specifies time (seconds) of video to draw thumbnail image from

Example
4
Numberoptional
Pronouncepronounce

no description

Unknownoptional
Specialtyspecialty

Main health specialties involved with diagnosis and treatment of the disorder.

Example
Psychiatry, clinical psychology
Stringoptional
Symptomssymptoms

Brief description of most common symptoms (or symptom clusters)

Example
Disturbing thoughts, feelings, or dreams related to the event; mental or physical distress to trauma-related cues; efforts to avoid trauma-related situations; increased fight-or-flight response
Stringoptional
Onsetonset

Typical or average age of onset (if known)

Example
Schizophrenia – Early adulthood
Stringoptional
Durationduration

Average or median duration of illness or range (if known)

Example
Upper respiratory tract infection – 7 to 14 days
Stringoptional
Causescauses

Cause of the disease (if known). Try to separate from risk factors, although some overlap is common.

Example
Diabetes (Type 2) – Family history; obesity; sedentary lifestyle; age over 45
Stringoptional
Risksrisks

Risk factors

Example
Heart disease – Smoking; high blood pressure; high cholesterol; obesity; family history (genetics)
Stringoptional
Diagnosisdiagnosis

How is the illness usually diagnosed? For example: Based on symptoms, medical imagine, genetic testing, blood tests, etc.

Stringoptional
Differentialdifferential

Differential diagnosis (what other disease or conditions should be evaluated before concluding patient has the illness).

Example
Crohn's disease – Gastritis, gallstones, peptic ulcer, abdominal aortic aneurysm, constipation, irritable bowel syndrome, ulcerative colitis
Stringoptional
Preventionprevention

no description

Unknownoptional
Treatmenttreatment

Common treatments. May be replaced by 'management' as appropriate.

Stringsuggested
Medicationmedication

no description

Unknownoptional
Prognosisprognosis

no description

Unknownoptional
Frequencyfrequency

Incidence (rate of newly diagnosed cases of the disease during a specified period of time, e.g., one month or one year); Period prevalence (the actual number people with the disease during a specified period of time); Lifetime prevalence (the proportion of people who have had the disorder at some time in their life); Lifetime morbid risk (the proportion of people who will eventually develop the disorder at some time in their life whether or not they have a lifetime history at the time of assessment).

Example
PTSD – 8.7% (lifetime risk); 3.5% (12-month risk, US)
Stringoptional
Deathsdeaths

Number of deaths per unit of time. Specify the unit of time, such as per year.

Stringoptional

Tracking category