Gamepedia Help Wiki
Yanis48 (talk | contribs)
m (fr-interwiki)
(23 intermediate revisions by 10 users not shown)
Line 1: Line 1:
  +
{{Extension infobox
==Widgets overview==
 
  +
Widgets are a useful alternative to [[Templates]] that allow for inclusion of normally restricted features of HTML and other markup. They are available for use by any editor on a wiki that has the [[Extension:Widgets|Widgets extension]] installed. This extension is not available by default on a wiki, however, and must be [[Requesting extensions|requested]].
 
  +
| version = 1.4.0
  +
| author = {{*}}Sergey Chernyshev, Yaron Koren and others
  +
| link = [[mw:Extension:Widgets|MediaWiki.org]]
  +
| desc = Allows wiki administrators to add free-form widgets to the wiki by editing pages within the Widget namespace. Community-contributed widgets can be found on MediaWikiWidgets.org
  +
  +
}}
 
'''Widgets''' are an alternative to [[templates]] that allow for inclusion of normally restricted features of HTML and other markup. They are available for use by any editor on a wiki that has the Widgets extension installed, but require special permissions to be edited. This extension is not available by default on a wiki, however, and must be [[requesting extensions|requested]].
   
 
==User permissions==
 
==User permissions==
 
Once installed, this extension introduces a new user group right <code>editwidgets</code>, which allows users to create and edit Widgets (pages in the "Widget:" namespace), and a new user group <code>Widget editors</code>. This user group right is typically assigned to Wiki Guardians and higher level administrative users, and users may be placed into the Widget editors group to allow other trusted users that are not administrators to have this right.
 
Once installed, this extension introduces a new user group right <code>editwidgets</code>, which allows users to create and edit Widgets (pages in the "Widget:" namespace), and a new user group <code>Widget editors</code>. This user group right is typically assigned to Wiki Guardians and higher level administrative users, and users may be placed into the Widget editors group to allow other trusted users that are not administrators to have this right.
   
User right / group assignment requests should be passed on to the assigned wiki manager or other Gamepedia staff.
+
User right / group assignment requests should be passed on to the assigned [[Gamepedia Help Wiki:Wiki Managers|wiki manager]] or other [[Gamepedia staff]].
  +
  +
=== Bot passwords ===
  +
It is impossible to grant the permission to edit widgets with the default permissions grantable to [[Logging in to third-party tools|bot passwords]], even if you are a wiki administrator. The workaround for this is to create a custom user rights bundle with the <code>editwidgets</code> permission, and then grant this custom user rights bundle to the bot password. Ask a wiki manager for help with this if you need it (for example if you're trying to edit from [[SublimeText 3 Mediawiker|Mediawiker]]). Example usages of this workaround are on Leaguepedia and the wiki sandbox.
   
 
==Examples==
 
==Examples==
 
The wiki community at large, including some editors from the Gamepedia community, has produced and published a significant variety of useful Widgets for public use.
 
The wiki community at large, including some editors from the Gamepedia community, has produced and published a significant variety of useful Widgets for public use.
   
  +
===Facebook===
One example of a widget written by <span title="DSquirrelGM">a member of</span> the Gamepedia community is [[mwwidget:SVG|SVG]], which allows an editor to embed a directly editable version of a Scalable Vector Graphics image into an article.
 
  +
* [[Facebook Page Plugin]]
   
  +
: {{#widget:Facebook Page Plugin|profile=https://www.facebook.com/CurseGamepedia}}
===Editor resources===
 
''Note: The following websites are not controlled by or directly affiliated with Gamepedia or Curse, and may require separate registration to publish content, view documentation, and/or obtain Widget code.''
 
   
  +
* [[Facebook Like Button]]
MediaWiki has some information on [[mw:Extension:Widgets|how to use Widgets]] that will be useful to any editor planning to use them in articles.
 
   
  +
: {{#widget:Facebook Like Button|profile=https://www.facebook.com/CurseGamepedia}}
===Widgets catalog===
 
  +
  +
===Twitter===
  +
* [[Twitter Follow Button]]
  +
  +
: {{#widget:Twitter Follow Button|user=CurseGamepedia}}
  +
  +
===Discord===
  +
* [[Widget:Discord|Discord]]
  +
  +
: {{#widget:Discord|id=563020189604773888}}
  +
  +
===StrawPoll===
  +
* [[Widget:StrawPoll|StrawPoll]]
  +
  +
: {{#widget:StrawPoll|id=3843136}}
  +
  +
===Other===
  +
*[[Widget:IRC|IRC]]
  +
 
==Widgets catalog==
 
For a list of [[mwwidget:Widgets Catalog|publicly available Widgets]], and for editors wanting to [[mwwidget:Adding your widget|share Widgets]] they have built with a larger audience, the [[mwwidget:Widgets Catalog|MediaWiki Widgets]] Catalog is a useful resource.
 
For a list of [[mwwidget:Widgets Catalog|publicly available Widgets]], and for editors wanting to [[mwwidget:Adding your widget|share Widgets]] they have built with a larger audience, the [[mwwidget:Widgets Catalog|MediaWiki Widgets]] Catalog is a useful resource.
  +
  +
==External links==
  +
* [[mw:Extension:Widgets|Widgets documentation]] on MediaWiki
   
 
[[Category:Extensions]]
 
[[Category:Extensions]]
 
[[Category:Advanced help]]
 
[[Category:Advanced help]]
   
[[fr:Widgets]]
+
[[fr:Extension:Widgets]]
  +
[[pt:Widgets]]
  +
  +
<!-- Extension prefix in other languages:
  +
  +
[[de:Erweiterung:{{subst:BASEPAGENAME}}]]
  +
[[es:Extensión:{{subst:BASEPAGENAME}}]]
  +
[[fr:Extension:{{subst:BASEPAGENAME}}]]
  +
[[it:Estensione:{{subst:BASEPAGENAME}}]]
  +
[[nl:Uitbreiding:{{subst:BASEPAGENAME}}]]
  +
[[pl:Rozszerzenie:{{subst:BASEPAGENAME}}]]
  +
[[pt:Extensão:{{subst:BASEPAGENAME}}]]
  +
[[ru:Расширение:{{subst:BASEPAGENAME}}]]
  +
[[zh:扩展:{{subst:BASEPAGENAME}}]]
  +
-->

Revision as of 22:23, 4 March 2020

Widgets are an alternative to templates that allow for inclusion of normally restricted features of HTML and other markup. They are available for use by any editor on a wiki that has the Widgets extension installed, but require special permissions to be edited. This extension is not available by default on a wiki, however, and must be requested.

User permissions

Once installed, this extension introduces a new user group right editwidgets, which allows users to create and edit Widgets (pages in the "Widget:" namespace), and a new user group Widget editors. This user group right is typically assigned to Wiki Guardians and higher level administrative users, and users may be placed into the Widget editors group to allow other trusted users that are not administrators to have this right.

User right / group assignment requests should be passed on to the assigned wiki manager or other Gamepedia staff.

Bot passwords

It is impossible to grant the permission to edit widgets with the default permissions grantable to bot passwords, even if you are a wiki administrator. The workaround for this is to create a custom user rights bundle with the editwidgets permission, and then grant this custom user rights bundle to the bot password. Ask a wiki manager for help with this if you need it (for example if you're trying to edit from Mediawiker). Example usages of this workaround are on Leaguepedia and the wiki sandbox.

Examples

The wiki community at large, including some editors from the Gamepedia community, has produced and published a significant variety of useful Widgets for public use.

Facebook

Twitter

  • Twitter Follow Button

Discord

StrawPoll

  • StrawPoll
Error in widget StrawPoll: Unable to load template 'wiki:StrawPoll'

Other

Widgets catalog

For a list of publicly available Widgets, and for editors wanting to share Widgets they have built with a larger audience, the MediaWiki Widgets Catalog is a useful resource.

External links