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

            Bug ID: 69906
           Summary: 2.0: Make it clearer that Scripts and CSS must be in
                    Gadget namespace when defining a gadget
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Gadgets
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
            Blocks: 29272
       Web browser: ---
   Mobile Platform: ---

I enabled gadgets2 role on Vagrant and when I clicked in the "Create" link in
the top of
http://127.0.0.1:8080/wiki/Special:Gadgets
it loaded a popup named "Creating a new gadget". In that popup there is a field
"Script" in the section "Module properties".

For a user using Gadgets 2.0 for the first time, it will not be clear what name
should be typed there:
* MediaWiki:Gadget-foo.js (incorrect - this is the naming convention from 1.0)
* Gadget-foo.js (incorrect - this is the naming convention from 1.0)
* Foo.js (correct, but the page needs to exist first, or it will be ignored!)
* Gadget:Foo.js (incorrect - even if the page exists, it will be ignored)
The only case where the autocomplete feature works is when [[Gadget:Foo.js]]
exists and the user types (a substring of) "Foo.js". This is not very user
friendly.

Maybe there should be a placeholder as the default value, and a link to the
namespace somewhere (to allow the user to find existing JS pages which can be
used).

Same problems for CSS.

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