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:User since

From DDO wiki
Jump to navigation Jump to search
Its displaying things finally, but the calculations seem to be off.  {{User since|day=5|month=12|year=2010}}  (the date of my first edit), returns 2 years, 9 months. Should be 1 year, 2 months, and a few days change. 
Edit* {{User since|day=12|month=5|year=2011}} returns 1 year, 2 months. which is slightly more accurate. I think entering a number in the month section, causes it to count forward when referencing month Yawgmoth 21:02, March 12, 2012 (EDT)
Thinking about this, it would take A LOT of coding for me to make it work properly.. Not sure something so trivial is worth it. In order for it to work correctly, I would have to calculate how many days in total since the user signed up and divide by the number of days per year (taking into account actual days in each year) and divide it out so that it factors out to years, remainder factors out to months and remainder of that is days.. I'm fairly sure I can do it.. It is just a totally different method than what I was currently attempting to do and it may require the use of Extension:Loops and Extension:VariablesExtension, which I was trying to avoid... Let me toy with it in my head for a few more days and if I come up with a reasonable solution, I will apply and debug it and then post a message on this talk page when it is complete. ShoeMaker 22:56, March 12, 2012 (EDT)
Well, according to the current calenders, each year has 365 days, and 6 hours. Every 4 years adds a day, except for years that are exactly divisible by 100; but years that are exactly divisible by 400 are still leap years... (This is why we cant have time travel; nobody knows what time it is). How about just letting us enter the date for now, and if you end up getting bored, you can flesh out the rest of the coding. Yawgmoth 23:36, March 12, 2012 (EDT)
So, in other words, leave it how it is for now? lol Anyways..
Using your starting date of {{User since|day=5|month=12|year=2010}}, I could have it fairly easily figure out that you have been around:

4901 total days

I would then have to set up three sections.. First one would be:
13 Years

The second would be:
5 Months

The last would be:
0 Days

ShoeMaker 00:48, March 13, 2012 (EDT)