Template documentation (for the above template, sometimes hidden or invisible)

Usage

This template makes use of the DynamicPageList extension (full manual). It serves to provide simpler access to the use of a particular DPL tag, which can be viewed in the template's source code. By looking at the page infobox in the specified category, it generates a table with two parameters: the ingredient name and all four effects from the infobox.

First, the template defines the var for a dpl call, which is the name of the alchemical effect's article. It is generated by the {{PAGENAME}} magic word or by the first variable.

Then the template uses a dpl call to generate the table, including only the ingredients that are linked to the specified alchemical effect. The call includes the "Appearances" section and all four effect parameters from the infobox.

²{#dplreplace:²{#dplreplace:²{#dplreplace:²{#dplreplace:,¦((?s).*?)(V:\sSkyrim)((?s).*)¦}²¦((?s).*?)(V:\sDragonborn)((?s).*)¦²{DR}²}²¦((?s).*?)(V:\sHearthfire)((?s).*)¦²{HF}²}²¦((?s).*?)(V:\sDawnguard)((?s).*)¦²{DG}²}²
  • The "Appearances" section is replaced with the {{DG}}, {{DR}}, or {{HF}} templates depending on what the regular expression matches.
¶¦²{#dplreplace:,,,,,,¦/^{{#var:1}}$/m¦²{Green¦{{#var:1}}}²}²¶¦²{#dplreplace:,,,,,,¦/^{{#var:1}}$/m¦²{Green¦{{#var:1}}}²}²¶¦²{#dplreplace:,,,,,,¦/^{{#var:1}}$/m¦²{Green¦{{#var:1}}}²}²¶¦²{#dplreplace:,,,,,¦/^{{#var:1}}$/m¦²{Green¦{{#var:1}}}²}²
  • The four effect parameters from the infobox are searched to determine the specified effect and enclosed with the {{Green}} template, which is done with a regular expression match.
{{IngredientsbyEffectDPL2}}
  • By default, the first variable is set to the {{PAGENAME}} magic word. It can be replaced by the alchemical effect.

Example

Ingredient Primary Effect Secondary Effect Tertiary Effect Quaternary Effect
Briar Heart Restore Magicka Fortify Block Paralysis Fortify Magicka
Canis Root Damage Stamina Fortify One-Handed Fortify Marksman Paralysis
Gleamblossom DG Resist Magic Fear Regenerate Health Paralysis
Human Flesh Damage Health Paralysis Restore Magicka Fortify Sneak
Imp Stool Damage Health Lingering Damage Health Paralysis Restore Health
Netch Jelly DR Paralysis Fortify Carry Weight Restore Stamina Fear
Swamp Fungal Pod Resist Shock Lingering Damage Magicka Paralysis Restore Health

This code will generate a table based on articles that are linked to the Paralysis (Skyrim) article.


*Disclosure: Some of the links above are affiliate links, meaning, at no additional cost to you, Fandom will earn a commission if you click through and make a purchase. Community content is available under CC-BY-SA unless otherwise noted.