Board Thread:Support Requests - Getting Technical/@comment-10090661-20140329025805/@comment-10090661-20140402022640

Ok, Wow... This is going to be a long post. I was hoping to avoid too much detail, but if you want it, I'll type up a manual.

If you want a summary, here it is:

Maybe 90% of our Templates no longer work, because they're almost all linked to the old w:c:dragoncity:Template:Data/Dragons. It's really a database. Our new database is a split-up version of the old one, e.g., w:c:dragoncity:Data:Nature Dragon.

50% of our pages use w:c:dragoncity:Template:Dragon Content, a customized infobox which no longer works, even if it is unblanked. As a temporary replacement, we are using w:c:dragoncity:Template:Content/dc-infobox. This one needs to be replaced with something more permanent that produces what the old Dragon Content did.

As to what the old Dragon Content did, it combines the functions of other Templates to display several pages of (mostly calculated and as often as practical in the form of graphics) information based on what is found in the DB:


 * 1) MAIN/HEADER: some basic data from the DB, namely:
 * 2) * mugshots [[File: m3.jpg]]
 * 3) * name
 * 4) * habitatlv
 * 5) * habitats: (i/Elements)
 * 6) ** e1
 * 7) ** e2
 * 8) ** e3
 * 9) ** e4
 * 10) * type
 * 11) * if store then storelv else N/A
 * 12) * store cost
 * 13) ** storegold (formatnum, gold) OR
 * 14) ** storegem (formatnum, gem)
 * 15) * xp (formatnum)
 * 16) * sell (formatnum)
 * 17) * breedtime (time)
 * 18) * hatchtime (time)
 * 19) * Category
 * 20) * category
 * 21) ** Primary Element (i/Elements)
 * 22) * gen, earn/earnB, dificulty (yes it's spelt that way in the db)
 * 23) * description
 * 24) OVERVIEW page: Images at different stages in its life-cycle for recognition
 * 25) * Egg:  0.png
 * 26) * Level 1-3:  0.png
 * 27) * Level 4-6:  0.png
 * 28) * Level 7-40:  0.png
 * 29) STATISTICS (General stats used for consideration in purchase of Dragons, displayed in graphical format using sliders)
 * 30) * Combat: category/5*100%
 * 31) * Economy: earn/60*100%
 * 32) * Breeding: dificulty/29*100%
 * 33) * Time: (hatchtime+breedingtime)/(194400*2)*100%
 * 34) EARNING (Table for Earning at specific levels)
 * 35) * if gen=NPC then N/A else display in table form based on formula (if level <= 10 then (earn + (earnB * (level - 1))) else (earn + (earnB * ((level + 8)/2))))
 * 36) ATTACKS (Table of attacks available to the Dragon -- not all the Dragons have the same number of attacks, so a test is required before display to avoid error) I'm not too familiar regarding how this section works, but it uses attack1 -- attack4 & train1 -- train4 and w:c:dragoncity:Template:i/Elements to display Lv (Level at which an attack becomes available -- attack3 is only available at Level 8, attack4 at level 15), Attack Element, Attack Name & Base Damage for attacks 1-4, and Time, Attack Element, Attack Name and Base Damage for train 1-4. (See image)
 * 37) DAMAGE CALCULATOR uses information from attack1-4, train1-4 and w:c:dragoncity:Template:i/Elements to display each attack element once, in the order of availability, and the Elements that receives high, low and no damage from that attack. (See image)
 * 38) HP (Table of Dragon HP based on category -- there are only 5 categories, so I'm probably going to just create 5 tables and display that in place of the code.)
 * 39) BREEDING (Displays all possible ways to obtain a Dragon by Breeding using w:c:dragoncity:Template:Dragon Content/Breeding,  and gen)
 * 40) HISTORY uses w:c:dragoncity:Template:tabber/Available/Event. I've no idea what it does, although it sounds like it has something to do with the History of the Dragons' appearance in the Dragon City the app.
 * 41) CATEGORY (hidden) -- Assigns hidden categories to the Dragon according to e1, e2, e3, e4, type, dificulty, order of e1-4, number of Elements, collection, and  (the final category is for checksum page)

That's it for w:c:dragoncity:Template:Dragon Content. We have lots more Templates but they're all a bit like this one.

Do you want me to detail the rest, or would you prefer to look through them yourselves? I'm clear on some of them, but not 100% clear on every Template. I'm pretty sure there are many I've not used before, but are used somewhere in the wiki.