MediaWiki talk:Edittools
(Redirected from MediaWiki talk:Gadget-charinsert-core.js)
Latest comment: 3 months ago by Pppery in topic dark mode
MediaWiki:Edittools 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. This interface message or skin may also be documented on MediaWiki.org or translatewiki.net. The page forms part of the MediaWiki interface, and can only be edited by administrators and interface editors. To request a change to the page, add {{edit fully-protected}} to this page, followed by a description of your request. Consider announcing discussions you add here at Wikipedia:Village pump (technical) to bring more people to the discussion. |
To help centralise discussions and keep related topics together, the following pages redirect here: |
This page has archives. Sections older than 120 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
Customization instructions
editTo 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 {{u}} and {{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
<span.class="plainlinks">+</span>
- Note4: to include a single literal \ use four backslashes ( \\\\ ) (will appear as double-\ on menu display.) E.g.
<math>\\\\scriptstyle{+}</math>
.
How to insert a full stop?
editI've been using the instructions at #Customization to construct some custom inserts. But my desired inserts include actual full stops (.
), which of course get converted to spaces. Also this seems unescapable using e.g. \.
. Is there an established way of insering these? / Lokal_Profil 10:36, 30 December 2022 (UTC)
- My current work around is to subst a template thqt only contains a full stop, but that feels a bit ridiculous. / Lokal_Profil 09:08, 5 January 2023 (UTC)
- May need to update something in MediaWiki:Gadget-charinsert-core.js; if you sandbox it and make it work and have a suggestion let us know. — xaosflux Talk 10:29, 5 January 2023 (UTC)
IPA section
editFor some reason, it lists some vowels, notably ɛ (which is an open-mid front unrounded vowel) as close-mids, and it shouldn’t be like this БудетЛучше (talk) 18:20, 2 October 2023 (UTC)
- What interface are you talking about? If you mean CharInsert's IPA section, ⟨ɛ⟩ appears correctly with other open-mids. Nardog (talk) 03:48, 3 October 2023 (UTC)
dark mode
editThis edit request to MediaWiki:Gadget-charinsert-styles.css has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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;
}