mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-24 15:33:42 +00:00
5d3a547c8b
?withgadget query parameters allows for ad-hoc loading of gadgets (after passing all other basic checks). This was recently added in I5b30d4e. In T29766#7611796 Gergo raised concerns about how this can be potentially abused. This patch aims to restrict the feature by giving gadgets latitude to either use it or not depending on the nature of the gadget. The patch does so by adding `supportsUrlLoad` option that gadgets (maybe those deemed safe) can use it to opt-in to the parameter. By default gadgets don't support it, so it can be enabled for each on a case-by-case basis. Bug: T29766 Change-Id: Ie64174085e650579d76cc862774a4fe1b3d08396
58 lines
4.7 KiB
JSON
58 lines
4.7 KiB
JSON
{
|
|
"@metadata": {
|
|
"authors": [
|
|
"EugeneZelenko",
|
|
"Jon Harald Søby",
|
|
"Kghbln",
|
|
"Liuxinyu970226",
|
|
"Lloffiwr",
|
|
"Mormegil",
|
|
"Nike",
|
|
"Purodha",
|
|
"Robby",
|
|
"SPQRobin",
|
|
"Shirayuki",
|
|
"Siebrand",
|
|
"The Evil IP address",
|
|
"Umherirrender"
|
|
]
|
|
},
|
|
"gadgets-desc": "{{desc|name=Gadgets|url=https://www.mediawiki.org/wiki/Extension:Gadgets}}",
|
|
"prefs-gadgets": "In Gadgets extension. The name of a tab in [[Special:Preferences#mw-prefsection-gadgets|Special:Preferences]] where user set their preferences for the extension.\n\n{{Identical|Gadgets}}",
|
|
"gadgets-prefstext": "In Gadgets extension. This is the explanation text displayed under the Gadgets tab in [[Special:Preferences#mw-prefsection-gadgets|Special:Preferences]].",
|
|
"gadgets": "{{doc-special|Gadgets}}\n{{Identical|Gadgets}}",
|
|
"gadgetusage": "{{doc-special|Gadget usage statistics}}",
|
|
"gadgetusage-gadget": "Table column header on [[Special:GadgetUsage]]\n{{Identical|Gadget}}",
|
|
"gadgetusage-usercount": "Table column header on [[Special:GadgetUsage]]",
|
|
"gadgetusage-noresults": "Message shown to user when no gadgets found installed on the wiki. Used on [[Special:GadgetUsage]]",
|
|
"gadgetusage-intro": "Intro text on [[Special:GadgetUsage]] Parameter:\n* $1 - the number of days to consider for defining a user as active",
|
|
"gadgetusage-intro-noactive": "Intro text on [[Special:GadgetUsage]]",
|
|
"gadgetusage-activeusers": "Table column header for active users using a gadget",
|
|
"gadgetusage-default": "Message to indicate the gadget is default and actual stats are not available\n{{Identical|Default}}",
|
|
"gadgets-definition": "{{notranslate}}",
|
|
"gadgets-title": "{{Identical|Gadgets}}",
|
|
"gadgets-pagetext": "Used as intro text in [[Special:Gadgets]].",
|
|
"gadgets-editdescription": "Link for editing the gadget description shown in Special:Preferences. Used on [[Special:Gadgets]].",
|
|
"gadgets-viewdescription": "Link for viewing the gadget description shown in Special:Preferences. Used on [[Special:Gadgets]] instead of {{msg-mw|Gadgets-editname}} when the user does not have permissions to edit.",
|
|
"gadgets-uses": "This is used as a verb in third-person singular. It appears in front of a script name. Example: \"''Uses: Gadget-UTCLiveClock.js''\"\n\nSee [[meta:Special:Gadgets|Gadgets page in meta.wikimedia.org]]\n{{Identical|Use}}",
|
|
"gadgets-required-rights": "Parameters:\n* $1 - a list in wikitext.\n* $2 - the number of items in list $1 for PLURAL use.",
|
|
"gadgets-required-skins": "Parameters:\n* $1 - a comma separated list.\n* $2 - the number of items in list $1 for PLURAL use.",
|
|
"gadgets-required-actions": "Parameters:\n* $1 - a comma separated list.\n* $2 - the number of items in list $1 for PLURAL use.",
|
|
"gadgets-default": "Used in [[Special:Gadgets]], if the gadget is enabled for everyone by the Wiki's default settings.",
|
|
"gadgets-legacy": "Used on [[Special:Gadgets]], if the gadget contains legacy scripts and doesn't use ResourceLoader yet.",
|
|
"gadgets-packaged": "Used on [[Special:Gadgets]], if the gadget is [https://www.mediawiki.org/wiki/ResourceLoader/Package_files packaged]. Parameters:\n* $1 - script file which is the entry point",
|
|
"gadgets-export": "Used on [[Special:Gadgets]]. This is a verb, not noun.\n{{Identical|Export}}",
|
|
"gadgets-export-title": "Used as page title. Example: [[Special:Gadgets/export/editbuttons]]",
|
|
"gadgets-not-found": "Used as error message. Parameters:\n* $1 - gadget name",
|
|
"gadgets-export-text": "Used as page description in [[Special:Gadgets]].\n\nRefers to {{msg-mw|Gadgets-export-download}}.\n\nSee example: [[Special:Gadgets/export/editbuttons]]\n\nFollowed by the \"Export\" form.\n\nParameters:\n* $1 - gadget name\n* $2 - gadget definition (code)",
|
|
"gadgets-export-download": "Use the verb for this message. Submit button.\n{{Identical|Download}}",
|
|
"gadgets-validate-notset": "Error message shown if a required property is not set. $1 is the name of the property, e.g. settings.rights .",
|
|
"gadgets-validate-wrongtype": "Error message shown if a property is set to the wrong type. * $1 is the name of the property, e.g. settings.rights or module.messages[3].\n* $2 is the type that this property is expected to have\n* $3 is the type it actually had",
|
|
"right-gadgets-edit": "{{doc-right|gadgets-edit}}",
|
|
"action-gadgets-edit": "{{doc-action|gadgets-edit}}",
|
|
"right-gadgets-definition-edit": "{{doc-right|gadgets-definition-edit}}",
|
|
"action-gadgets-definition-edit": "{{doc-action|gadgets-definition-edit}}",
|
|
"gadgets-wrong-contentmodel": "Error message shown while trying to change the content model of a page in gadget definition namespace to other than GadgetDefinition.",
|
|
"gadgets-supports-urlload": "Used in [[Special:Gadgets]], if the gadget supports ?withgadget query parameter."
|
|
}
|