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:Quest table row meta

From DDO wiki
Jump to navigation Jump to search

Usage[edit]

This template is not to be used directly in pages. Its purpose is to perform some calculations for phantom templates that want to display a table row for a quest. What it does is take all the parameters needed from {{Quest}} and produce a bunch of variables that a calling template can use to display table cells.

A phantom template for quests will normally call this template once as shown below. It will then use the generated variables (listed below) as table cells. See the examples below for how the variables can be used.

{{Quest table row meta
  | pagename = {{{%PAGE%}}}
  | name = {{{name|}}}
  | adpack = {{{adpack|}}}
  | free = {{{free|}}}
  | level = {{{level|}}}
  | epic = {{{epic|}}}
  | xp = {{{xp|}}}
  | epicxp = {{{epicxp|}}}
  | casual = {{{casual|}}}
  | solo = {{{solo|}}}
  | normal = {{{normal|}}}
  | hard = {{{hard|}}}
  | elite = {{{elite|}}}
  | ecasual = {{{ecasual|}}}
  | esolo = {{{esolo|}}}
  | enormal = {{{enormal|}}}
  | ehard = {{{ehard|}}}
  | eelite = {{{eelite|}}}
  | solo only = {{{solo only|}}}
  | favor = {{{favor|}}}
  | shares favor = {{{shares favor|}}}
  | zone = {{{zone|}}}
  | bestower = {{{bestower|}}}
  | npc = {{{npc|}}}
  | loc = {{{loc|}}}
  | duration = {{{duration|}}}
  | patron = {{{patron|}}}
  | flagging = {{{flagging|}}}
}}

Variables generated:

{{#var:free}}
{{#var:cell_color}}
{{#var:epic}}
{{#var:epiccol}}
{{#var:heroiclevel}}
{{#var:epiclevel}}
{{#var:sortlevel}}
{{#var:level}}
{{#var:casualxp}}
{{#var:normalxp}}
{{#var:hardxp}}
{{#var:elitexp}}
{{#var:ecasualxp}}
{{#var:enormalxp}}
{{#var:ehardxp}}
{{#var:eelitexp}}
{{#var:heroicxp}}
{{#var:epicxp}}
{{#var:xp}}
{{#var:casual}}
{{#var:normal}}
{{#var:hard}}
{{#var:elite}}
{{#var:name}}
{{#var:favor}}
{{#var:bestowloc}}
{{#var:bestower}}
{{#var:loc}}
{{#var:duration}}
{{#var:patron}}
{{#var:pack}}
{{#var:flagging}}

Note: The variables that indicate "sortable" have the cell attribute "data-sort-value=" set. This makes it impossible to modify other cell attributes when using those variables. If you want to apply other attributes to those cells either create them again using other variables from this template or add a new variable to this template that provides the value without the data-sort-value attribute.

  • free (Yes, No)
  • cell_color (according to free)
  • epic (No, Both, Yes, Unknown)
  • epiccol (No, Both, Yes, Unknown, sortable)
  • heroiclevel (heroic level or empty)
  • epiclevel (epic level or empty)
  • sortlevel (lowest quest level)
  • level (all levels, sortable)
  • casualxp, normalxp, hardxp, elitexp (unformatted xp numbers, can be empty)
  • ecasualxp, enormalxp, ehardxp, eelitexp (unformatted xp numbers, can be empty)
  • heroicxp (XpcolorsNP or whatever value xp has)
  • epicxp (XpcolorsNP or whatever value epicxp has)
  • xp (heroic + epic, XpcolorsNP)
  • casual (heroic + epic, XpcolorsNP, sortable)
  • normal (heroic + epic, XpcolorsNP, sortable)
  • hard (heroic + epic, XpcolorsNP, sortable)
  • elite (heroic + epic, XpcolorsNP, sortable)
  • name (linked, heroic/epic counterpart mentioned)
  • favor (max favor, sortable)
  • bestowloc (linked)
  • bestower (not linked)
  • loc (not linked)
  • duration (sortable)
  • patron (linked)
  • pack (linked, sortable)
  • flagging

Examples[edit]

  • Let's say we want to create a quest table with 2 columns. First the name of the quest and second the level. We would first call this meta template and then use the variables name and level. Those variables contain the necessary code for the name to be linked correctly as well as the levels of the quest displayed properly and able to be sorted.
<!-- 
                  Creating the variables:
-->{{Quest table row meta
  | pagename = {{{%PAGE%}}}
...
  | flagging = {{{flagging|}}}
}}<!-- 
                  Creating the table row
-->|-
| {{#var: name}}
| {{#var: level}}
  • Let's say we want to create a quest table that allocates 2 rows for quests that are both heroic and epic. We would again call this meta template, but there are no variables doing that. So we'll use the existing variables to do what we want. First, we'll check to see if the quest has 2 versions with the variable epic. Then we will display the xp for heroic and epic in separate rows using casualxp, ecasualxp, normalxp, etc. variables.
<!-- 
                  Creating the variables:
-->{{Quest table row meta
  | pagename = {{{%PAGE%}}}
...
  | flagging = {{{flagging|}}}
}}<!-- 
                  Creating the table row
-->{{#ifeq: {{#var: epic}} | Both
 | {{!}}- <!-- row if both heroic and epic-->
{{!}} colspan="2" {{!}} {{#var: name}}
{{!}} {{XpcolorsNP|casual={{#var:casualxp}} }}
{{!}} {{XpcolorsNP|normal={{#var:normalxp}} }}
{{!}} {{XpcolorsNP|hard={{#var:hardxp}} }}
{{!}} {{XpcolorsNP|elite={{#var:elitexp}} }}
{{!}}- <!-- row for epic xp -->
{{!}} {{XpcolorsNP|ecasual={{#var:ecasualxp}} }}
{{!}} {{XpcolorsNP|enormal={{#var:enormalxp}} }}
{{!}} {{XpcolorsNP|ehard={{#var:ehardxp}} }}
{{!}} {{XpcolorsNP|eelite={{#var:eelitexp}} }}
 | {{!}}- <!-- row if only heroic or epic -->
{{!}} {{#var: name}}
{{!}} {{#var: casual}} <!-- This variable already contains XpcolorsNP AND data-sort-value for sorting. -->
{{!}} {{#var: normal}}
{{!}} {{#var: hard}}
{{!}} {{#var: elite}}
}}<!-- end if -->

CODE[edit]