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

--- Comment #2 from kipod <[email protected]> ---
https://he.wikipedia.org/wiki/Mediawiki:Gadget-TemplateParamWizard.js

the function is called buildParamsRaw() ("data" is the raw template page).

i cannot guarantee that it always works flawlessly, but the wizard works on
hewiki  for a while now (more than a year), and i did not get any bug reports
(i did have some bug reports for previous versions).

i think it is possible to intentionally create a legal template that will give
bad results there: specifically, this function does not take "nowiki" and
"noinclude" tags into account.

OTOH, it uses only 9 out of the budget of 15, so you have 6 lines to augment
those shortcomings...

more seriously: i assumed the codebase already have non-negligible amount of
logic that can be used to distill the parameter list of a template. 

(full disclosure: i too did not believe it can be done without tons of code -
Eran Roz showed me the light)

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

Reply via email to