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

       Web browser: ---
            Bug ID: 52581
           Summary: when tempaltedata does not exist, API should return
                    auto-generated "templatedata" struct
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: TemplateData
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

if the template does not contain explicit "templatedata", the API call should
return auto-generated "templatedata" structure, distilled from the template
itself.


it's trivial to do - basically parse the template, extract parameter names
(including order based, aka 1,2,3), and return "default" templatedata where
every param is of type string, without any special attributes (default,
required, etc.)

this 15-line enhancement will make VE suddenly useful for templates, without
detracting anything from current functionality.

we did this in hewiki with "template param wizard" (the equivalent of VE
template editor, for the old wikitext editor), and it enhanced the wizard's
functionality tenfold.

regretfully i can't submit a patch - hopefully someone else will be able to do
so.

peace.

-- 
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