Jean Abou Samra
Joined 15 October 2025
→This wiki has no templates: Reply |
→This wiki has no templates: Reply |
||
| Line 110: | Line 110: | ||
:::::I've discovered a potential reason for activating Scribunto: Right now, I'm using the <code>query</code> MediaWiki API to download snippets for <code>makelsr.pl</code>. However, <code>query</code> doesn't expand templates. This means that I have to call the <code>expandtemplates</code> API, sending the unexpanded page to the Wiki server to get an expanded version back. | :::::I've discovered a potential reason for activating Scribunto: Right now, I'm using the <code>query</code> MediaWiki API to download snippets for <code>makelsr.pl</code>. However, <code>query</code> doesn't expand templates. This means that I have to call the <code>expandtemplates</code> API, sending the unexpanded page to the Wiki server to get an expanded version back. | ||
:::::The Skribunto interface provides [https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#frame:preprocess <code>frame:preprocess</code>], which seems to unify the abovementioned two calls into a single one (I haven't tested it). Maybe this can be configured to not use Lua, in case this simplifies things. What do you think? -- [[User:Lemzwerg|Lemzwerg]] ([[User talk:Lemzwerg|talk]]) 14:56, 1 January 2026 (UTC) | :::::The Skribunto interface provides [https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#frame:preprocess <code>frame:preprocess</code>], which seems to unify the abovementioned two calls into a single one (I haven't tested it). Maybe this can be configured to not use Lua, in case this simplifies things. What do you think? -- [[User:Lemzwerg|Lemzwerg]] ([[User talk:Lemzwerg|talk]]) 14:56, 1 January 2026 (UTC) | ||
::::::I don't see a problem with one extra API call per page to expand templates. Also, the function you link is a Lua API, for use in Lua modules running on the wiki, so I don't get how you want to use it outside. [[User:Jean Abou Samra|Jean Abou Samra]] ([[User talk:Jean Abou Samra|talk]]) 22:02, 1 January 2026 (UTC) | |||
== MediaWiki variables for current stable and unstable LilyPond versions == | == MediaWiki variables for current stable and unstable LilyPond versions == | ||