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. edit
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:Scroll list phantom.default
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.
- For the theory, see DPL:Manual - DPL parameters: Controlling output volume - include.
- For the practice, use the search facility on the DPL wiki to search for "phantom".
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.