Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
MediaWiki talk:Gadgets-definition
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Namespaces
Message
Discussion
More
More
Page actions
Read
Edit source
New topic
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Interface explanation|This page contains the list of javascript "Gadgets" that are shown to users in their Preferences. Each item on the list needs a page of the same name in the MediaWiki namespace containing the gadget's name and description, see [[MediaWiki:Gadget-ReferenceTooltips]] for an example. The ReplaceText visual editor gadget is not shown here and is loaded automatically for all users. See [[MEpedia_talk:Gadgets]] for a description of all gadgets installed.}} == Add switcher == Can you please add the following code to the end of the [[MediaWiki:Gadgets-definition]], it's needed to get the [[Template:Switcher]] radio buttons working. As with the previous code, it's copied from Wikipedia so should not be an issue. [[User:Kmdenmark]] [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 21:45, July 2, 2019 (EDT) <pre> * SidebarTranslate[ResourceLoader|type=general]|SidebarTranslate.js|SidebarTranslate.css </pre > :I'm a bit confused. I thought the gadget you wanted to install was "Gadget-switcher.js", not "SidebarTranslate.js"? :I'm also curious. Does Wikipedia review gadgets in any way? I thought that Wikipedia did not endorse the gadgets that individual users come up with... :[[User:Pyrrhus|Pyrrhus]] ([[User talk:Pyrrhus|talk]]) 23:19, July 2, 2019 (EDT) ::[[User:Notjusttired]] Done! [[User:Kmdenmark|Kmdenmark]] ([[User talk:Kmdenmark|talk]]) 17:36, July 3, 2019 (EDT) :::Sorry [[User:Kmdenmark]] - I copied in the wrong code. Can you delete the sidebar code and use this instead <pre> * switcher[ResourceLoader|default|targets=desktop,mobile]|switcher.js </pre> Thanks [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 15:49, July 4, 2019 (EDT) :::[[User:Pyrrhus]] Wikipedia doesn't endorse most of the code there except the MediaWiki software, eg not the Module, Templates or other things. But if it's been added and been in place so long it's unlikely to be problematic. It's basic Javascript and easy enough to read. [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 15:49, July 4, 2019 (EDT) ::::[[User:Notjusttired]] Done! [[User:Kmdenmark|Kmdenmark]] ([[User talk:Kmdenmark|talk]]) 16:48, July 8, 2019 (EDT) :::::Thank you [[User:Kmdenmark]], it's working - [[Template:Switcher/testcases]] [[User:Notjusttired|notjusttired]] ([[User talk:Notjusttired|talk]]) 17:47, July 8, 2019 (EDT) ==Add Replace / Replace Text gadget == Please add the code below (as usual, without the "pre" tags). Purpose: Creating a "Replace" / Replace "All" gadget in the visual editor for replacing text on the page being edited, which would be especially useful for mobile users and for fixing repeated typos. This is work ''only'' for the current page being edited. [[User:Kmdenmark]] [https://en.wikipedia.org/wiki/User:%D7%A2%D7%A8%D7%9F/veReplace documentation] [https://en.wikipedia.org/wiki/User:%D7%A2%D7%A8%D7%9F/veReplace.js source] with typos fixed. ===Code to add to the end of the existing Gadgets-definition=== <pre > *veReplaceLoader[ResourceLoader|dependencies=ext.visualEditor.viewPageTarget.init]|veReplaceLoader.js *veReplace[ResourceLoader|rights=hidden|hidden|dependencies=ext.visualEditor.core]|veReplace.js </pre> ===Pages used by this gadget === *[[MediaWiki:Gadget-veReplaceLoader]] *[[MediaWiki:Gadget-veReplaceLoader.js]] *[[MediaWiki:Gadget-veReplace.js]]
Summary:
Please make sure your edits are consistent with
MEpedia's guidelines
.
By saving changes, you agree to the
Terms of use
, and you irrevocably agree to release your contribution under the
CC BY-SA 3.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Interface explanation
(
edit
)
Template:Tmbox
(
edit
)
Template:Tmbox/core
(
edit
)
Navigation
Navigation
Skip to content
Main page
Browse
Become an editor
Random page
Popular pages
Abbreviations
Glossary
About MEpedia
Links for editors
Contents
Guidelines
Recent changes
Pages in need
Search
Help
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs