Final Fantasy Wiki
Register
Advertisement
FFWiki forum logo
Forums: Index > Rin's Travel Agency > Archive > Lua modules master thread


FFVII Cait Sith Battle

Discussion

The modules and their methods and properties should be documented. Help:Lua would be the consistent place for it. JBed (talk) 23:34, September 13, 2014 (UTC)

Technobliterator

Using bots to turn {{#if: to {{if| would be a bad idea. Parser functions work slightly differently to templates in that their parameters allow "=". So changing the former to the latter will break things if you try to do it without checking the outcome.

And yeah, I vote we {{#invoke}} in templates. Ergo, people who don't use Lua need never reference modules. They transclude templates which invoke modules. JBed (talk) 00:53, September 14, 2014 (UTC)

Technobliterator
FFVII Cait Sith Battle
Technobliterator
FFVII Cait Sith Battle

I'd like to see what happens when #invoke is compared to TL with regards to template include size limit. JBed (talk) 19:31, October 2, 2014 (UTC)

With templates I got 8462 and 8072 before timing out. With invoke I got 7304 twice... that doesn't sound plausible but it did happen. It being that way doesn't make sense, unless caches plays a part when being invoked from the template but not when direct invoking from a page. I might get different results if I keep trying, don't know.

We're talking 12615 before we hit template include on templates. Invoke does have template include limit, and actually we're getting 19175 uses before hitting it. Under "uses" I include both successful displays and script errors. That could mess with things, I doubt that much though.

TLs not exactly a lightweight module. I mean, it's simple but not really simple. I wonder what would happen with Talk.

I think the demo proved that processing time differences are insignificant between invoke via template vs. direct invoke; and template include size increases when invoking via templates. But the limit is just intended to be a cap to prevent bad situations, we already know from the script time outs that it's not causing a bad situation. JBed (talk) 20:13, October 2, 2014 (UTC)

Okay, I think this is almost complete now. I need to re-manage the invokables section, write an intro, and then get someone to read over the rest of the body.

Besides that there is the finishing of the documentation of mw. I also found out os was a thing few days ago. Techno, Catuse: if either of you want to document these then feel free. Although I probably have the most free time of both of you so I feel like I shouldn't really ask it of you.

I wish Scribunto gave us COOKIE access. Then we could factor in user preferences into things. Like talkbox display style: simple, forum-style, or classic FFWiki-style. That's just a simple example, there's a lot more control we'd have. JBed (talk) 07:25, October 19, 2014 (UTC)

Advertisement