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 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 talk:Xpcolors

From DDO wiki
Jump to navigation Jump to search

I love all the work you're doing for the symbols/popups! I /salute you, sir!

Taurolyon 18:42, April 29, 2011 (EDT)

I am partially colorblind myself.. That is what gave me the idea for the popup.. Then I thought about it and decided I didn't want to have to mouse over every value to see what diff it was for, so I added the card symbols.. I am sure that others after mouse-overing a couple times will pick up on the pattern as well.. :) ShoeMaker 00:14, April 30, 2011 (EDT)

Epic expansion[edit]

I will be updating this template today to accommodate the expansion and three levels of epic now.. I'm thinking I'll use same pattern as heroic, but I'll put the purple dot in front of the epic tiers... -- ShoeMaker (Contributions Message) 10:59, August 11, 2012 (EDT)

Done, any suggestions for improvement, perhaps make the epic level ones a font size bigger or something? Thinking it should stand out more. -- ShoeMaker (Contributions Message) 12:57, August 11, 2012 (EDT)

I'm thinking along the lines of
Heroic (Solo Normal Hard Elite) Epic (Normal Hard Elite) or
Heroic (1000 2000 3000 4000) Epic (5000 6000 7000)
Of course it will look prettier with colors and card symbols. by Mjoll (ContributionsMessage) 13:34, August 11, 2012 (EDT)

Don't forget Epic Casual. No one runs it, but it exists. Nibelung (ContributionsMessage) 13:44, August 11, 2012 (EDT)
Epic Casual does exist? Huh... Ok, I'll add it.. As far as your suggestion Mjoll, I think it would simply be too long and wordy that way. Most lines using this template have a very short and limited space (like when called from the quest infobox template).
ShoeMaker (Contributions  Message) 14:23, August 11, 2012 (EDT)


If the problem is the length of the line then you can approach this differently ... Keep the old Template:Xpcolors and add an extra row to Template:MissionInfoBox.

Before
Base XP:  ♣10,000Solo/Casual ♦11,000Normal ♥12,000Hard ♠13,000Elite

After
Base XP (Heroic):  ♣10,000Solo/Casual ♦11,000Normal ♥12,000Hard ♠13,000Elite
Base XP (Epic):  ♣14,000Solo/Casual ♦15,000Normal ♥16,000Hard ♠17,000Eliteby Mjoll (ContributionsMessage) 00:20, August 12, 2012 (EDT)

It already is two lines like the Mjoll... If there are epic levels, you can use  ♣14,000Epic Casual ♦15,000Epic Normal ♥16,000Epic Hard ♠17,000Epic Elite, otherwise no, false, 0, none, or blank value will return the default of None.
ShoeMaker (Contributions  Message) 00:32, August 12, 2012 (EDT)
I see what you mean now. [This] is what I had in mind (the second and third example). You remove the pink dots (so that's 4 less symbols) and you tell the user through the use of words instead of symbols which line is for heroic and which is for epic xp, without having them to mouseover the values to tell which is which. by Mjoll (ContributionsMessage) 01:23, August 12, 2012 (EDT)

CSS[edit]

  • (This thread began on User:Aldyron/Sandbox/Quests experiment, then I moved it here where it belongs and expanded my chaotic notes to give them a presentable form. Forgive me, Technical 13, for splitting your reply in twain.)
As seen here, employing xp colors breaks numerical sorting because of all the formatting around the actual numeric values (or so I believe).
Besides, this template gets used many times in dpl tables, even hundreds of times.
For example, in the quest table: (345 rows) times (up to 8 XP values per row) = (up to 2760 XP values).
That, coupled with Mediawiki parser (purposeful) limitations on memory usage, complexity and time required, sometimes puts the successful generation of the table at risk.
So I was thinking, is it possible to make the template offload most of the formatting to CSS and only surround the actual number with something like <span class="difficulty_heroic_casual">637</span>, and let the reader's browser do everything else according to CSS?
Better yet, since it will get used many times in dpl tables, could it be aliased as <span class="diff_hc">637</span>? That would make it 24-7=17 characters shorter, meaning the Mediawiki parser will have to parse (e.g., in the quest table) up to 17×2760=46920 characters less, and it will also be slightly faster (or so I believe).
I still have to verify if that would solve the sorting problem, and the dpl size problem likely has other solutions too, but I think this one is the most reader-friendly.
BTW, I'm somewhat short of the proficiency required to do that myself without making a mess :-)
Aldyron (ContributionsMessage) 17:29, April 11, 2014 (EDT)
  • I was going to replace the template usage with the actual code/css in the quest (MissionInfoBox and a few other templates).
ShoeMaker (Contributions Message) 13:50, April 11, 2014 (EDT)

Symbols[edit]

  • (This thread began on User:Aldyron/Sandbox/Quests experiment, then I moved it here where it belongs and expanded my chaotic notes to give them a presentable form. Forgive me, Technical 13, for splitting your reply in twain.)
In order to slightly reduce visual complexity, how about replacing the "dot+suit" in epic difficulty formatting with an "empty suit"? That would make the complete set of difficulty symbols look like this: ♣♦♥♠♧♢♡♤.
Aldyron (ContributionsMessage) 17:48, April 11, 2014 (EDT)
  • I hadn't even thought about the other set of symbols, do they work in all browsers?
    • Solo —
    • Normal —
    • Hard —
    • Elite —
    • eCasual —
    • eNormal —
    • eHard —
    • eElite —
ShoeMaker (Contributions Message) 13:50, April 11, 2014 (EDT)
  • No. :-(
I *used* to think that maybe, in this 2014 so modern... :->>> OK, please excuse me while I try to identify some that do.
♣♦♥♠♧♢♡♤ (as above)
♣♦♥♠&emptyclubs;&emptydiams;&emptyhearts;&emptyspades;&voidclubs;&whiteclubs;&hollowclubs; (I don't think these even exist)
♣♦♥♠♧♢♡♤
♣♦♥♠♧♢♡♤
Aldyron (ContributionsMessage) 10:10, April 12, 2014 (EDT)
  • No luck.
Internet Explorer 8 displays all hollow suits as hollow squares.
Strangely enough, Firefox 28 displays everything correctly, except the colored hollow diamond, that gets displayed as a Braille glyph. Go figure.
So...
Mock-up AIcon tooltip.pnghc = Heroic Casual hn = Heroic Normal hh = Heroic Hard he = Heroic Elite
ec = Epic Casual en = Epic Normal eh = Epic Hard ee = Epic Elite
: 100hc 200hn 300hh 400he 1000ec 2000en 3000eh 4000ee
(don't pay attention to these lines: they are only here to visually separate mock-ups, so you have less of a hard time telling them apart)
Mock-up BIcon tooltip.pnghc = Heroic Casual hn = Heroic Normal hh = Heroic Hard he = Heroic Elite
ec = Epic Casual en = Epic Normal eh = Epic Hard ee = Epic Elite
: 100hc 200hn 300hh 400he 1000ec 2000en 3000eh 4000ee
("tell you 'bout a dream that I have every night")
Mock-up CIcon tooltip.pnghc = Heroic Casual hn = Heroic Normal hh = Heroic Hard he = Heroic Elite
ec = Epic Casual en = Epic Normal eh = Epic Hard ee = Epic Elite
: 100hc 200hn 300hh 400he 1000ec 2000en 3000eh 4000ee
("it ain't colorchrome and it isn't black-and-white")
Mock-up DIcon tooltip.pnghc = Heroic Casual hn = Heroic Normal hh = Heroic Hard he = Heroic Elite
ec = Epic Casual en = Epic Normal eh = Epic Hard ee = Epic Elite
: 100c 200n 300h 400e 1000c 2000n 3000h 4000e
("take me for a fool if you feel that's right")
Mock-up EIcon tooltip.pnghc = Heroic Casual hn = Heroic Normal hh = Heroic Hard he = Heroic Elite
ec = Epic Casual en = Epic Normal eh = Epic Hard ee = Epic Elite
: 100c 200n 300h 400e 1000c 2000n 3000h 4000e
("it's in dolby stereo but I never hear it right")
Mock-up FIcon tooltip.pnghc = Heroic Casual hn = Heroic Normal hh = Heroic Hard he = Heroic Elite
ec = Epic Casual en = Epic Normal eh = Epic Hard ee = Epic Elite
: 100hc 200hn 300hh 400he 1000ec 2000en 3000eh 4000ee
("well I see the way to go but there isn't any light")
Mock-up GIcon tooltip.pnghc = Heroic Casual hn = Heroic Normal hh = Heroic Hard he = Heroic Elite
ec = Epic Casual en = Epic Normal eh = Epic Hard ee = Epic Elite
: hc100 hn200 hh300 he400 ec1000 en2000 eh3000 ee4000
... how about those?
Aldyron (ContributionsMessage) 21:43, April 12, 2014 (EDT)
I'm ok with the new symbols, but I would like to keep the pink dot as the plain "epic" settings. Some mobs (specifically, the ones who show in heroic/epic wilderness areas) still have that pink dot because it was more telling visually than normal and enormal. Actually, for wilderness areas sake, I would even like to propose an "heroic" symbol. Maybe, following the suit above, and making a hollow pink circle: o
Nibelung (ContributionsMessage) 10:25, April 12, 2014 (EDT)

Changes in the |icon parameter of T:Popup[edit]

'|icon=no ' must be removed from this template now that the behavior of |icon has been corrected in T:Popup (if we want to have the same behaviour we had before). MrLizard (ContribsMessage) 12:47, October 29, 2020 (EDT)

  • We don't ever want the icon to show for this template, so I'm not sure what you want changed exactly. I've commented out your edit request - can you please sandbox and testcase what you're asking for here to compare and contrast the change? Thanks.  👟 ShoeMaker (Contribs • Message) 👟 16:48, October 29, 2020 (EDT)
    • Hi Shoe. What I am saying is that the question icon of T:Popup like in dummyIcon tooltip.pngdummy always appeared in xp/CR numbers where we used Xpcolors before the fix (which in my opinion was WAI since it was there for a long time). My point is that if we want to keep it that way, we will need to change it to |icon=yes (I said to remove |icon=no in the comment above, my mistake). Unless it was not WAI before. MrLizard (ContribsMessage) 17:24, October 29, 2020 (EDT)
    • To clarify which fix I am talking about: Template_talk:Popup#icon MrLizard (ContribsMessage) 17:42, October 29, 2020 (EDT)
    • Fulfilling your request. I've sandboxed it to T:Xpcolors/sandbox2. I actually only removed |icon=no.
       ♦13Icon tooltip.pngNormal ♥15Icon tooltip.pngHard ♠19Icon tooltip.pngElite is what was displayed before, visually speaking. It was like this for a long time.
       ♦13Normal ♥15Hard ♠19Elite is what is being displayed now, after the fix done according to Template_talk:Popup#icon.
      MrLizard (ContribsMessage) 19:01, October 29, 2020 (EDT)
      •  ♦13Normal ♥15Hard ♠19Elite is what it's supposed to look like.  👟 ShoeMaker (Contribs • Message) 👟 11:43, October 30, 2020 (EDT)