Year of the Dragon: Through April 23rd, claim the adventure pack Slice of Life for free! Speak to Xatheral in the Hall of Heroes.
Game mechanics • Newbie guide • In development • DDO Store • Social Media
Challenges • Classes • Collectables • Crafting • Enhancements • Epic Destinies • Favor • Feats
Glossary • Items • Maps • Monsters • Places • Quests • Races • Reincarnation • Skills • Spells
Please create an account or log in to build a reputation and unlock more editing privileges, and then visit DDO wiki's IRC Chat/Discord if you need any help!
Template:Epic levels extractor
USAGE[edit]
This template is a phantom template used in DPL calls.
It extracts the epic level numbers from a quest templates that use the following named parameters:
| epic =
The result is the epic level range of quests in a category.
It also stores the result in the variable {{#var:epics}}
for further use by the calling template. This is only useful if the template is not used as a phantom in DPL, in which case the variable cannot be accessed.
In case the template can't extract a value (missing parameters or unknown format), Ø
is produced.
EXAMPLES[edit]
- The below code does the following:
- It selects every quest in the defined adventure pack.
- It passes whatever is in
| epic =
to{{Min}}
as a named parameter as|Quest #={{{epic}}}
- It stores whatever is returned from
{{Min}}
to{{#var:min}}
- It passes whatever is in
| epic =
to{{Max}}
as a named parameter as|Quest #={{{epic}}}
- It stores whatever is returned from
{{Max}}
to{{#var:max}}
- It compares
{{#var:min}}
to{{#var:max}}
and if different, displays whatever is in{{#var:min}}
followed by a dash - It displays whatever is in
{{#var:max}}
- It stores the result of steps 6 & 7 to
{{#var:epics}}
and displays them
Example A[edit]
This example shows The Sharn Syndicate quests have no epic version. |
---|
{{#vardefine:min|{{#dpl: | category = The Sharn Syndicate quests | include = {Quest}:epic | listseparators = {{Min,{{!}}Quest %NR%=,,{{!}}prefix=Quest}} }}}} {{#vardefine:max|{{#dpl: | category = The Sharn Syndicate quests | include = {Quest}:epic | listseparators = {{Max,{{!}}Quest %NR%=,,{{!}}prefix=Quest}} }}}} {{#vardefineecho:epics|{{#ifeq:{{#var:min}}|{{#var:max}}||{{#var:min}}-}}{{#var:max}}}} {{#vardefine:min|{{Min|Quest 1=|Quest 2=|Quest 3=|Quest 4=|Quest 5=|Quest 6=|prefix=Quest}}}} → {{#vardefine:min|Ø}} {{#vardefine:max|{{Max|Quest 1=|Quest 2=|Quest 3=|Quest 4=|Quest 5=|Quest 6=|prefix=Quest}}}} → {{#vardefine:max|Ø}} {{#vardefineecho:epics|{{#ifeq:Ø|Ø||Ø-}}Ø}} Ø |
Example B[edit]
This example shows White Plume Mountain and Other Tales quests have a epic range of 21-32 |
---|
{{#vardefine:min|{{#dpl: | category = White Plume Mountain and Other Tales quests | include = {Quest}:epic | listseparators = {{Min,{{!}}Quest %NR%=,,{{!}}prefix=Quest}} }}}} {{#vardefine:max|{{#dpl: | category = White Plume Mountain and Other Tales quests | include = {Quest}:epic | listseparators = {{Max,{{!}}Quest %NR%=,,{{!}}prefix=Quest}} }}}} {{#vardefineecho:epics|{{#ifeq:{{#var:min}}|{{#var:max}}||{{#var:min}}-}}{{#var:max}}}} {{#vardefine:min|{{Min|Quest 1=25|Quest 2=23|Quest 3=32|Quest 4=21|Quest 5=21|prefix=Quest}}}} → {{#vardefine:min|21}} {{#vardefine:max|{{Max|Quest 1=25|Quest 2=23|Quest 3=32|Quest 4=21|Quest 5=21|prefix=Quest}}}} → {{#vardefine:max|32}} {{#vardefineecho:epics|{{#ifeq:21|32||21-}}32}} 21-32 |
Example C[edit]
This example shows Shadow Under Thunderholme quests are all level 30. |
---|
{{#vardefine:min|{{#dpl: | category = Shadow Under Thunderholme quests | include = {Quest}:epic | listseparators = {{Min,{{!}}Quest %NR%=,,{{!}}prefix=Quest}} }}}} {{#vardefine:max|{{#dpl: | category = Shadow Under Thunderholme quests | include = {Quest}:epic | listseparators = {{Max,{{!}}Quest %NR%=,,{{!}}prefix=Quest}} }}}} {{#vardefineecho:epics|{{#ifeq:{{#var:min}}|{{#var:max}}||{{#var:min}}-}}{{#var:max}}}} {{#vardefine:min|{{Min|Quest 1=30|Quest 2=30|prefix=Quest}}}} → {{#vardefine:min|30}} {{#vardefine:max|{{Max|Quest 1=30|Quest 2=30|prefix=Quest}}}} → {{#vardefine:max|30}} {{#vardefineecho:epics|{{#ifeq:30|30||30-}}30}} 30 |
CODING[edit]
The code in this section is "includeonly" transcluded onto the page.