Lua/Template integrations #1344
Replies: 2 comments
-
|
Template data are downloaded from Wikimedia dump file, template expansion and executing Lua code is implemented in wikitextprocessor(please see luaexec.py and the lua folder). |
Beta Was this translation helpful? Give feedback.
-
|
The wikitext Lua functions calls are different, they are done with {{#invoke:...}} which calls a As for wikitextprocessor (which is what actually does the work here, check out that repo), what it does is two things: 1) parse a wikitext into a parse tree (which is often broken because wikitext is not actually 'parsable' this way because templates and lua code can generate more wikitext) and 2) do what Wikitext is meant to do and expand template calls (including parser functions like |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I'm trying to understand how wiktextract executes the templates/Lua modules that are used by Wiktionary, and how are the modules/templates tar files generated.
As an example, given the dog en.wiktionary entry:
where is
IPAdefined? how does wiktionary 'render'/'execute' the template/script?Beta Was this translation helpful? Give feedback.
All reactions