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

Forbym wrote: Hey Pluvikia,

I'm a wikia noob, too, but, hey, maybe I can contribute something useful! :-D

It makes a lot of sense to me to use a data layer to ensure consistency and edit the data only in one place.

In my understanding, the best approach on wikia is probably this extension (I've never used it myself):

https://www.mediawiki.org/wiki/Extension:Arrays

which is available on request according to this page:

http://community.wikia.com/wiki/Help:Extensions#On_request

Hope that helps,

forbym <p style="border-bottom-color:rgb(58,58,58);border-bottom-style:none;border-bottom-width:0px;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-left-color:rgb(58,58,58);border-left-style:none;border-left-width:0px;border-right-color:rgb(58,58,58);border-right-style:none;border-top-color:rgb(58,58,58);border-top-style:none;color:rgb(58,58,58);font-family:&quot;HelveticaNeue&quot;,Helvetica,Arial,sans-serif;font-size:13px;font-variant:normal;font-weight:400;letter-spacing:normal;margin-bottom:6.5px;margin-left:0px;margin-right:0px;margin-top:5.2px;orphans:2;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;-webkit-text-stroke-width:0px;white-space:normal;word-spacing:0px;">@Forbym

<p style="border-bottom-color:rgb(58,58,58);border-bottom-style:none;border-bottom-width:0px;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-left-color:rgb(58,58,58);border-left-style:none;border-left-width:0px;border-right-color:rgb(58,58,58);border-right-style:none;border-top-color:rgb(58,58,58);border-top-style:none;color:rgb(58,58,58);font-family:&quot;HelveticaNeue&quot;,Helvetica,Arial,sans-serif;font-size:13px;font-variant:normal;font-weight:400;letter-spacing:normal;margin-bottom:13px;margin-left:0px;margin-right:0px;margin-top:13px;orphans:2;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;-webkit-text-stroke-width:0px;white-space:normal;word-spacing:0px;">Thanks for your response. Here's the page I've been working on:

<p style="border-bottom-color:rgb(58,58,58);border-bottom-style:none;border-bottom-width:0px;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-left-color:rgb(58,58,58);border-left-style:none;border-left-width:0px;border-right-color:rgb(58,58,58);border-right-style:none;border-top-color:rgb(58,58,58);border-top-style:none;color:rgb(58,58,58);font-family:&quot;HelveticaNeue&quot;,Helvetica,Arial,sans-serif;font-size:13px;font-variant:normal;font-weight:400;letter-spacing:normal;margin-bottom:13px;margin-left:0px;margin-right:0px;margin-top:13px;orphans:2;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;-webkit-text-stroke-width:0px;white-space:normal;word-spacing:0px;">http://kingsraid.wikia.com/wiki/Epis

<p style="border-bottom-color:rgb(58,58,58);border-bottom-style:none;border-bottom-width:0px;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-left-color:rgb(58,58,58);border-left-style:none;border-left-width:0px;border-right-color:rgb(58,58,58);border-right-style:none;border-top-color:rgb(58,58,58);border-top-style:none;color:rgb(58,58,58);font-family:&quot;HelveticaNeue&quot;,Helvetica,Arial,sans-serif;font-size:13px;font-variant:normal;font-weight:400;letter-spacing:normal;margin-bottom:13px;margin-left:0px;margin-right:0px;margin-top:13px;orphans:2;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;-webkit-text-stroke-width:0px;white-space:normal;word-spacing:0px;">Here's where I store the data:

<p style="border-bottom-color:rgb(58,58,58);border-bottom-style:none;border-bottom-width:0px;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-left-color:rgb(58,58,58);border-left-style:none;border-left-width:0px;border-right-color:rgb(58,58,58);border-right-style:none;border-top-color:rgb(58,58,58);border-top-style:none;color:rgb(58,58,58);font-family:&quot;HelveticaNeue&quot;,Helvetica,Arial,sans-serif;font-size:13px;font-variant:normal;font-weight:400;letter-spacing:normal;margin-bottom:13px;margin-left:0px;margin-right:0px;margin-top:13px;orphans:2;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;-webkit-text-stroke-width:0px;white-space:normal;word-spacing:0px;">http://kingsraid.wikia.com/wiki/Template:Epis

<p style="border-bottom-color:rgb(58,58,58);border-bottom-style:none;border-bottom-width:0px;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-left-color:rgb(58,58,58);border-left-style:none;border-left-width:0px;border-right-color:rgb(58,58,58);border-right-style:none;border-top-color:rgb(58,58,58);border-top-style:none;color:rgb(58,58,58);font-family:&quot;HelveticaNeue&quot;,Helvetica,Arial,sans-serif;font-size:13px;font-variant:normal;font-weight:400;letter-spacing:normal;margin-bottom:13px;margin-left:0px;margin-right:0px;margin-top:13px;orphans:2;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;-webkit-text-stroke-width:0px;white-space:normal;word-spacing:0px;">Here's one of the implementations of that data:

<p style="border-bottom-color:rgb(58,58,58);border-bottom-style:none;border-bottom-width:0px;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-left-color:rgb(58,58,58);border-left-style:none;border-left-width:0px;border-right-color:rgb(58,58,58);border-right-style:none;border-top-color:rgb(58,58,58);border-top-style:none;color:rgb(58,58,58);font-family:&quot;HelveticaNeue&quot;,Helvetica,Arial,sans-serif;font-size:13px;font-variant:normal;font-weight:400;letter-spacing:normal;margin-bottom:13px;margin-left:0px;margin-right:0px;margin-top:13px;orphans:2;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;-webkit-text-stroke-width:0px;white-space:normal;word-spacing:0px;">http://kingsraid.wikia.com/wiki/Template:SkillDesign

<p style="border-bottom-color:rgb(58,58,58);border-bottom-style:none;border-bottom-width:0px;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-left-color:rgb(58,58,58);border-left-style:none;border-left-width:0px;border-right-color:rgb(58,58,58);border-right-style:none;border-top-color:rgb(58,58,58);border-top-style:none;color:rgb(58,58,58);font-family:&quot;HelveticaNeue&quot;,Helvetica,Arial,sans-serif;font-size:13px;font-variant:normal;font-weight:400;letter-spacing:normal;margin-bottom:13px;margin-left:0px;margin-right:0px;margin-top:13px;orphans:2;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;-webkit-text-stroke-width:0px;white-space:normal;word-spacing:0px;">This seems to work, although my tables on the Epis page aren't the prettiest. I can clean the design up later. I'm pretty happy how all my variables and templates resolved how I wanted. With this data setup I'm hopefull the future data entry and page setups for Hero types go quickly. What do you think?

<p style="border-bottom-color:rgb(58,58,58);border-bottom-style:none;border-bottom-width:0px;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-left-color:rgb(58,58,58);border-left-style:none;border-left-width:0px;border-right-color:rgb(58,58,58);border-right-style:none;border-top-color:rgb(58,58,58);border-top-style:none;color:rgb(58,58,58);font-family:&quot;HelveticaNeue&quot;,Helvetica,Arial,sans-serif;font-size:13px;font-variant:normal;font-weight:400;letter-spacing:normal;margin-bottom:13px;margin-left:0px;margin-right:0px;margin-top:13px;orphans:2;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;-webkit-text-stroke-width:0px;white-space:normal;word-spacing:0px;">Thanks for the arrays tip. I think hashtables might better suite my need. Looks like they have them

<p style="border-bottom-color:rgb(58,58,58);border-bottom-style:none;border-bottom-width:0px;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-left-color:rgb(58,58,58);border-left-style:none;border-left-width:0px;border-right-color:rgb(58,58,58);border-right-style:none;border-top-color:rgb(58,58,58);border-top-style:none;color:rgb(58,58,58);font-family:&quot;HelveticaNeue&quot;,Helvetica,Arial,sans-serif;font-size:13px;font-variant:normal;font-weight:400;letter-spacing:normal;margin-bottom:13px;margin-left:0px;margin-right:0px;margin-top:13px;orphans:2;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;-webkit-text-stroke-width:0px;white-space:normal;word-spacing:0px;">https://www.mediawiki.org/wiki/Extension:HashTables

<p style="border-bottom-color:rgb(58,58,58);border-bottom-style:none;border-bottom-width:0px;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;border-left-color:rgb(58,58,58);border-left-style:none;border-left-width:0px;border-right-color:rgb(58,58,58);border-right-style:none;border-top-color:rgb(58,58,58);border-top-style:none;color:rgb(58,58,58);font-family:&quot;HelveticaNeue&quot;,Helvetica,Arial,sans-serif;font-size:13px;font-variant:normal;font-weight:400;letter-spacing:normal;margin-bottom:13px;margin-left:0px;margin-right:0px;margin-top:13px;orphans:2;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;vertical-align:baseline;-webkit-text-stroke-width:0px;white-space:normal;word-spacing:0px;">I'll toy with that later. I wouldn't be surprised if it was more efficient than my method.