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
Thank you for your patience while we continue to upgrade DDOwiki to the latest MediaWiki LTS version. If you find any errors on the site, please visit the Discord chat server and let us know.
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 remove ads, build a reputation, and unlock more editing privileges and then visit DDO wiki's IRC Chat/Discord if you need any help!
Template talk:XpcolorsNP
Code unfolded
The code consists of 10 nearly identical blocks (one for each difficulty parameter). The code parts using "XPCflag" enforce that multiple numbers are spearated by a space but no spaces appear before the first and after the last number
{{#vardefine: XPCflag|}} {{#ifeq: {{{solo|+}}}|{{{solo|-}}} | {{#vardefineecho: XPCflag|{{Xpcolors/subst|{{{solo}}}|blue|♣|}} }} }} {{#ifeq: {{{casual|+}}}|{{{casual|-}}} | {{#if: {{#var: XPCflag}}| |}} {{#vardefineecho: XPCflag|{{Xpcolors/subst|{{{casual}}}|blue|♣|}} }} }} {{#ifeq: {{{normal|+}}}|{{{normal|-}}} | {{#if: {{#var: XPCflag}}| |}} {{#vardefineecho: XPCflag|{{Xpcolors/subst|{{{normal}}}|green|♦|}} }} }} {{#ifeq: {{{hard|+}}}|{{{hard|-}}} | {{#if: {{#var: XPCflag}}| |}} {{#vardefineecho: XPCflag|{{Xpcolors/subst|{{{hard}}}|#FF8c00|♥|}} }} }} {{#ifeq: {{{elite|+}}}|{{{elite|-}}} | {{#if: {{#var: XPCflag}}| |}} {{#vardefineecho: XPCflag|{{Xpcolors/subst|{{{elite}}}|red|♠|}} }} }} {{#ifeq: {{{epic|+}}}|{{{epic|-}}} | {{#if: {{#var: XPCflag}}| |}} {{#vardefineecho: XPCflag|{{Xpcolors/subst|{{{epic}}}|#FF33FF||epic}} }} }} {{#ifeq: {{{ecasual|+}}}|{{{ecasual|-}}} | {{#if: {{#var: XPCflag}}| |}} {{#vardefineecho: XPCflag|{{Xpcolors/subst|{{{ecasual}}}|blue|♣|epic}} }} }} {{#ifeq: {{{enormal|+}}}|{{{enormal|-}}} | {{#if: {{#var: XPCflag}}| |}} {{#vardefineecho: XPCflag|{{Xpcolors/subst|{{{enormal}}}|green|♦|epic}} }} }} {{#ifeq: {{{ehard|+}}}|{{{ehard|-}}} | {{#if: {{#var: XPCflag}}| |}} {{#vardefineecho: XPCflag|{{Xpcolors/subst|{{{ehard}}}|#FF8c00|♥|epic}} }} }} {{#ifeq: {{{eelite|+}}}|{{{eelite|-}}} | {{#if: {{#var: XPCflag}}| |}} {{#vardefineecho: XPCflag|{{Xpcolors/subst|{{{eelite}}}|red|♠|epic}} }} }}