4 ms·
There is some non-edit dynamic stuff too; some templates are written in lua These templates can pull information in from outside of the specific Wikipedia inst
by M2Ys4U 6y ago
There is some non-edit dynamic stuff too; some templates are written in lua
These templates can pull information in from outside of the specific Wikipedia instance, like retrieving properties from Wikidata.
Edit: I guess I was wrong, seems like lua modules are only evaluated when there's a change to a page incorporating them:
>The programs are run only when the page is "parsed" (when it or a page it incorporates is changed or previewed), not every time you view the output.
https://en.wikipedia.org/wiki/Help:Lua_for_beginners#Input https://en.wikipedia.org/wiki/Help:Lua_for_beginners#Input
- bawolff 6y agoYou were kind of right - page gets reparsed (and frontend cdn cache cleared, along with a backend cache cleared) anytime someone edits a wikidata entry the lua script uses.
- Thorrez 6y agoThose lua templates seem to be constantly having problems. https://en.wiktionary.org/wiki/a https://en.wiktionary.org/wiki/a >Lua error: not enough memory appears on the page 250 times.