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.
Known Issue: Xatheral has been temporarily disabled while we investigate a bug with Year of the Dragon gift delivery.DDO Forums 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:Scroll list phantom.default

From DDO wiki
Jump to navigation Jump to search

Purpose[edit]

DPL tranform (phantom) templates are used to create a transform layer for DPL extension calls.

DPL passes all arguments supplied to a defined template to the transform template, allowing access to those values as well as to provide an opportunity to add logic to calculate new values to then feed back to the caller.

Output of the phantom template is designed to be consumed directly by the DPL extension in the caller to generate table rows. Phantom templates like this one are not for normal use: they are employed by DPL queries to mix, remix and format parameters from its "parent" template and possibly some metadata.



Usage[edit]

Usage of transform (phantom) templates inside a dpl extension call are handled by calling the "include" argument with a specific syntax. All values/arguments that are sent to <EXISTING TEMPLATE> will be sent to <TRANSFORM TEMPLATE> for data processing.

{{#dpl:
    ...
    | include = {<EXISTING TEMPLATE>{{!}}<TRANSFORM TEMPLATE>}
    ...
}}
  • This template (.default) is triggered for every page that matches the callers DPL filter criteria (namespace/category/uses)
  • But does not contain the specified template identified by the include argument
  • If the parent has identified specific filter criteria, and wants that processed in a certain way, data processing by a default template is generally undesired
  • In this case, we send back zero output to the caller

Categorization[edit]

  • This template does not inject categorization to any callers

Coding[edit]

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