Jump to content

MediaWiki talk:Edittools

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Escalatr (talk | contribs) at 07:27, 23 November 2020 (Spaces not possible after cursor operator: underscore as workaround for spaces confirmed). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


Customization instructions

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 {{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>.

ſ

I missed long s from the Latin characters list. It can be handy when quoting old texts. Please consider including it. Thanks to the customization instructions, I was able to do it for myself. --Error (talk) 11:32, 5 June 2020 (UTC)[reply]

missing IPA tone letters

I recently discovered that the reversed Chao tone letters that we use for tone sandhi are officially part of the IPA, they're just not on the IPA summary chart. This according to the Report of the Kiel Convention1 and JIPA commentaries on the results of Kiel, incl. by Ian Maddieson.2 So, could you please change the sequence

˥˦˧˨˩ꜛꜜ :

in the IPA section to

˥˦˧˨˩ꜛꜜ꜒꜓꜔꜕꜖ :

(I think it's advisable to have the two series separated by something like the step marks, as here, since they're used for different things.)

Thanks — kwami (talk) 21:50, 14 August 2020 (UTC)[reply]

1 P.J. Roach (December 1989) Report on the 1989 Kiel Convention, JIPA 19.2, p. 75: "Tone letters" (following Chao 1933): these marks are to be placed before or after the segmental material. The report of the suprasegmentals group also suggested that the Chao tone marks may be optionally attached to a vertical reference line, in which case narrow phonetic mark should precede the line and broad/phonological marks follow the reference line.

2 Ian Maddieson (December 1990) The transcription of tone in the IPA, JIPA 20.2, p. 31, notes that these are called "reversed tone letters" and reports that a convention within the Chao tradition was also endorsed, namely, that if the tone bar was placed to the right of the reference stave a more 'phonetic' transcription was intended than when the normal tone letter was used with the bar to the left of the reference stave.

@Kwamikagami: Whatever those sequences are, they are not rendering on multiple browsers - just appear as unknown unicode squares - until there is wider browser support for these symbols they won't be very useful. — xaosflux Talk 17:31, 16 August 2020 (UTC)[reply]

The browser has nothing to do with it. It's a font issue. They're widely used for Hokkien on Wiktionary. Like other IPA, they should be used in IPA templates. Are they still illegible for you like this: ˥˦˧˨˩ꜛꜜ꜒꜓꜔꜕꜖? — kwami (talk) 21:28, 16 August 2020 (UTC)[reply]

@Kwamikagami: just empty boxes on multiple computers and browsers - unlike every other character in the edittools right now. — xaosflux Talk 21:33, 16 August 2020 (UTC)[reply]

Again, the computers and browsers have nothing to do with it. You evidently don't have a full IPA font like Charis or Gentium Plus installed. I'm checking. Liberation and TNR don't provide full IPA support, nor does Gentium Basic. — kwami (talk) 21:49, 16 August 2020 (UTC)[reply]

Spaces not possible after cursor operator

I am trying to realize an entry for the templates {{collapse top}} and {{collapse bottom}}, which are used like this:

{{collapse top}}
Sample
{{collapse bottom}}

Added to my User:Escalatr/common.js

// Add custom CharInsert entries
window.charinsertCustom = {
 "Custom": ' {\{collapse.top}}+{\{collapse.bottom}}',
};
  • I would like to put the cursor operator + between both {{collapse}}-tags, however it seems the cursor operator always disables any following space operator .
    • I get the entry {{collapse top}}{{collapse.bottom}} (. instead of a space between collapse and bottom)
    • It works fine if I remove the + operator

Am I missing something? Is there any workaround? (I know, it is a minor issue, but still maybe)--Escalatr (talk) 15:49, 20 November 2020 (UTC)[reply]

I can replicate the bug on my side. The dots are converted to spaces only before the plus sign. Browser: Firefox 82.0.3 (64-bit) on Ubuntu. —⁠andrybak (talk) 16:23, 20 November 2020 (UTC)[reply]
Try collapse_bottom instead of collapse.bottom. Nardog (talk) 10:54, 21 November 2020 (UTC)[reply]
Great, underscores work! Thanks --Escalatr (talk) 07:27, 23 November 2020 (UTC)[reply]