Board Thread:Support Requests - Getting Technical/@comment-3175093-20190520065248/@comment-3175093-20190520091754

Fngplg wrote: what? you can't generate page with js. wgpagename is a variable, that shows name of current page. what are you trying to achieve? Well, I did.

Let me tell the story from the beginning: This is where the problem starts... The rest is as I mentioned before.
 * 1) I am Content moderator of ΒικIkariam
 * 2) In most of our pages, we have a table with tons of information about each level of each building of the game + many tooltips that provide extra info to the players.
 * 3) Because of this, I tried to find out if there is a way to use javascript in our page.
 * 4) Accourding to this, I can integrate Javascript just for me, at first.
 * 5) Following the instructions, I have created my wikia.js and with this I managed to generate the table for one building, so far.
 * 6) The js code I have created takes the title of the page and splits it with /,
 * 7) Then it takes the first (academy) for selecting the name of the building and
 * 8) The second (1-10) to take the range of levels that should be visible.