User:Brettz9/test2
Intro to DPL[edit | edit source]
The DynamicPageList extension--or rather, our customized version of it which adds support for displaying inline bullets instead of commas--allows us to auto-generate lists of articles within a category.
- Adaptive immune system
- Adrenal gland
- Autoantibody
- B cell
- Blood
- Cardiovascular system
- Central nervous system
- Central sensitization
- Chemokine
- Cytokine
- Dorsal root ganglion
- Electrolyte
- Endocrine system
- Fibrin
- Gastric acid
- Gastrointestinal system
- Glial cell
- Gut-brain axis
- Hippocampus
- Hypothalamic-pituitary-adrenal axis
- Hypothalamic-pituitary-gonadal axis
- Immune system
- Inflammation
- Innate immune system
- Interferon
- Interleukin 1
- Interleukin 1 alpha
- Interleukin 1 beta
- Interleukin 10
- Interleukin 11
- Interleukin 12
- Interleukin 13
- Interleukin 15
- Interleukin 16
- Interleukin 17
- Interleukin 18
- Interleukin 2
- Interleukin 23
- Interleukin 28
- Interleukin 29
- Interleukin 3
- Interleukin 4
- Interleukin 5
- Interleukin 6
- Interleukin 7
- Interleukin 7 receptor
- Interleukin 8
- Interleukin 9
- Ion transportation
- Leaky brain
- Leucocyte
- Lymphocyte
- Lymphotoxin-alpha
- Macrophage
- Microbiome
- Microgenderome
- Microglia
- Mucosal immune system
- Muscle
- Musculoskeletal system
- Natural killer cell
- Natural killer T cell
- Nervous system
- Neuroendocrine system
- Neurogenesis
- Neuroinflammation
- Neutrophil
- Occipital cortex
- Olfactory bulb
- Parasympathetic nervous system
- Red blood cell
- Regulatory T cell
- Ribonuclease L
- RNA
- Skeletal muscle
- Spinal cord
- Sympathetic nervous system
- T cell
- T helper cell
- Thrombosis
- Thymus
- Thyroid gland
- Tumor necrosis factor alpha
- Vagus nerve
- Vitamin D receptor
- Zonulin
- Category:Anatomy
- Category:Blood components
- Category:Cardiology
- Category:Digestive system
- Category:Endocrine system
- Category:Energy system
- Category:Immunology
- Category:Neurology
- Category:Reproductive system
The code responsible is:
<DynamicPageList> category = Body systems shownamespace = true mode = inline-bullets ordermethod = sortkey order = ascending </DynamicPageList>
Our own DPL shortcut[edit | edit source]
If you do not need to tweak the sorting, I have a module in place which accepts a category like this:
{{#invoke:CategoryList|main|Body systems}}
...to produce the same list:
- Adaptive immune system
- Adrenal gland
- Autoantibody
- B cell
- Blood
- Cardiovascular system
- Central nervous system
- Central sensitization
- Chemokine
- Cytokine
- Dorsal root ganglion
- Electrolyte
- Endocrine system
- Fibrin
- Gastric acid
- Gastrointestinal system
- Glial cell
- Gut-brain axis
- Hippocampus
- Hypothalamic-pituitary-adrenal axis
- Hypothalamic-pituitary-gonadal axis
- Immune system
- Inflammation
- Innate immune system
- Interferon
- Interleukin 1
- Interleukin 1 alpha
- Interleukin 1 beta
- Interleukin 10
- Interleukin 11
- Interleukin 12
- Interleukin 13
- Interleukin 15
- Interleukin 16
- Interleukin 17
- Interleukin 18
- Interleukin 2
- Interleukin 23
- Interleukin 28
- Interleukin 29
- Interleukin 3
- Interleukin 4
- Interleukin 5
- Interleukin 6
- Interleukin 7
- Interleukin 7 receptor
- Interleukin 8
- Interleukin 9
- Ion transportation
- Leaky brain
- Leucocyte
- Lymphocyte
- Lymphotoxin-alpha
- Macrophage
- Microbiome
- Microgenderome
- Microglia
- Mucosal immune system
- Muscle
- Musculoskeletal system
- Natural killer cell
- Natural killer T cell
- Nervous system
- Neuroendocrine system
- Neurogenesis
- Neuroinflammation
- Neutrophil
- Occipital cortex
- Olfactory bulb
- Parasympathetic nervous system
- Red blood cell
- Regulatory T cell
- Ribonuclease L
- RNA
- Skeletal muscle
- Spinal cord
- Sympathetic nervous system
- T cell
- T helper cell
- Thrombosis
- Thymus
- Thyroid gland
- Tumor necrosis factor alpha
- Vagus nerve
- Vitamin D receptor
- Zonulin
- Category:Anatomy
- Category:Blood components
- Category:Cardiology
- Category:Digestive system
- Category:Endocrine system
- Category:Energy system
- Category:Immunology
- Category:Neurology
- Category:Reproductive system
Or:
{{#invoke:CategoryList|pagesInCategory|Body systems}}
...to produce the same (making the (default) function explicit):
- Adaptive immune system
- Adrenal gland
- Autoantibody
- B cell
- Blood
- Cardiovascular system
- Central nervous system
- Central sensitization
- Chemokine
- Cytokine
- Dorsal root ganglion
- Electrolyte
- Endocrine system
- Fibrin
- Gastric acid
- Gastrointestinal system
- Glial cell
- Gut-brain axis
- Hippocampus
- Hypothalamic-pituitary-adrenal axis
- Hypothalamic-pituitary-gonadal axis
- Immune system
- Inflammation
- Innate immune system
- Interferon
- Interleukin 1
- Interleukin 1 alpha
- Interleukin 1 beta
- Interleukin 10
- Interleukin 11
- Interleukin 12
- Interleukin 13
- Interleukin 15
- Interleukin 16
- Interleukin 17
- Interleukin 18
- Interleukin 2
- Interleukin 23
- Interleukin 28
- Interleukin 29
- Interleukin 3
- Interleukin 4
- Interleukin 5
- Interleukin 6
- Interleukin 7
- Interleukin 7 receptor
- Interleukin 8
- Interleukin 9
- Ion transportation
- Leaky brain
- Leucocyte
- Lymphocyte
- Lymphotoxin-alpha
- Macrophage
- Microbiome
- Microgenderome
- Microglia
- Mucosal immune system
- Muscle
- Musculoskeletal system
- Natural killer cell
- Natural killer T cell
- Nervous system
- Neuroendocrine system
- Neurogenesis
- Neuroinflammation
- Neutrophil
- Occipital cortex
- Olfactory bulb
- Parasympathetic nervous system
- Red blood cell
- Regulatory T cell
- Ribonuclease L
- RNA
- Skeletal muscle
- Spinal cord
- Sympathetic nervous system
- T cell
- T helper cell
- Thrombosis
- Thymus
- Thyroid gland
- Tumor necrosis factor alpha
- Vagus nerve
- Vitamin D receptor
- Zonulin
- Category:Anatomy
- Category:Blood components
- Category:Cardiology
- Category:Digestive system
- Category:Endocrine system
- Category:Energy system
- Category:Immunology
- Category:Neurology
- Category:Reproductive system
Or using this simpler (template) syntax:
{{PagesInCategory|Body systems}}
...to produce the same:
- Adaptive immune system
- Adrenal gland
- Autoantibody
- B cell
- Blood
- Cardiovascular system
- Central nervous system
- Central sensitization
- Chemokine
- Cytokine
- Dorsal root ganglion
- Electrolyte
- Endocrine system
- Fibrin
- Gastric acid
- Gastrointestinal system
- Glial cell
- Gut-brain axis
- Hippocampus
- Hypothalamic-pituitary-adrenal axis
- Hypothalamic-pituitary-gonadal axis
- Immune system
- Inflammation
- Innate immune system
- Interferon
- Interleukin 1
- Interleukin 1 alpha
- Interleukin 1 beta
- Interleukin 10
- Interleukin 11
- Interleukin 12
- Interleukin 13
- Interleukin 15
- Interleukin 16
- Interleukin 17
- Interleukin 18
- Interleukin 2
- Interleukin 23
- Interleukin 28
- Interleukin 29
- Interleukin 3
- Interleukin 4
- Interleukin 5
- Interleukin 6
- Interleukin 7
- Interleukin 7 receptor
- Interleukin 8
- Interleukin 9
- Ion transportation
- Leaky brain
- Leucocyte
- Lymphocyte
- Lymphotoxin-alpha
- Macrophage
- Microbiome
- Microgenderome
- Microglia
- Mucosal immune system
- Muscle
- Musculoskeletal system
- Natural killer cell
- Natural killer T cell
- Nervous system
- Neuroendocrine system
- Neurogenesis
- Neuroinflammation
- Neutrophil
- Occipital cortex
- Olfactory bulb
- Parasympathetic nervous system
- Red blood cell
- Regulatory T cell
- Ribonuclease L
- RNA
- Skeletal muscle
- Spinal cord
- Sympathetic nervous system
- T cell
- T helper cell
- Thrombosis
- Thymus
- Thyroid gland
- Tumor necrosis factor alpha
- Vagus nerve
- Vitamin D receptor
- Zonulin
- Category:Anatomy
- Category:Blood components
- Category:Cardiology
- Category:Digestive system
- Category:Endocrine system
- Category:Energy system
- Category:Immunology
- Category:Neurology
- Category:Reproductive system
Listing categories[edit | edit source]
Finally, DynamicPageList can (among other things) list categories within categories:
- Body systems
- Functional Medicine
- Infectious agents
- Medical hypotheses
- Signs and symptoms
- Triggers and risk factors
using the following:
<DynamicPageList> category = Disease namespace = Category shownamespace = false mode = inline-bullets ordermethod = sortkey order = ascending </DynamicPageList>
or using the shorter syntax:
{{#invoke:CategoryList|categoriesInCategory|Disease}}
...producing:
- Body systems
- Functional Medicine
- Infectious agents
- Medical hypotheses
- Signs and symptoms
- Triggers and risk factors
or the yet shorter (template-based) syntax:
{{CategoriesInCategory|Disease}}
...to produce the same:
- Body systems
- Functional Medicine
- Infectious agents
- Medical hypotheses
- Signs and symptoms
- Triggers and risk factors
Result[edit | edit source]
However, despite my attempts, I have not been able to built a module which utilizes this (or successfully change DynamicPageList into a "parser function") so that we can recursively go through nested categories to display headings for the main categories, and bulleted lists for the articles at the bottom of the category hierarchy. So, currently, we can add a dynamic list of pages within a category, but we have to designate each category (e.g., on the Main Page) by hand.