Wiktionary:Grease pit/2017/November

Definition from Wiktionary, the free dictionary
Jump to: navigation, search
discussion rooms: Tea roomEtym. scr.Info deskBeer parlourGrease pit ← October 2017 · November 2017 · December 2017 → · (current)

Why spell out the name of the month in templates?[edit]

I note that {{rft}} has a required parameter "m" with compels the name of the month to be spelled out. Why not permit the number of the month and a three-letter abbreviation? Too hard?

I further note that this template (and other request templates?) seem to be used less since 2016 when the number of required parameters increased. That means that someone looking at the entry would not be aware of the discussion. DCDuring (talk) 12:24, 1 November 2017 (UTC)

Using numbers is potentially better for localisation too. (Heh, I doubt this template will have to support the Hijri calendar or what not, but who knows?) Equinox 19:18, 1 November 2017 (UTC)

template:back-formation[edit]

I'd like to get rid of the extremely annoying full stop that is currently added automatically by {{back-form}}, and of the {{{nodot}}} parameter which it entails. There are currently fewer than a thousand transclusions; would it be possible to clean them up afterwards? Or could someone add me to the AWB list and I'll try and take care of it myself? --Barytonesis (talk) 14:19, 1 November 2017 (UTC)

nodot=yes has always seemed silly to me. I would rather type a single . where I need it than have to explicitly say that I don't want one by typing an entire parameter. Equinox 14:35, 1 November 2017 (UTC)
@Equinox: exactly. --Barytonesis (talk) 15:47, 1 November 2017 (UTC)
+1 —suzukaze (tc) 16:04, 3 November 2017 (UTC)
Go for it. I can help with cleanup. – Jberkel (talk) 19:23, 6 November 2017 (UTC)
Well, if we're gonna do this manually, we might as well remove the default text altogether (as we're currently doing for {{bor}}, per Wiktionary:Votes/2017-06/borrowing, borrowed). What do you think? --Barytonesis (talk) 20:47, 6 November 2017 (UTC)
I think they're very different cases. The default text should be kept on {{back-formation}}. But the period should be removed from {{deftempboiler}} as well and all templates made from it. —Aɴɢʀ (talk) 21:08, 6 November 2017 (UTC)
[1]... Well, I'd better get to work! --Barytonesis (talk) 09:33, 7 November 2017 (UTC)
Form-of templates wrap their contents in a span with a special class. Are we ok with the dot itself being outside the span? —Rua (mew) 17:03, 7 November 2017 (UTC)

Save Changes versus Publish Changes[edit]

When editing a page, the button to save your work says "Publish changes". The text immediately above this says, "By clicking the “Save Page” button...". These should be consistent by changing the latter Special Message to match the former. -Stelio (talk) 15:24, 1 November 2017 (UTC)

It was changed to "Publish changes" fairly recently. Obviously someone forgot to change the wording above it. DonnanZ (talk) 16:23, 1 November 2017 (UTC)
Super; thank you very much! :-) -Stelio (talk) 16:52, 1 November 2017 (UTC)

Interestingly, this hasn't worked (or at least, not for me). I know that "wikimedia-copyrightwarning" is the correct Special Message by applying the "uselang=qqx" trick to display the underlying field names for messages. Forcing hard refreshes in my browser doesn't change what I see. I tried purging the message page as well, but to no avail. -Stelio (talk) 10:32, 6 November 2017 (UTC)

Idea for an abuse filter[edit]

If there is a sequence of the form {{...}} on a single line, and a user's edit inserts a line break somewhere in the central ... portion (which might be anything), that's almost always vandalism. Heuristic: this kind of vandalism tends to be rather "small" (i.e. page size doesn't change much, maybe a few chars of gibberish added). This could be expressed with a regex, if anyone can be bothered. See e.g. [2]. Equinox 20:16, 1 November 2017 (UTC)

Yes, these can go undetected. I think I have found one or two cases before by checking my watchlist. DonnanZ (talk) 00:46, 2 November 2017 (UTC)
Is this really usually vandalism? I insert line breaks into template calls all the time. Sometimes {{der3}} will have a great long list of derived terms all written together as a block, and I'll add line breaks to make the individual entries easier to read. For the edit linked to above, I'd say what's noticeable is the deletion of the closing }}, not the insertion of a line break. —Aɴɢʀ (talk) 12:50, 2 November 2017 (UTC)

Ideas for a more advanced WT:ACCEL[edit]

@Dixtosa At the moment, the WT:ACCEL script makes use of the preload function to specify text that should be placed in the edit window as soon as the edit page is loaded. This allows you to quickly check and save the page without having to put in all the contents. Obviously it's a very useful tool, but it has drawbacks. A major drawback is that it only works if the page doesn't exist yet. If the page already exists (the link is blue/yellow) then nothing happens, and you have to put the contents in manually. That's not really ideal. A bot can do better, since it can parse the wikitext and figure out where to insert a new language section (for example diff).

This restriction is somewhat strange, though. A bot is just parsing code with a programming language, and WT:ACCEL is implemented in JavaScript, a programming language that is also capable of parsing code. There's nothing in principle that would disallow JavaScript from modifying wikicode, if it received the old wikicode (WT:EDIT does this in order to edit the translations). Of course, when you view an entry with blue/yellow links, the wikicode of all those other pages is not on the current page. There are ways to retrieve the wikicode of a page but this takes time (it's essentially another page request), and doing this for every single blue/yellow link is obviously not going to be feasible. On the other hand, the wiki software helpfully loads the page contents when you click the edit button, so if a script were to be made to automatically modify the wikicode in the edit window, that should work just fine. Essentially, this is what the preload facility that we currently use already does, except we'd be rolling our own custom version that does more.

Currently, it is the page containing the red/green link that generates the new contents, and this new contents is then appended as a new parameter onto the existing link URL. When you click the link to create the new page, the preload facility picks up on this URL parameter, and puts the text into the edit window. In practice, this means that every time a page is loaded, the ACCEL script goes through all the links, generates the new entry code, and modifies the URL, each time for every link. If our new version of ACCEL is going to run on the edit page instead, it makes a lot more sense to generate the page contents at that point, and not on the page containing the link. The linking page will load faster then, since it's not going to be busy generating content and modifying links each time someone views the page. The information will still need to be passed on via the URL in some way, but that could be done without any JS at all in theory. —Rua (mew) 15:59, 3 November 2017 (UTC)

I've created a partial version of the new script at User:Rua/Gadget-AcceleratedFormCreation.js. It differs from the original script in the following points:

At the moment, the script doesn't actually produce any new results. It still doesn't work for links to already-existing pages. When you click on a blue link, it takes you to that page, it doesn't take you to an edit window. It would probably be undesirable to turn such view-existing-page links into edit-existing-page links. Perhaps the script can be made to interface with the OrangeLinks gadget, so that it takes you to an edit page if the link is orange, but not when it's blue. I'm not sure how that would be done, though.

Because the new entry content is created only on editing the page, and only for that one page, we can do more time-consuming or resource-intensive things than we could otherwise. An interesting idea would be to convert the creation rules into a module, and have the script invoke the module. The module would then return the new text of the page, which the script would then place in the edit window, ready to be saved. This would allow much easier editing of creation rules and the addition of new ones, because people on Wiktionary are generally better with Lua than they are with JS, and you don't need to be an admin to edit modules. —Rua (mew) 19:55, 3 November 2017 (UTC)

I am glad you are looking into improving this great tool, and I think you have some good ideas for enhancements. One obvious problem for modifying existing pages is that, in order for the link to know if the target needs to be modified, it has to actually load the entire page. For a page with dozens of such links you could be loading dozens of pages with each page load, which can slow down the user as well as create quite a lot of overhead for the WMF servers. That doesn't mean that it shouldn't be done, it just complicates the issue. Have you thought about any way to avoid or minimize the amount of data loaded? The second step of actually inserting the text isn't as bad, since the API provides section editing which will limit the size of the creation URL considerably even on a large page. - TheDaveRoss 20:01, 3 November 2017 (UTC)
@TheDaveRoss I mentioned the OrangeLinks gadget, which turns links orange (more like yellow to me) when the language section in the fragment # of the URL is not present on the page. I don't know how it's implemented or if it's very inefficient, but at the very least if we already have that gadget, we have the information we need. An possible alternative approach is to not modify the links themselves, but to add an extra little link to the right of them, which takes you to the edit page but with a new entry added to the existing wikicode already. People would probably find that ugly, though. —Rua (mew) 20:14, 3 November 2017 (UTC)
Yet another possibility might be to modify links to existing pages so that they include the acceleration information, but to take the user to view the page as they'd expect to be. The script will then run on that page, see if there is already a language section for that language, and if not, it will display a large friendly message suggesting that the user click a certain link to add the new entry. It adds an extra step to the process - you have to first view the page before you get the edit link - but at least it's a lot easier than having to manually type all the code. —Rua (mew) 20:18, 3 November 2017 (UTC)

The new script is now at least capable of inserting new language sections in existing pages, if you give it acceleration parameters on an existing page. However, because of the above issue, no such links are actually generated yet. —Rua (mew) 22:31, 3 November 2017 (UTC)

I have it working! Now, the script will pick up on accelerated orange links, and modify them into edit links. Then, on the edit page, the new section is correctly inserted among the existing sections. —Rua (mew) 00:22, 4 November 2017 (UTC)

@Rua: I made a form-sorting function in Lua here. It's quite fast, and it's pretty simple to generate the maps used for the sorting. What do you think? — Eru·tuon 22:15, 12 November 2017 (UTC)

I can't really figure out what it does. Sorting cases is not usually needed. What matters is sorting singular before plural. But really, the system should be as agnostic as possible, so it should be limited to something like "this column goes before that column". The makers of the table would include HTML code in the right places to ensure this. The difficulty I'm having is how to actually make such code work. It's really a JavaScript/DOM/JQuery problem. —Rua (mew) 22:25, 12 November 2017 (UTC)
@Rua: So, if you have a case–number pair, each case has a number that indicates its rank in relation to other cases (nominative 1, genitive 2, ...). Same for numbers (singular 1, plural 2). Each morphological category has a number that indicates its rank in relation to other morphological categories (number 1, case 2). These numbers are used to create a base 36 number (string). (The base could be lower at this point, since there aren't anywhere near 36 cases, numbers, or morphological categories in the examples I chose.) The ranking of the morphological categories determines the order of the digits. For nominative singular, the number is 11, for genitive singular 12; nominative plural 21, genitive plural 22. The digit for number comes before the digit for case, so that singular always appears before plural. These numbers can then be sorted using the less-than operator. These ranks are generated from arrays listing the cases and numbers, and the morphological categories, in the order in which they should appear.
I dunno, using the HTML seems so complicated to me. I like a sorting method where the sorting is very explicit so you can tell what the result should be. — Eru·tuon 22:50, 12 November 2017 (UTC)
But what happens when a form isn't in your list, or when it's not easily sortable relative to other forms, such as a comparative form or a participle? —Rua (mew) 22:58, 12 November 2017 (UTC)
Either create ad-hoc categories for them so that they can be assigned rankings, or just have the sorting function leave them in their original positions. I guess I need to find some new examples to adapt the function to. — Eru·tuon 23:32, 12 November 2017 (UTC)
Is it really necessary to make things this complicated, though? What I'd much prefer is for the relative ranking of forms to be indicated as part of the table wikicode. That way, the script can stay agnostic about what the forms actually are, and it doesn't need editing whenever someone comes up with a new kind of form. —Rua (mew) 23:42, 12 November 2017 (UTC)
What do you mean? A new data- attribute that specifies the form's relative position? Or something else? — Eru·tuon 00:00, 13 November 2017 (UTC)
Actually a column number is what I had in mind. —Rua (mew) 00:04, 13 November 2017 (UTC)
I didn't know that was a thing. Oh, do you mean grabbing the nth cell in each row? Or is there some other way? — Eru·tuon 01:51, 13 November 2017 (UTC)
Right now, the script iterates through all accelerated links in a page, in the order that they are present in the HTML, and stores them in that order. My idea was that, if the script encounters a link for which a column number is set, then rather than directly storing the link, it stores it in an array (successively numbered table in Lua terms), indexed by the specified column number. So all entries with column 1 get put together, and all entries with column 2, and so on. Of course the entries in this array must eventually be stored like the rest, so there must be something that says at some point "ok, we're done with these columns, let's store them". One such trigger is obvious: when a link is encountered that's not in the same table. This would occur when the iteration moves on to another inflection table; of course it should be considered separately from the first. A second trigger is when the iteration encounters a link in the same table that lacks a column number. Both of these triggers "reset" the columnisation and cause everything that's currently in the column arrays to be stored. The storing itself is of course done in the order of columns: column 1 first, then column 2, etc. One final trigger is when the iteration reaches the end and there's no more links. —Rua (mew) 12:05, 13 November 2017 (UTC)
I've added column numbers to Module:se-adjectives (down the bottom), to illustrate. Reading from top to bottom, row by row, you first encounter the attributive form. It has no column number, so it's stored in sequence as usual. Then you encounter the nominative singular, which is stored in the array at index 1. Then the nominative plural, stored at index 2. This alternating pattern continues until the essive form. The essive has no column number, which triggers the emptying out of all the links currently in the column array. All entries in column 1 are stored, then all entries in column 2. Then the iteration continues in HTML order, so the essive is stored. The final order will be: attr, nom_s, acc_s, gen_s, ill_s, loc_s, com_s, nom_p, acc_p, gen_p, ill_p, loc_p, com_p, ess. —Rua (mew) 12:20, 13 November 2017 (UTC)
I've added them to Module:se-verbs as well, to illustrate a more elaborate example. Here, there's 6 columns. The first section contains columns 1 to 3, then the second section contains 4 to 6. The second section can't be labelled 1 to 3 because there is nothing in between the two sections that would trigger reset/storage. So additional column numbers are used. —Rua (mew) 12:48, 13 November 2017 (UTC)
I've updated the script with the method I proposed above, and it works. In Northern Sami adjective inflection tables, the comitative singular comes before the locative plural in the generated URL, and therefore also in the generated entry. —Rua (mew) 16:41, 13 November 2017 (UTC)
@Rua: That does sound like it will work. I was curious how it would work when the ordered list of items is oriented differently (say in Latin verb tables, horizontally, vs. Latin noun tables, vertically), but it's clear to me how those cases will work out now. The noun table will have the column number attributes and the verb table will not (at least, for the finite forms). I think "column" could end up being a misnomer, if the items with a certain column number aren't actually in columns, but I don't have any examples. I still like the idea of clearly writing out the order rather than having it hidden in the HTML, but if it works, it works. — Eru·tuon 07:36, 17 November 2017 (UTC)

Found a fatal bug with the automatic Arabic transcriptions.[edit]

  1. If, in Arabic, the preposition لِ (li) is used in front of anything determined by ال (al-), the ا/ٱ () of the article disappears by rule of Arabic orthography.
  2. If, in Arabic, the determiner ال (al-) meets an alveolar, an assimilation occurs whereby the ل disappears in pronunciation but not in writing and the meeting alveolar is geminated, which is indicated in orthography by a shadda ـّ (--) over the character representing the geminated consonant.
  3. Now if لِ (li) is followed by ال (al-) and this by an alveolar, the templates on Wiktionary do not return a transcription.
    1. For an example, see the Qurʾān 3:14 quotation in قَنْطَرَ (qanṭara). The word لِلنَّاسِ is affected. In the page I have written the second lām ل with a sukun ـْ (-), but this is an orthographic error, as in the case of the determiner meeting an alveolar no sukun may be placed, and also the resulting transcription is wrong *“lilnnāsi” instead of “linnāsi”. If you go there and remove the sukun by a hit on backspace, you will see in the preview that the transcription is gone.
    2. I repeat the example here: لِلنَّاسِ versus لِلْنَّاسِ (lilnnāsi)
  4. It seems to me that a fix is possible, because pursuant to the High Arabic phonotactics there is no other case that in vocalized text there is an orthographic word beginning with لِ (li), diacritic-free ل (l) and a geminated alveolar (or any other consonant).
  5. Note that the displayings here of ـّ (--) and ـْ (-) are glitchy too. Palaestrator verborum (loquier) 23:07, 3 November 2017 (UTC)

@Palaestrator verborum: By "vocalized text", do you mean the Qur'an? what do you mean by High Arabic? --Backinstadiums (talk) 23:45, 3 November 2017 (UTC)

@Backinstadiums: I’d think that you have figured out this day already that there is a literary Arabic language which we conceptualize as the proper Arabic which has minute rules about allowed syllables and an unmistakeable system of orthographically representing its sounds, as is exemplified by the Qurʾān and as distinguishes it from Arabic dialects which all have different rules. Why do you only post questions instead of learning the grammar thoroughly? It should not take you more than two months, yet you only post questions since the creation of your account in November 2016 instead of making entries as you should be able to do if you can read Arabic. Palaestrator verborum (loquier) 00:15, 4 November 2017 (UTC)
@Palaestrator verborum: My grammar is still basic, since I've focused on vocabulary, yet I admit I don't like the material taken predominantly from Wehr's and Lane's. Furthermore, I have to learn how to edit properly, perhaps some JS, etc. I still do not understand what you mean by "there is no other case that in vocalized text..."--Backinstadiums (talk) 00:43, 4 November 2017 (UTC)
@Backinstadiums: It is my argument why it should be possible for the programmers here to fix it (or in @Atitarev’s words: why “this case is supposed to work”). Regarding your learning endeavors, I can only advise against such an approach. The concrete shapes of the words heavily depend on the grammar, synchronically and diachronically, and it pays out well to learn at the beginning the grammar from beginning to end as it is the shortest part of the language from which only you will understand idioms and the relations between words in the instances in which they are used. Really, I first read the whole grammar if I want to know a language and pick up not even thirty words in this act (that reading sometimes needs only two days!), then I am armed to read all kinds of texts, faster and faster. There is no such thing as immersion – you do not have the time or opportunities or necessities babies have for the language to pour in upon them. Palaestrator verborum (loquier) 01:18, 4 November 2017 (UTC)
@Palaestrator verborum: This is a digression from the topic but everyone's abilities and interests are different. I'd prefer beginners take their time learning rather than creating in bulk erroneous entries. The Arabic grammar is very difficult too and you can't get a good exposure to it without understanding some words, being able to read and in order to read an unvocalised Arabic text and without transliteration, you need to know those words and grammar, common patterns. The matter is further complicated by the fact that, simply put, nobody speaks the written language and nobody writes the spoken dialects. Complex grammar such as Russian can be learned by reading texts without using aids such as transliteration or vocalisation and listening to it. It is so much harder to get this exposure in Arabic. --Anatoli T. (обсудить/вклад) 01:30, 4 November 2017 (UTC)
Of course one shall only create entries when one has the necessary degree of sureness about them – but obviously exactly to exclude errors in the entry creation one should know the whole grammar, while on the other hand nobody needs to know the whole vocabulary of a language; the pursuit of completing it is what drives us here to create entries: The memorial enhancement brought forth by adding entries as well as the inner altercation with the words and the language wherewith you describe. Is there an off-topic demarcator template? Should be made. Palaestrator verborum (loquier) 01:49, 4 November 2017 (UTC)
Topics just get split but the general discussion we had, had nothing to do with the purpose of the Grease pit. --Anatoli T. (обсудить/вклад) 01:56, 4 November 2017 (UTC)

@Palaestrator verborum: There is no reason for لِلنَّاسِ to fail, since we have an identical working example: بِالتَّأْكِيد (bi-t-taʾkīd). It works well without explicitly providing hamzatu l-waṣl ٱ. You can see this and similar in Module:ar-translit/testcases. Please add another test case and any other glitches. --Anatoli T. (обсудить/вклад) 00:29, 4 November 2017 (UTC)

Oops, I just noticed that your case doesn't have an alif. Not sure, if this case is supposed to work now. --Anatoli T. (обсудить/вклад) 00:32, 4 November 2017 (UTC)
Hmm, my comments were simply wiped out by User:Backinstadiums. I am sure it wasn't intentional. --Anatoli T. (обсудить/вклад) 00:49, 4 November 2017 (UTC)
I added some examples to the testcases. — Eru·tuon 01:34, 4 November 2017 (UTC)
@Erutuon: Swell, but the entry لِلَّبَنِ‏ (li-l-labani) contained by the testcases looks imaginary to me. There is no such thing as full graphical elision of the determiner, as far as I know, so we have ‎لِللَّبَنِ‎. Example found on the web: ‎“هل تعلمي أن لللبن الرائب فوائد أخرى عديدة أكثر من مجرد تهدئة القولون أو علاج عسر الهضم”‎. That is “li-l-labani”, the entry here is “li-labani” without any article (else how would you know if it is determined or not?). Also that is obviously a SOP, so, well, why not delete it? Palaestrator verborum (loquier) 02:39, 4 November 2017 (UTC)
@Palaestrator verborum: Well, I thought a series of three lams was shortened to two. I could be mistaken. There would be ambiguity, but language is often ambiguous. As for the entry, @Stephen G. Brown probably had a reason for creating it. Propose deletion if you want. — Eru·tuon 02:51, 4 November 2017 (UTC)
The reasons then and now may be different. The notion that everything spelled without spaces is a word, even for languages that do use spaces between words is not always true. --Anatoli T. (обсудить/вклад) 02:56, 4 November 2017 (UTC)
My copy of Arabic: an Essential Grammar (p. 57) says that three lams are indeed simplified to two, so لِـ (li-) + اللُّغَةُ (al-luḡatu) is لِلُّغَةِ (lilluḡati), a homograph of لِلُغَةِ (liluḡati) when written without diacritics. But apparently, from the example you give, this rule is not always followed. — Eru·tuon 03:47, 4 November 2017 (UTC)
Back to the topic, the new cases لِللَّبَنِ‏ or لِلتَّأْكِيذ‏ are weak. What we have is "lām + nothing + sun letter + šadda + vowel" in the middle of a word. The module expects to have a vowel point where it sees nothing. It works for definite articles at the beginning of words or after prepositions but dropping the alif makes it very ambiguous. It should continue failing, IMO and a manual transliteration needs to be provided, unless a stronger case is provided to show that only an abbreviated definite article can happen in this position and not another lām in an incompletely vocalised word. --Anatoli T. (обсудить/вклад) 03:24, 4 November 2017 (UTC)
Yuck, Wolfdietrisch Fischer writes in § 22 of his Grammatik des klassischen Arabisch:
“In einigen feststehenden Verbindungen wird alif al-waṣl nicht geschrieben.:
a) bei der Verbindung der Partikel la- und der Präp. li- mit dem Artikel: لِلرَّجُلِ lir-raguli (statt لالرجل‎), لَلْمَجْدُ lal-maǧdu (statt لالمجد). Beginnt in solchen Fällen das folgende Nomen mit ل, wird das ل des Artikels nicht geschrieben: لِلَّيْلَةِ lil-laylati (statt لالليلة‎), لِلّٰهِ lil-lāhi ‘für Gott’ (statt لالله).”
According to this it is classical to drop the ل – honestly that seems weird to me according to current standards and I have to ask some native speakers about the current stringency. But for the module it means that that case has to be handled, as Classical Arabic is also Arabic in Wiktionary – the current evidence points to both cases being in need of handling. Note the transcriptions given by Fischer. Palaestrator verborum (loquier) 03:48, 4 November 2017 (UTC)
The search for للله takes significantly more to scroll down than the search for لله. Note لله and the discussion page, Anatoli. / I did not see btw a need for a text direction fix. The bidi implementations are awful, they apparently even differ across browsers. / Whatever, I am becoming silly and need to sleep. Palaestrator verborum (loquier) 03:59, 4 November 2017 (UTC)
@Palaestrator verborum: I'm not sure why you said "yuck". I am not arguing and I wasn't arguing the correctness of the case as a reading rule (for humans) but for the module, we need to make sure there are no other cases, where unpointed lām is not part of an abbreviated ال to avoid mistransliterations. --Anatoli T. (обсудить/вклад) 10:05, 4 November 2017 (UTC)
@Atitarev: I’m sorry for your feeling offended. I have not referred to anything you said but said yuck about the whole topic and this uncertainty (the indentitation level was supposed to relate to my own message just before it). As it seems that if that rule of § 22a applies, there is no way for the module to recognize the article. So it will always be a bit wrong only by not adding a hyphen. But understanding now what you have said, I think if diacritic-less lām is not part of an abbreviated ال (al-), it is just incomplete transcription and the editor is liable for providing such a transcription; whereas it is of highest importance that the module does not fail with nil if a completely and correctly vocalized Arabic text is provided (it is too regrettable if it fails for just this). And yet also we do not know cases “where unpointed lām is not part of an abbreviated ال (al-)”.
@Heydari, do you know any such cases? And if we are on it, how do you esteem spellings like “لِللَّبَنِ‏”. A matter of taste? Wrong, but pleasant? Horrifying? Justly prefered these days? Palaestrator verborum (loquier) 14:00, 4 November 2017 (UTC)
@Palaestrator verborum: No problem, keep up the good work in Arabic! --Anatoli T. (обсудить/вклад) 23:12, 4 November 2017 (UTC)

@Palaestrator verborum Does prefixing لِـ change the nature of the velarized /ɫ/ of لله? Otherwise the pronunciation should show ɫ --Backinstadiums (talk) 10:54, 4 November 2017 (UTC)

@Backinstadiums Good question, but I am the wrong man asked, I hardly ever hear Arabic speech. Palaestrator verborum (loquier) 14:00, 4 November 2017 (UTC)
@Backinstadiums: Yes. You can see an example of that in Module:ar-pronunciation/testcases. [edit: To be clear, I think it happens after the vowel /i/, long or short, so there are many more possible examples. At least, that's what the module assumes.] — Eru·tuon 19:11, 4 November 2017 (UTC)
@Erutuon, Palaestrator verborum: According to this forum, it's right --Backinstadiums (talk) 21:03, 4 November 2017 (UTC)
Confirming. I replied to you in Talk:لله. --Anatoli T. (обсудить/вклад) 23:12, 4 November 2017 (UTC)

Wiktionary:Quotations[edit]

Hello. How I can use Quotations function in other wiki projects? Which extensions, templates or gadgets required? --Drabdullayev17 (talk) 09:00, 4 November 2017 (UTC)

@Drabdullayev17: Are you referring to the JavaScript code that allows quotations to be shown and hidden? I did a search and it seems to be located in MediaWiki:Common.js (search for "Hidden Quotes" and "Visibility toggling"), but other people such as @Dixtosa or @Rua might know more about it. — Eru·tuon 21:30, 4 November 2017 (UTC)
Thanks @Erutuon:, I did it but it didn't solve my problem. --Drabdullayev17 (talk) 06:16, 5 November 2017 (UTC)
@Drabdullayev17: I was simply showing you the code. I can't promise this will work, but you could try copying it to the User:Drabdullayev17/common.js file on the wiki where you want to use it. — Eru·tuon 09:58, 5 November 2017 (UTC)

template:fr-noun and other headline templates[edit]

It's not terribly important, but would it be possible to add automatic parsing of words like attentat-suicide, trait d'union and à l'instar de? Currently, one has to use the parameter {{{head}}} and write manually "[[attentat]]-[[suicide]], [[trait]] [[d']][[union]] and [[à]] [[l']][[instar]] [[de]]". --Barytonesis (talk) 10:59, 4 November 2017 (UTC)

I'd rather not, because automatic parsing like that isn't language-specific as far as I know, which means there would have to be a break at a hyphen and apostrophe in all languages. And I don't want English won't parsed as [[won']][[t]] or Irish t-athair as [[t-]][[athair]]. —Aɴɢʀ (talk) 13:43, 5 November 2017 (UTC)
@Angr: Would it be technically feasible to make it apply only to French? --Barytonesis (talk) 10:49, 6 November 2017 (UTC)
I don't know. —Aɴɢʀ (talk) 11:13, 6 November 2017 (UTC)

languages offered for a certain entry[edit]

I am concerned about the languages offered for a certain entry in the English version of wiktionary. That is, for https://en.wiktionary.org/wiki/a, there're 99 languages with the term "a" in their lexicon, all of them explained in the English language (for example, for french, https://en.wiktionary.org/wiki/a#Etymology_3_12 the third etymology reads "third-person singular present indicative of avoir".

Yet, you could choose the French interface to see the same info., https://fr.wiktionary.org/wiki/a#Forme_de_verbe.

Now , I want to limit the languages which show the term that's been searched, not those of the interface offered on the lelft of the page. --Backinstadiums (talk) 12:48, 6 November 2017 (UTC)

Arabic translit fails on fully vocalised texts[edit]

I can't figure out why it fails here:

هٰذَا ٱلرُّوبُوت اَلَّذِي يَتَكَلَّمُ ٱلْعَرَبِيَّة‏
hāḏā r-rūbūt allaḏī yatakallamu l-ʿarabiyya
This is a robot, which can speak Arabic

but not here هٰذَا ٱلرُّوبُوت اَلَّذِي يَتَكَلَّمُ ٱلْعَرَبِيَّة (hāḏā r-rūbūt allaḏī yatakallamu l-ʿarabiyya)? It requires a manual transliteration, since "robot" is pronounced in a non-standard anglicised way "rōbōt", not "rūbūt" but something's going wrong with one of the modules. It works with {{m}} but not with {{ux}}. @Erutuon, Palaestrator verborum. --Anatoli T. (обсудить/вклад) 12:53, 6 November 2017 (UTC)

@Atitarev: It's because of a right-to-left mark at the end of parameter 2 in {{ux}} above that is not present in {{m}}. I can see it because I have the wikitext syntax highlighting beta feature enabled. That makes the has_diacritics function think that the text isn't properly vocalized. Perhaps the module should ignore right-to-left and left-to-right marks so that bizarre stuff like this doesn't happen. — Eru·tuon 19:32, 6 November 2017 (UTC)
Okay, now Module:ar-translit ignores these marks when determining if text can be transliterated, but tracks them in ar-translit/lrm or rlm. — Eru·tuon 19:58, 6 November 2017 (UTC)
@Erutuon: Thank you for fixing this! Now, there's a new problem. It seems that using {{ux}}, it thinks that there is a final sukūn, although I haven't even entered a full stop to avoid this, so the final word with an unpointed tāʾ marbūṭa is transliterated as "ʿarabiyyat‏" but should be "ʿarabiyya". --Anatoli T. (обсудить/вклад) 13:02, 7 November 2017 (UTC)
@Atitarev: Okay, that's fixed too. It was because of the final right-to-left mark (again), which made the module think the tāʾ marbūṭa wasn't final. — Eru·tuon 18:51, 7 November 2017 (UTC)
@Erutuon: Thanks for the efforts! Do you think you can make it work with the punctuation as well?
هٰذَا ٱلرُّوبُوت اَلَّذِي يَتَكَلَّمُ ٱلْعَرَبِيَّة‏.‏
hāḏā r-rūbūt allaḏī yatakallamu l-ʿarabiyya.
This is a robot, which can speak Arabic.
--Anatoli T. (обсудить/вклад) 05:18, 8 November 2017 (UTC)
@Atitarev: Done! Hopefully it's okay to do it with all punctuation; I can't think of any counterexamples at the moment. — Eru·tuon 05:28, 8 November 2017 (UTC)

Links in category lists[edit]

Is it somehow possible to make the links in category lists go to the correct language? (without too much effort). Very annoying to have to click through to the right entry sometimes. – Jberkel (talk) 19:26, 6 November 2017 (UTC)

Yes, this is already implemented for most categories. What category are you referring to? DTLHS (talk) 19:26, 6 November 2017 (UTC)
What do I have to do to enable it? For example, I recently created Category:Italian nouns with multiple plurals. – Jberkel (talk) 10:06, 7 November 2017 (UTC)
Does {{catfix}} do what you want? I put it on the category you mentioned. —Aɴɢʀ (talk) 10:34, 7 November 2017 (UTC)
Yes, thank you! – Jberkel (talk) 11:03, 7 November 2017 (UTC)

Abuse filter 73 help[edit]

Trying to forbid references as a level two header in the main namespace. article_namespace == 0 & new_wikitext rlike "\n==\s*References\s*==\s*\n" seems not to work at all- what should the regex be? DTLHS (talk) 21:40, 6 November 2017 (UTC)

Looks like it is working to me, perhaps you tweaked it since you asked. You might want to add the inverse for old_wikitext if you don't want to flag entries which already have References as an L2. - TheDaveRoss 15:23, 7 November 2017 (UTC)
@DTLHS you may wish to consider added_lines_pst as that is the most accurate for new additions, otherwise you are testing the entire rendering of the updated page. If doing that I would suggest that you ignore the new lines and focus on the target text so a regex something like ={2}\s{,3}references{,3}={2} (note this is untested), it also shortens the length of your wildcard searches, and either make it [rR] or irlike just in case they don't follow your case pattern. — billinghurst sDrewth 02:57, 8 November 2017 (UTC)

Template alerts for {{bor}}[edit]

The {{inherited}} template helpfully generates an alarm if an editor tries to enter a source language that is not an ancestor of the target language. I wonder if we could do something similar with {{borrowed}}? I believe most users agree that {{bor}} is only supposed to be used for the last derivation in a chain, so e.g. Hungarian láma is not supposed to be marked as a borrowing either from Quechua (the animal) or Tibetan (the title). We in fact do not expect to see any direct borrowings between Hungarian and Quechua, or Hungarian and Tibetan. There are going to be at least hundreds of other pairings like this, where language A very well might have words derived from language B, but they're all going to be mediated by some other language.

For a rough first approximation, would it be possible to:

  1. divide languages as having one or more specific regions;
  2. generate errors for borrowings between non-adjacent regions. (We should clearly not limit things to just one region, since their boundaries are going to be fluid.)

A region in this sense is not merely the native region of a language, but the region where it has speakers at all. "Global" languages like English could be assigned to every or almost every region, so they would almost never trigger errors. (Maybe for regions like "ancient Middle East", but I doubt anyone is going to go in good faith marking e.g. Akkadian words as borrowings from English anyway.)

By "generating an error" I do not necessarily mean an explicit template error — a maintenance category "nonsensical borrowings" or "suspicious borrowings" might be sufficient. --Tropylium (talk) 12:03, 7 November 2017 (UTC)

This sounds like an enormous amount of effort to set up and maintain compared to quite a modest benefit. I wouldn't even say it's a mistake to say that Hungarian láma is borrowed from Quechua and Tibetan: it is borrowed from those languages, just not directly. —Aɴɢʀ (talk) 13:53, 7 November 2017 (UTC)
I agree that we should only use borrowing for the final step in an etymology, but enforcing that is not going to happen until we can put an entire etymology into one template invocation. DTLHS (talk) 02:48, 8 November 2017 (UTC)
@DTLHS Your dumps can help, though. —Rua (mew) 12:08, 9 November 2017 (UTC)
If you are doubtful, just alter them to {{der}}. Like all the proto stuff in many entries, they are often not directly inherited or borrowed and some editors get carried away with the use of {{inh}}. DonnanZ (talk) 12:42, 10 November 2017 (UTC)

In page anchors?[edit]

What is the process for linking to a specific part of a definition on a page. As sub-headings are not unique, about the only place to which I can link uniquely is the language sub-heading, and for a page with multiple meanings/uses, I would like to be more specific in my linking. Thanks. — billinghurst sDrewth 02:46, 8 November 2017 (UTC)

@billinghurst: Use the |id= parameter in linking templates. This links to an HTML id created by {{senseid}}. For instance, {{m|en|-er|id=agent}}-er. Also works in {{affix}} and related templates, only the parameter needs a number to specify which component the id applies to: {{affix|en|teach|-er|id2=agent}}teach +‎ -er. — Eru·tuon 04:06, 8 November 2017 (UTC)
@Erutuon I am only an occasional editor of Wikt:, and definitely don't know the ins and outs, so there is a little (big?) gap in what you are explaining and where my knowledge lies. Nothing at category:Linking templates or category:Internal link templates assists. Are these innate to current labels, or do they need to be explicitly added when one wants to make them an anchor? I had wanted to link to one of the definitions within may#English and I don't see those templates overtly used. Thanks. — billinghurst sDrewth 04:47, 8 November 2017 (UTC)
@billinghurst: If {{senseid|language code|id code}} is not in the definition line that you want to link to, you must add it. Once the senseid template is there, it can be linked to by putting the id code into the linking template. For the {{l}} template, that looks like {{l|language code|page name|id=id code}}. For instance, in the -er entry, one of the definition lines is # {{senseid|en|agent}} {{lb|en|added to verbs}} A [[person]] or [[thing]] that ... ., and the template code {{l|en|-er|id=agent}} creates a link to that definition line. Does that help? — Eru·tuon 05:07, 8 November 2017 (UTC)
Yes, thanks. It would be useful to put it into some guidance page here for other intrepid wikimedians who wander by. — billinghurst sDrewth 07:12, 8 November 2017 (UTC)
What about anchors to subsections? For example, how would I link to Etymology 2 of Irish bán? {{l|ga|bán|id=Etymology 2}} doesn't work, and I don't suppose it would be kosher to write ==={{senseid|ga|grassland}}Etymology 2===. Sometimes I want to link to the whole Etymology section and not just a single sense line. —Aɴɢʀ (talk) 12:42, 8 November 2017 (UTC)
Well, [[bán#Etymology 2]] links to the first Etymology 2 header on the page, which happens to be the Hungarian one at the moment. [[bán#Etymology 2 2]] (I recently discovered this) links to the second Etymology 2 header. Currently that's the Irish one. Either of those links will end up going to a different section if another Etymology 2 header is added above them. There's no way for the linking template to figure out which Etymology 2 header is in which language section, except by getting the page content and doing a search, which would be costly. Maybe you could use {{senseid}} in the etymology section (which I don't particularly like the idea of, but maybe it should be allowed), or {{anchor}} (in which case you have to do something like {{l|ga|bán#anchor name|bán}}). — Eru·tuon 05:23, 9 November 2017 (UTC)
No wait, {{l|ga|bán#anchor name|bán}} doesn't work; it links to [[bán#anchor name#Irish]]. Hmph. — Eru·tuon 05:24, 9 November 2017 (UTC)
So, [[bán#Etymology 2 2]] works as a bare link, but there's no way to get {{l|ga|...}} to link to it, because {{l|ga|...}} will always add #Irish to the URL? That's frustrating. —Aɴɢʀ (talk) 11:30, 9 November 2017 (UTC)
@Angr: I'll take a look at the module and see if that can be fixed. # can only be used for anchors in wikilinks, and the module shouldn't add another anchor after an existing one. — Eru·tuon 17:22, 9 November 2017 (UTC)
Okay, it's fixed. — Eru·tuon 17:54, 9 November 2017 (UTC)
What does it do now instead? —Rua (mew) 19:08, 9 November 2017 (UTC)
Now, {{l|ga|bán#Etymology 2 2|bán}} links to [[bán#Etymology 2 2]], as I think a naive user would expect it to. (So it has the same result as {{l|ga|[[bán#Etymology 2 2|bán]]}}.) — Eru·tuon 19:17, 9 November 2017 (UTC)
But what if that section isn't actually in the English section? —Rua (mew) 19:27, 9 November 2017 (UTC)
Oops, it isn't. (Wrong language code. Changed it from en to ga.) Well, that would be unfortunate. The module probably can't check it, because it would be extravagant in processing time and memory to load and search the page for every link that has a manually inserted fragment. Similarly, the module can't check whether a sense id is present in the language section. The fragment could be removed if it isn't a sense id or language name, but that would be confusing for users and it would add to processing time and memory, as the module would have to check if the putative language name in the anchor was valid. (It would sometimes have to check twice: for {{l|en|-er#English-agent|er}}, whether English-agent was a language code, and then whether English was a language code.) Checking the validity of fragments and sense ids might be easier for a bot. — Eru·tuon 19:42, 9 November 2017 (UTC)
The problem actually runs deeper than that. When someone links to an English section, we know which specific section they intended to link to. With "Etymology 2", there's no such guarantee, since it just picks the first section with that name. It could be in the wrong language section, or it could be in the right language section but not actually be the Etymology section that the linker intended to link to (because someone rearranged the entry). This is why I generally remove anchors from links. They are really unreliable and there's no guarantee that the section they link to is the intended one. Only senseids can solve this problem, since they assign a specific identifier that will never change regardless of how much the entry is changed. —Rua (mew) 19:51, 9 November 2017 (UTC)
I agree that generic anchors are unreliable, but there's still the possibility that someone will change or remove a sense id, making the links that use it fail to work anymore. (I've changed ids before, though I do make sure to update the links that use them.) So it would be good if they were being checked regularly. — Eru·tuon 00:53, 13 November 2017 (UTC)

@billinghurst: I would be willing to write something on how to use sense ids. I just don't know where to put it exactly. — Eru·tuon 05:26, 9 November 2017 (UTC)

The documentation for {{l}} would be a good place. There's also some at {{senseid}} itself. —Rua (mew) 12:07, 9 November 2017 (UTC)

Let me throw this out there -- we've spoken from time to time about more radical restructurings. One that would seem to make a great deal of sense (even if it would be a huge PITA to migrate existing content), would be to move language content to language-specific subpages. So [[bán]] would show all words in all languages that have this graphical representation, while the content specific to Irish would live at [[bán/ga]], and the content specific to Hungarian would live at [[bán/hu]], etc. That would make it possible to link to specific headers in specific languages. This is also quite similar to how the Grease Pit itself is now organized (among other discussion pages), where the main page at [[Wiktionary:Grease_pit]] shows the combined content, while the actual threads live on sub-pages like [[Wiktionary:Grease pit/2017/November]].

Alternatively, we could rework how HTML id values are generated, so rather than id="Etymology_2_2", which, for our purposes, is pretty close to bloody useless, we would instead get useful id values, like id="ga-Etymology_2" or something similar.

Hopefully fodder for productive discussion. ‑‑ Eiríkr Útlendi │Tala við mig 03:59, 12 November 2017 (UTC)

@Eirikr: I imagine that adding ids like id="ga-Etymology_2" could be done with JavaScript. But to do it without JavaScript would require templates. — Eru·tuon 08:23, 17 November 2017 (UTC)
@Erutuon: That's an interesting approach. My initial thought was to see if there's anything in the server setup related to anchor auto-generation that we could reconfigure. id="Etymology_2_2" is clearly not in a format that we're intentionally generating. I'm curious if there's any way of getting the server-side setup to do the work for us, without requiring any change to the wikicode on each page. If not, then JavaScript or templates would presumably be the way to go. ‑‑ Eiríkr Útlendi │Tala við mig 17:18, 17 November 2017 (UTC)
@Eirikr: It would be neater if it were implemented server-side. There would be less mess in the wikitext. It would probably require help from MediaWiki folks, who might or might not want to implement this. To put language codes into ids in headers, the server would have to be updated with the latest language codes and canonical names from our language data modules so that it could convert canonical names in headers to codes. Or it would have to just put the canonical name or whatever else is found in the previous level-2 header in the id (that is, id="Irish-Etymology_2", or id="Irish_Gaelic-Etymology_2" if someone decided to use an alternative name of the language). I don't know that much about how the server software works, though. I would mention, many other wiktionaries use templates in headers, and French Wiktionary seems to use the templates to insert custom ids into headers. — Eru·tuon 10:45, 18 November 2017 (UTC)

Straw poll -- would you be open to the idea of using templates in page headers as a means of improving in-page-anchor functionality?[edit]

As mentioned by Erutuon above, the French Wiktionary apparently makes extensive use of templates in page headers as one means of improving in-page-anchor functionality.

Would you (whoever is reading this) be open to the idea of doing something similar here?

  • Symbol support vote.svg Support ‑‑ Eiríkr Útlendi │Tala við mig 19:23, 20 November 2017 (UTC)
  • Symbol oppose vote.svg Oppose. It doesn't actually solve the problem, like I mentioned in my earlier post. There is no guarantee that the section named "Etymology 2", even if it's in the right language, is the section that the linker intended to link to. There is nothing about it that reveals which etymology section it is. {{senseid}}, specifically because they contain actual meaningful text most of the time, do not suffer from this problem. If we started naming etymology sections rather than numbering them (at least for anchoring purposes), it would be better. However, it would make a lot more sense to link to the part-of-speech section rather than the etymology; when do you actually want to link specifically to an etymology? —Rua (mew) 19:31, 20 November 2017 (UTC)
    @Rua -- Templates in headings could provide more useful and semantically stable link IDs than just numbers, such as the naming possibility you mention. Numbering alone is possibly one of the worst approaches, as pages grow and change and numberings become unstable. Re: linking to POS sections, perhaps I should have been more explicit -- I'm thinking about all headings, not just etymology headings. ‑‑ Eiríkr Útlendi │Tala við mig 19:46, 20 November 2017 (UTC)

Useful graphic on loading sequence[edit]

This graphic looked like it might be helpful at some stage in diagnosing and minimizing the occasionally recurring problems we have with the show-hide JS. DCDuring (talk) 13:18, 8 November 2017 (UTC)

Automation of 'See also' links?[edit]

I've stumbled across a few pages that are lacking {{also}} links at the top of the page recently, e.g. OWO/owo and Szilágyi/Szilagyi.

Was there ever a bot that created these links automatically? Is it possible to write a module which would automatically keep the see-also links up to date? Pengo (talk) 12:41, 9 November 2017 (UTC)

There was a bot, but it wasn't very reliable, and it hasn't run in a long time. —Aɴɢʀ (talk) 14:28, 9 November 2017 (UTC)
I have had to add a number of words including the letter "ø" to {{also}} links, they seem to be missed for some reason. DonnanZ (talk) 14:38, 9 November 2017 (UTC)

"References is forbidden as a level 2 header" in inappropriate namespace[edit]

My bot just tried to edit Wiktionary:Etymology and got booted out by this edit filter. Of course, the filter should only apply to namespaces that contain entries, mainspace and Reconstruction. Can the filter be fixed to that effect? Moreover, the filter shouldn't be triggered for edits that others made. My bot didn't add the References section, so the filter shouldn't be flagging unrelated edits as bad. —Rua (mew) 23:10, 10 November 2017 (UTC)

It's abuse filter 73- I couldn't get it to work right and I've disabled it for now. DTLHS (talk) 01:20, 12 November 2017 (UTC)

Prevent deletion of the main page[edit]

This is evidently something that can be done, so I presume we should. This suggested it to me. @Angr, since you're an admin at en.wiki, can you confirm that the main page can't be deleted there? —Μετάknowledgediscuss/deeds 01:17, 12 November 2017 (UTC)

I don't know. I've never tried. —Aɴɢʀ (talk) 15:16, 12 November 2017 (UTC)
Before you try it, make sure to read Wikipedia:Don't delete the main page. ;-) -Stelio (talk) 21:19, 12 November 2017 (UTC)
@Angr, what I meant was, can you access the page to delete it? —Μετάknowledgediscuss/deeds 21:39, 12 November 2017 (UTC)
I can confirm that the "Delete" and "Move" options that every other main-namespace article has do not appear on the Main Page at English Wikipedia. —Aɴɢʀ (talk) 21:46, 12 November 2017 (UTC)
What if you go to delete some random page, but then change the URL so that the target page is "Main page"? —Rua (mew) 19:14, 13 November 2017 (UTC)
@Metaknowledge, Rua: You get a Permission error saying, "You do not have permission to delete this page, for the following reason: You cannot delete or move the main page." —Aɴɢʀ (talk) 10:08, 17 November 2017 (UTC)

Min Nan POJ entries ended up in HSK categories[edit]

Something puts Min Nan POJ entries into Mandarin HSK entries, e.g. an-chēng#Chinese. @Wyang, Justinrleung. --Anatoli T. (обсудить/вклад) 02:46, 12 November 2017 (UTC)

That thing has been annihilated. Wyang (talk) 02:52, 12 November 2017 (UTC)
Great, thanks! --Anatoli T. (обсудить/вклад) 02:54, 12 November 2017 (UTC)

Request for kana as ruby on kana-containing base text for uses of {{furigana}}, {{ja-r}} & {{ja-usex}}[edit]

Some authors use ruby on base text that contains kana, for example ベーゼキッス or 魔法使いぼく, which {{furigana}} & {{ja-usex}} can't handle yet. It's trickier to automatically render romaji for {{ja-r}} & {{ja-usex}} in these cases, but they also have parameters for manually doing that, so they should offer more options.

By the way, what wrong this: バカじゃないの。 (ぜん) () () (じょ) (みっ) (しつ) () (てん) () () (れん) (ぞく) (さつ) (じん) () (けん)?わざわざ (ことわ)らなくても、 (ふく) ()たまま () ()には (はい) () (じょ)なんていないわよ。だいたい、 () (てん) () () (みっ) (しつ)になった (だん) (かい) (だい) () (けん)だわ。

Baka ja nai no. Zenra bijo misshitsu rotenburo renzoku satsujin jiken? Wazawaza kotowaranakute mo, fuku kita mama furo ni wa hairu bijo nante inai wa yo. Daitai, rotenburo ga misshitsu ni natta dankai de daijiken da wa.
Now that’s just absurd. A series of murder cases of beautiful naked women inside locked-room outdoor baths? I mean, it’s not like there’s such thing as beautiful women taking a bath with clothes on. And an outdoor bath can’t be in a locked room to begin with.

.I tried breaking it down into small parts (バカじゃないの。 (ぜん) () () (じょ) (みっ) (しつ) () (てん) () () (れん) (ぞく) (さつ) (じん) () (けん)?わざわざ (ことわ)らなくても、 (ふく) ()たまま () ()には (はい) () (じょ)なんていないわよ。

Baka ja nai no. Zenra bijo misshitsu rotenburo renzoku satsujin jiken? Wazawaza kotowaranakute mo, fuku kita mama furo ni wa hairu bijo nante inai wa yo.
Now that’s just absurd. A series of murder cases of beautiful naked women inside locked-room outdoor baths? I mean, it’s not like there’s such thing as beautiful women taking a bath with clothes on. And an outdoor bath can’t be in a locked room to begin with.

だいたい、 () (てん) () () (みっ) (しつ)になった (だん) (かい) (だい) () (けん)だわ。

Daitai, rotenburo ga misshitsu ni natta dankai de daijiken da wa.
(please add an English translation of this example)

) and found nothing wrong with the matching of kana. ばかFumikotalk 06:09, 12 November 2017 (UTC)

I made a small change to the function and it appears to fix this problem. I believe the problem is due to repeated characters or sequences of characters, in this case triple apostrophes used for bolding. However, there are likely to be other effects of this edit... — Eru·tuon 06:57, 12 November 2017 (UTC)
Now there's something wrong with ラー (よく) (しん) (りゅう)
no Yokushinryū
Ra the Winged God Dragon
. Can you check it again? ばかFumikotalk 10:58, 12 November 2017 (UTC)
Okay, that is now fixed. — Eru·tuon 18:57, 12 November 2017 (UTC)

ISO codes in tab languages[edit]

The languages in the tabs (PREFERENCES > GADGETS – Enable tabbed languages) take a lot of space, so I'd like to change them for their ISO codes. --Backinstadiums (talk) 17:58, 12 November 2017 (UTC)

Oppose showing language codes in any user-facing place, and especially in such an important place as L2 language headers (which the tabs replace). —Rua (mew) 18:02, 12 November 2017 (UTC)
@Rua: I'd like it as an option in the user's preferences, just as the tabs are optional --Backinstadiums (talk) 18:11, 12 November 2017 (UTC)
I'd be opposed even to letting people opt in to this setup. Even experienced users will sooner or later be baffled and frustrated by the fact that the language codes aren't listed in alphabetical order, since we alphabetize by full name, not by code. —Aɴɢʀ (talk) 13:20, 13 November 2017 (UTC)
@Angr: Customizable order of languages should be optional as well --Backinstadiums (talk) 19:12, 13 November 2017 (UTC)

{{autocat}}[edit]

Is there a way to make the wizard that appears on Creating Category:... pages paste {{autocat}} directly into the editing box upon clicking it (if possible also saving the page and maybe giving me a back massage), I've wasted countless man-seconds on typing this in. Crom daba (talk) 16:29, 13 November 2017 (UTC)

If you're willing to wait a bit, you don't have to create those categories at all. DTLHS runs a bot script that creates them. —Μετάknowledgediscuss/deeds 19:23, 13 November 2017 (UTC)
I'm not, red links provoke me. Crom daba (talk) 19:28, 13 November 2017 (UTC)
P.S. This is off topics, but does anyone know what's wrong with this (I've just added Proto-Yukaghir, but poscatboiler can't see it apparently).
Proto-Yukaghir is "qfa-yuk-pro" not "xgn-mgr", and, you need to also edit Module:languages/canonical names if you add a new language in order for {{auto cat}} to function. DTLHS (talk) 19:39, 13 November 2017 (UTC)

Module:IPA sorting wrong[edit]

For Northern Sami, a sort key is set to sort á immediately after a. But in Category:Northern Sami terms with IPA pronunciation, á is sorted at the very end. Can this be fixed? —Rua (mew) 21:02, 14 November 2017 (UTC)

Done. — Eru·tuon 21:44, 14 November 2017 (UTC)
@Erutuon: Thanks! Can you also arrange it so that {{IPA}} accepts |sort= for manual sorting? —Aɴɢʀ (talk) 21:49, 14 November 2017 (UTC)
@Angr: I guess that feature should be available. Done! — Eru·tuon 22:08, 14 November 2017 (UTC)

Behaviour of {{topic cat}} at "Category:en:New York City"[edit]

I've just noticed that at "Category:en:New York City", {{topic cat}} is generating the following statement: "English terms related to new York City" (with new instead of New). There are some instructions at {{topic cat}} on using the special keyword "default with capital" to alter the default behaviour of the template, but I can't figure out how to do it. Could someone help? — SGconlaw (talk) 10:21, 17 November 2017 (UTC)

It seems to read OK now, so someone must have quietly changed the module. DonnanZ (talk) 17:06, 19 November 2017 (UTC)

Two collapsing displays under the same definition?[edit]

I am having troubling picturing a user interface suitable for infrequent users that would allow for a collapsing display under a definition of a synonyms line and a collapsing display of citations. Are we forced to have a single collapsing display that included both? DCDuring (talk) 13:49, 17 November 2017 (UTC)

Ouput of template:label[edit]

Hello, in the page bump into, we can see for the first two definitions: (literally intransitive) and (literally transitive), without any comma between the two labels. Is there any reason to that? — Automatik (talk) 01:48, 19 November 2017 (UTC)

"Literally, intransitive" would be as ambiguous as "literally intransitive". Perhaps for that reason {{lb|en|intransitive|literally}} produces (intransitive, literally). I think that literally should not appear together with any other label because it can be read ambiguously with many other label words. DCDuring (talk) 11:16, 19 November 2017 (UTC)

what if I wanted to[edit]

As someone with a "C-like" background (can struggle through C and C++; regularly use C#, JS, PHP; am low-level enough to have an idea about assembler), what is a good entry point to all this Lua fun that we have here? Equinox 04:26, 19 November 2017 (UTC)

Does this help? DTLHS (talk) 04:30, 19 November 2017 (UTC)
Excellent, thank you. For future idiots, where should I have found the link? Equinox 04:43, 19 November 2017 (UTC)
I have no idea. DTLHS (talk) 04:48, 19 November 2017 (UTC)
It's linked in the edit notice for module pages, with the link text "Scribunto": MediaWiki:Editnotice-828. — Eru·tuon 04:49, 19 November 2017 (UTC)
It might be a good idea to link this kind of thing from this (WT:GP) page. If I knew Lua (which I don't! yet) I would like the techy page to have a clear pointer to "this is how we do Lua around here". Anyway, thanks! Equinox 04:52, 19 November 2017 (UTC)
I hadn't thought about it before, but I guess I agree. It should probably link to WT:LUA, which can serve as a hub. It has the link given above as well as others. — Eru·tuon 08:15, 19 November 2017 (UTC)

Improving links to pages with many languages[edit]

I hope I am not asking for too much, but is it possible for links to be improved to pages such as ti, which has entries in no less than 47 languages, so you land on exactly the right language. For example, the link from tiande to Norwegian Nynorsk ti. DonnanZ (talk) 12:57, 20 November 2017 (UTC)

It already does bring you to the right section, because the link is using {{l}}. Why don't you try again? —Μετάknowledgediscuss/deeds 15:35, 20 November 2017 (UTC)
Behaviour is erratic, sometimes in the right place, sometimes ends up two or three languages below. Could it be a browser problem? DonnanZ (talk) 15:52, 20 November 2017 (UTC)
The link to [[ti#Norwegian Nynorsk]] worked perfectly for me this time in Chrome 62.0.3202.94 (64-bit), Firefox 56.0.2 (64-bit), and Edge 40.15063.674.0. DCDuring (talk) 16:12, 20 November 2017 (UTC)
FWIW, I've noticed similar behavior on up-to-date Chrome, where the view of the page shifts as the JavaScript loads and different portions of the page expand or contract. @DonnanZ, when you click through a language-specific link using {{l}} or {{m}}, do you see this behavior too? ‑‑ Eiríkr Útlendi │Tala við mig 19:15, 20 November 2017 (UTC)
I think I will have to put it down to my browser. I'm still using IE (with Windows 10 which may be an anachronism), as I can't be bothered moving my links stored in Favourites to another browser. Sometimes I notice it lands on Nynorsk for a split second, then jumps downwards. With pages with just two or three languages there's usually no problem. DonnanZ (talk) 19:28, 20 November 2017 (UTC)
I've had that problem with Chrome (and it can't really be helped), but with Firefox now I can go to the address bar and click enter, and it'll zoom me to the correct section. (On Chrome, that reloads the page.) — Eru·tuon 21:40, 20 November 2017 (UTC)
For the JavaScripters: What would happen if a script runs very last and manually resets the anchoring to the correct position? —Rua (mew) 19:39, 20 November 2017 (UTC)

{{trans-top}}[edit]

Translation tables on my browser (Chrome. see: reorganize) have developed a horizontal scroll bar - is this a temporary glitch, or what? — Saltmarsh. 16:35, 20 November 2017 (UTC)

  • No such scroll bar on my Chrome. SemperBlotto (talk) 16:41, 20 November 2017 (UTC)
  • @SemperBlotto: Thanks - "Preferences/Enable targeted translations" makes it come and go. It also appears with all the "pull-down" inflection tables which I have looked at. — Saltmarsh. 18:58, 20 November 2017 (UTC)

Text appearing oddly big at nála[edit]

The link to the lemma in Northern Sami nála is looking really big for some reason. Does anyone know why? —Rua (mew) 21:58, 20 November 2017 (UTC)

According to my Firefox "inspect" window, it's because of the style rule Tibt .use-with-mention .mention, .form-of-definition-link .mention { font-size: 160%; } in MediaWiki:Common.css. I don't know why that's being applied here, because I doubt there are really any <Tibt> tags anywhere, but changing Tibt to .Tibt should fix the problem. — Eru·tuon 22:16, 20 November 2017 (UTC)
Oh, duh, the second selector .form-of-definition-link .mention is what's applying. That should be prefixed by .Tibt too. — Eru·tuon 22:17, 20 November 2017 (UTC)
I came across this with {{alternative form of}}. DonnanZ (talk) 22:23, 20 November 2017 (UTC)
Still happening, see undervassbåt. DonnanZ (talk) 23:07, 20 November 2017 (UTC)
@Wyang: I think this edit caused the problem. The selectors should perhaps be changed to .Tibt .use-with-mention .mention, .Tibt .form-of-definition-link .mention to get the rule to do what you intend. — Eru·tuon 23:09, 20 November 2017 (UTC)
Thanks! Wyang (talk) 23:17, 20 November 2017 (UTC)
I reverted the problematic change until it's fixed. —Rua (mew) 23:09, 20 November 2017 (UTC)
More easily fixed than reverted. 😂 Wyang (talk) 23:17, 20 November 2017 (UTC)

Esperanto headword[edit]

I am going to convert all these using templates to {{eo-head}}:

  • eo-noun, eo-verb, eo-adj
  • head|eo|noun form, head|eo|verb form, head|eo|adjective form

since Esperanto rules are fixed and they can be autodetected in Module:eo-headword. --Octahedron80 (talk) 00:18, 21 November 2017 (UTC)

sc=CGK[edit]

It is found in MediaWiki:Common.css and Module:scripts/data as an alias for Korean (I think?), but it is actually used (i.e. can it be removed)? (I removed two manual uses here and here. Unless my search query for Special:Search is bad, those were the only manual uses in the dictionary.) —suzukaze (tc) 07:20, 21 November 2017 (UTC)

Well, it's not used by any languages (i.e., not found in any language data modules) according to Module:data consistency check. — Eru·tuon 07:46, 21 November 2017 (UTC)

egg[edit]

Lua error: not enough memory. --Barytonesis (talk) 13:05, 21 November 2017 (UTC)

@Barytonesis: Current solution is to move the largest Translations section to a /translations subpage. — Eru·tuon 22:00, 21 November 2017 (UTC)