Re: Number succession of Denjuu/Dino/Bug/whatever
Posted: Sat Jul 26, 2008 5:35 pm
As you can see from the top of any Telefang 1 Denjuu article, there is this:

The current page is Krypto, so Krypto is in the centre. The preceding and succeeding of the Denjuu is in order, as such to be 003 - 004 - 005 - 006 - 007. And the sizing of each image is 48px - 56px - 64px - 56px - 48px, which increases as it reaches the original number. Might be too big and take up too much space. >>
The code for this is entirely in the infobox template, and there is no need for entering any extra stuff into the articles. This is done with the {{#expr:}} and a {{#switch:}} template.
So the topic of this topic is this: the switch template is a Select Case kind of algorithm (or syntax. whatever). This makes use of the current name translations of the Denjuu to return it to that function. Now, since we're gonna be updating the list often, the template has to change too. But what if we make use of this function on the lists? It's possible, but there would be a lot of stress on the server since it has to do the same thing 174 times, multiplied by the number of times the article is visited. This would make that page slow to load (just like how my TelefangEdit is, since it converts hex to ASCII using a select case function).
Therefore, I want to ask opinions if this should be done (to put the template in the lists). And also if the current thingy on Denjuu pages is ok. And yeah I'll be expanding it to all monsters, don't worry.
So how...
EDIT: Oops. Oshie > Oshe. I forgot xP

The current page is Krypto, so Krypto is in the centre. The preceding and succeeding of the Denjuu is in order, as such to be 003 - 004 - 005 - 006 - 007. And the sizing of each image is 48px - 56px - 64px - 56px - 48px, which increases as it reaches the original number. Might be too big and take up too much space. >>
The code for this is entirely in the infobox template, and there is no need for entering any extra stuff into the articles. This is done with the {{#expr:}} and a {{#switch:}} template.
So the topic of this topic is this: the switch template is a Select Case kind of algorithm (or syntax. whatever). This makes use of the current name translations of the Denjuu to return it to that function. Now, since we're gonna be updating the list often, the template has to change too. But what if we make use of this function on the lists? It's possible, but there would be a lot of stress on the server since it has to do the same thing 174 times, multiplied by the number of times the article is visited. This would make that page slow to load (just like how my TelefangEdit is, since it converts hex to ASCII using a select case function).
Therefore, I want to ask opinions if this should be done (to put the template in the lists). And also if the current thingy on Denjuu pages is ok. And yeah I'll be expanding it to all monsters, don't worry.
So how...
EDIT: Oops. Oshie > Oshe. I forgot xP