Board Thread:Support Requests - Getting Technical/@comment-33142958-20171209211225

Hi All,

I'm a wikia noob and am working on my first wikia site (for a rpg game called King's Raid). I've A LOT of data entry ahead of me and am wondering what the best practices are for this task. I come from a dev background and we use APIs to access our data layer. Is there something akin to that in wikia? Is it even a good idea? For instance, could I create a Data template using a switch function and dot notation? For instance, the data template might look like this:

{{#if:{{{1}}}| {{#switch:{{lc:{{{1}}}}} |epis.class = Assasin |epis.position = Front |epis.skill.1.details = Some info about the skill 1 |epis.skill.1.cooldown = seconds to cooldown |epis.skill.2.details = Some info about skill 2}}

This would allow contributors to only have to update one place for all usages.

I couple drawbacks I could see are that it might be confusing to some and it could increase page load time. To counter the load time I might be able to break up these Data templates up somewhat. I could... treat the Data templates as "objects". Hence, each Hero would have their own Data object template with all their data. This would allow us to use this data in places other than the main page. For instance, I was thinking I might create some large matrix pages with all the skills of all the heroes listed.

What do you all think? Would this work? Is this overkill? Thanks. 