Topic on Extension talk:Widgets

Is there a way to allow anyone to edit /doc subpages of widgets?

4
Summary by Kghbln

Also tracked with task T268142.

JsfasdF252 (talkcontribs)

All pages in the Widget namespace are protected by default. That means that only admins can edit widgets, but almost nobody can edit the documentation. Even putting documentation into dedicated subpages doesn't work. I would suggest improving the extension so /doc, /sandbox, and /testcases subpages are unprotected by default.

MGChecker (talkcontribs)

I fear here is no easy and secure way to do this. Have you considered moving these pages into another Namespace, like "Widget documentation"? This would prevent problems like this.


If this extension would implement its own content model to realize widgets, it might be feasible. But this would imply a major architecture change.

Kghbln (talkcontribs)

I personally do not use widgets directly on a page. What I do is create an accompanying template of the same name which uses the same parameters as the widget. Another advantage doing so: You can see the transclusions of the template or even add a hidden category to track where the widget is used on a wiki. Moreover you can add all subpages as you like to the template namespace. Thus you issue will be solved.

Kghbln (talkcontribs)

The Html5media template matching the Html5media widget could e.g. look like this:

<includeonly>{{#widget:Html5media
 |url={{#if: {{{url|}}}
  |{{{url|}}}
  |{{filepath: {{{name|}}} }}
 }}
 |width={{{width|425}}}
 |height={{{height|355}}}
}}</includeonly>

This is acutally even extending the widget, i.e. for locally hosted files you only need to add the file name instead of the URL.

Reply to "Is there a way to allow anyone to edit /doc subpages of widgets?"