Year of the Dragon: Through May 28th, claim free Expansion Pack (excluding Vecna Unleashed) or a Greater Elixir of Discovery! Speak to Xatheral in the Hall of Heroes.
(Please note: Due to bugs with the distribution system, this reward is temporarily unavailable.)edit

Game mechanicsNewbie guideIn developmentDDO StoreSocial Media


ChallengesClassesCollectablesCraftingEnhancementsEpic DestiniesFavorFeats

GlossaryItemsMapsMonstersPlacesQuestsRacesReincarnationSkillsSpells


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:Heroic levels extractor

From DDO wiki
Jump to navigation Jump to search

USAGE[edit]

This template is a phantom template used in DPL calls.

It extracts the heroic level numbers from a quest templates that use the following named parameters:

  • | level =

The result is the level range of quests in a category.
It also stores the result in the variable {{#var:levels}} 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:
    1. It selects every quest in the defined adventure pack.
      1. The Sharn Syndicate
      2. White Plume Mountain and Other Tales
      3. Shadow Under Thunderholme
    2. It passes whatever is in | level = to {{Min}} as a named parameter as |Quest #={{{level}}}
    3. It stores whatever is returned from {{Min}} to {{#var:min}}
    4. It passes whatever is in | level = to {{Max}} as a named parameter as |Quest #={{{level}}}
    5. It stores whatever is returned from {{Max}} to {{#var:max}}
    6. It compares {{#var:min}} to {{#var:max}} and if different, displays whatever is in {{#var:min}} followed by a dash
    7. It displays whatever is in {{#var:max}}
    8. It stores the result of steps 6 & 7 to {{#var:levels}} and displays them

Example A[edit]

Example B[edit]

Example C[edit]

CODING[edit]

The code in this section is "includeonly" transcluded onto the page.