Module talk:String

From Yugipedia
Jump to: navigation, search

This is the talk page for discussing the page, Module:String.

Please try to

  • Be polite
  • Assume good faith
  • Be welcoming

Script error[edit]

It throws an error on some instances. I guess it's when the page requires it too much and it takes lots of time to load. It says: "The time allocated for running scripts has expired." and it's when invoked in the {{Card name}} template. You can check it at the bottom of pages like this. Though, sometimes, if the page loads faster or something, it doesn't appear and everything's good. Or appears only on the last two, or three. I think the worse I saw was appearing at the last 80 entries.
Here are two pics to illustrate the problem: on default skin; on monobook skin. As you can see, even though it's the same page, it appears on a different number of entries. And that's not due to the skin change. Becasita Pendulum (talkcontribs) 18:06, May 18, 2016 (UTC)

And since all the set lists are displayed at the set page, this happens for the last lists. Becasita Pendulum (talkcontribs) 19:06, May 18, 2016 (UTC)
I doubt the module was ever designed with hundreds of separate uses (let alone thousands) on a single page in mind; any given use is extremely light, but in those numbers, it really adds up. I've made {{Card name}} only call the module if the #replace version is too long and returns an error, which means most pages will never call the module, and even those that do will do so only a handful of times at most. ディノ千?!? · ☎ Dinoguy1000 21:17, May 18, 2016 (UTC)
Hey Dino! Thanks for taking care of it! Becasita Pendulum (talkcontribs) 22:46, May 18, 2016 (UTC)