https://bugzilla.wikimedia.org/show_bug.cgi?id=69540

--- Comment #10 from Jackmcbarn <[email protected]> ---
>From IRC:

<hoo> wgScribuntoAllowedResourceLoaderModules << nope nope nope
<jackmcbarn> why? a module could effectively do that anyway by rendering an
infobox but throwing away its content
<hoo> jackmcbarn: Why should it do that? To have the mw-capiunto CSS
declarations loaded?
<jackmcbarn> there isn't a good reason for that; i'm just saying it was already
possible
<jackmcbarn> why "nope nope nope" is what i'm asking?
<hoo> well, but the idea of having a facility to allow Lua to load modules at
all seems scary
<jackmcbarn> yes, but it's no scarier to expose it directly than to expose it
indirectly, at least imo
<hoo> Totally disagree
<jackmcbarn> why?
<hoo> let's not make Scribunto the do-it-all box
<hoo> we did that in the past with over extensions and core and that's not
especially much fun
<jackmcbarn> the idea is that Capiunto's stylesheet would be the only thing in
that, at least for now, and the only future things would be other extensions
like Capiunto
<hoo> If there's a need for something like that, we can talk about that again
<hoo> but not if there's only a single extension doing that
<hoo> no need to enter the evil road here
<jackmcbarn> i'm not sure, especially since we can't easily switch from
mw.ext.Capiunto to require('capiunto') later if we change our minds. i'll post
our convo on the bug and let brad weigh in
<jackmcbarn> what do you think of my other suggestions?
<hoo> jackmcbarn: preprocess... mh
<hoo> not sure the thing is usable without it
<hoo> we could make it an option though
<jackmcbarn> what case can you think of where it would be a good idea to
preprocess?
<jackmcbarn> i literally can't think of any
<hoo> Someone was playing with it and a lot of stuff didn't work as expected
there
<hoo> that's why I added it
<hoo> I think he recreated some enwiki Infoboxes
<jackmcbarn> but enwiki infoboxes will continue to be fed to a shell around
capiunto via wikitext. and frame:preprocess is considered evil, up there next
to goto
<hoo> Wikitext and the Parser are awry, sure
<hoo> but I doubt we can get around that
<hoo> still a MediaWiki world
<hoo> and people expect stuff to work "like templates"
<jackmcbarn> before Lua, there was a guarantee that text wouldn't get
preprocessed twice
<jackmcbarn> now this will be preprocessing stuff twice, and it could break
fragile things
<jackmcbarn> (the reason preprocess is considered evil is that all text in lua
should already be preprocessed)
<hoo> I know... but this is supposed to be easy to use and I don't want to
completely throw this over
<hoo> also I'm not sure how that will work with content from Wikdiata
<jackmcbarn> does Wikidata provide wikitext content?
<hoo> It can, but it's 5:30am and so I'm not exactly sure how it looks anymore
<jackmcbarn> ok, i'll pick this up some other day then

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to