MediaWiki talk:Edittools#Protected edit request on 13 June 2017
{{interface explanation|{{SUBJECTPAGENAME}} is the message which appears below the edit window. If a browser has JavaScript enabled, then MediaWiki:Edittools.js inserts a compact version (from MediaWiki:Gadget-charinsert-core.js) in its place.}}
{{Central|MediaWiki talk:Edittools.js|MediaWiki talk:Gadget-charinsert.js|MediaWiki talk:Gadget-charinsert-core.js|MediaWiki talk:Gadget-charinsert-styles.css}}
{{archives|auto=yes|search=yes|bot=MiszaBot II|age=120|index=/Archive index}}
{{User:MiszaBot/config
|archiveheader = {{aan}}
|maxarchivesize = 100K
|counter = 11
|minthreadsleft = 4
|algo = old(120d)
|archive = MediaWiki talk:Edittools/Archive %(counter)d
}}
{{User:HBC Archive Indexerbot/OptIn
|target=/Archive index
|mask=/Archive <#>
|leading_zeros=0
|indexhere=yes}}
Customization instructions
{{also|Help:CharInsert#Customization}}
To add custom entries, adapt this code, and place it in your common.js:
// Add custom Character Inserter entries
window.charinsertCustom = {
"Insert": ' Mention: {\{u|+}} {\{ping|+}}',
"Wiki markup": ' Mention: {\{u|+}} {\{ping|+}}'
};
that will append the {{tl|u}} and {{tl|ping}} code to the indicated menus.
- Note1: The "+" in those items, is where your cursor will appear after the text is inserted, or if you already have text highlighted when you click them then that text will be properly surrounded by the templates.
- Note2: You can also remove or change the word "Mention:" - anything that is followed by a colon seems to get turned into a heading - Use_underscores_for_multi_word_headings: like so.
- Note3: use a dot ( . ) for any spacing needed in such things as inline css class or id assignments. For example. -- the space needed between the words span and class in
+ - Note4: to include a single literal \ use four backslashes ( \\\\ ) (will appear as double-\ on menu display.) E.g.
.
dark mode
{{edit interface-protected|MediaWiki:Gadget-charinsert-styles.css|answered=yes}}
Please replace the following block
div#editpage-specialchars {
display: block;
border: 1px solid #c0c0c0;
padding: .5em 1em;
}
- editpage-specialchars a {
background-color: #f9f9f9;
border: 1px solid #ddd;
padding: 1px 4px;
}
with
div#editpage-specialchars {
display: block;
border: 1px solid var( --border-color-base, #a2a9b1 );
padding: .5em 1em;
}
- editpage-specialchars a {
background-color: var( --background-color-interactive-subtle, #f8f9fa );
color: var( --color-progressive, #36c );
border: 1px solid var( --border-color-interactive, #72777d );
padding: 1px 4px;
}
—TheDJ (talk • contribs) 13:11, 14 July 2024 (UTC)
: {{done}} * Pppery * it has begun... 23:23, 15 July 2024 (UTC)
Interface-protected edit request on 24 January 2025
{{Edit fully-protected|MediaWiki:Edittools|answered=yes}}
{{Edit interface-protected|MediaWiki:Gadget-charinsert-core.js|answered=yes}}
Please add the fractions ¼, ½, and ¾ under "Symbols", i.e. change that line to
'Symbols': '~ | ¡¿†‡↔↑↓•¶#∞ ‹+› «+» {\{angle.bracket|+}} ¤₳฿₵¢₡₢$₫₯€₠₣ƒ₴₭₤ℳ₥₦№₧₰£៛₨₪৳₮₩¥ ♠♣♥♦ 𝄫♭♮♯𝄪 ¼½¾ ©®™ ◌ ☉☾☿♀🜨♂♃♄⛢♆',
Rationale: MOS:FRAC states specifically that these three fractions alone may be used as special characters for typographical consistency, e.g. floppy disk. Especially in chess notation it is kind of annoying not to have ½ (needed in every drawn game) easily available. Double sharp (talk) 06:31, 24 January 2025 (UTC)
:{{done}} @Double sharp, does my edit work ? The changes that you proposed cause a significant change above and beyond the scope of your edit request so I decided to go with the more literal interpretation. Sohom (talk) 01:35, 28 January 2025 (UTC)
:::{{ping|Sohom Datta}} They're still not showing up under "Symbols" on my end (under the edit window). :( Double sharp (talk) 02:01, 28 January 2025 (UTC)
:::: MediaWiki:Edittools shows for copy-pasting for JS-disabled browsers, while MediaWiki:Gadget-charinsert-core.js is the script for JS-enabled browsers. The latter still needs to be edited. Anomie⚔ 02:07, 28 January 2025 (UTC)
:::::Yep, figured that out right now :) The js file has been edited and the characters should show up for folks. Sohom (talk) 02:16, 28 January 2025 (UTC)
:{{done}} Sohom (talk) 12:48, 28 January 2025 (UTC)
::{{ping|Sohom Datta}} Thank you, that worked perfectly! :D Double sharp (talk) 07:08, 30 January 2025 (UTC)
Disable [[MediaWiki:Edittools]]?
Even on JS-disabled browsers, MediaWiki:Edittools is not displayed at all because MediaWiki:Common.css has
The existence of the customized message only seems to cause confusion like in the edit request above. If we disable the message by blanking it, the rule in common.css can be removed as well. – SD0001 (talk) 06:43, 13 February 2025 (UTC)
: It's supposed to be unhidden by MediaWiki:Gadget-charinsert-styles.css for people with the gadget enabled, even if they have JS disabled, but it seems that got broken at some point. Special:Diff/917632462 seems suspicious. Anomie⚔ 12:57, 13 February 2025 (UTC)
Numero and trademark symbols
{{edit-protected|answered=yes}}
MOS:NUMERO prohibits use of {{char|№}} and MOS:TMRULES discourages the use of {{char|®}} and {{char|™}} if at all possible. Can these be removed from the Symbols lines of MediaWiki:Edittools and MediaWiki:Gadget-charinsert-core.js? Thanks! -- Beland (talk) 01:21, 23 April 2025 (UTC)
: {{Done}} * Pppery * it has begun... 01:36, 23 April 2025 (UTC)