text:
Wiktionary:Grease pit/2019/March

Table templates
Does anybody know why Hittite inflection table templates, , and aren't collapsing anymore? They used to be rendered collapsed by default. – Tom 144 (𒄩𒇻𒅗𒀸) 14:16, 3 March 2019 (UTC)
 * Fixed by removing a semicolon. (The semicolon was causing problems for jQuery in MediaWiki:Gadget-VisibilityToggles.js.) — Eru·tuon 20:26, 3 March 2019 (UTC)
 * Thank you. –Tom 144 (𒄩𒇻𒅗𒀸) 20:28, 3 March 2019 (UTC)

Template for categorizing pseudo-Anglicisms, etc
Related to Beer parlour/2019/March, should we create one or more templates for categorizing entries as CAT:Pseudo-anglicisms by language, CAT:Pseudo-Italianisms by language, etc? We could either have different templates, , etc, or one template like   that would take language codes like    (for "French pseudo-Anglicisms"). The latter would have to have its own (template-internal, non-Lua?) list of parameter-2-language-codes–to–text to account for "en" being "Anglicism" instead of "English", etc, at least for the relatively few divergent cases like that. (We could perhaps set it up to put unrecognized languages into a holding category we could check periodically to review the correctness of, or just to assume that anything that didn't have a "special" name specified should just use the language's canonical name + ism.) - -sche (discuss) 17:58, 3 March 2019 (UTC)
 * If we are to do this, definitely create a single template, , etc. Benwing2 (talk) 21:00, 3 March 2019 (UTC)
 * I'm not sure this can be always called pseudo-borrowings. In some cases, most speakers would tell you that they're still in the purported original language. In others, they're considered to be a language that doesn't actually exist. Then there are various stereotypical "foreign accents" that don't sound at all like anything real people would say. It's like speakers of the recipient language have this imaginary language in their heads that they may or may not identify with some real language (that they know nothing about). It has its own vocabulary, grammar and phonology- however limited- and is different from the speakers' own language- but also from any other language. In some ways it's like a pidgin, and in others like a conlang. Another parallel is spirit-possession languages, ritual languages, rhyming slang, thieves' cants and other specialized registers. Chuck Entz (talk) 22:53, 3 March 2019 (UTC)
 * Hmm... but (re your first sentence) anything that can't be called a pseudo-borrowing isn't covered by this; I'm only proposing to take entries which already describe themselves as e.g. pseudo-anglicisms in their etymology section, and templatize that description in the hopes of making such entries easier to track and regularly categorize. (The word "borrowing" or "loan" wouldn't show up anywhere in the entry, and I'm not proposing to categorize them as e.g. "derived from English", just to templatize the existing categorization as "pseudo-anglicisms" etc.) From my perspective, the fact that some cases might be unclear does not seem any more of an impediment to this template than to any other etymology template. - -sche (discuss) 23:38, 3 March 2019 (UTC)

Headers of Thai templates
I just noticed that headers have recently been removed from Thai language related templates. Formerly, the templates allowed users to add titles to the headers of drop-down lists, which worked somewhat like the temples "trans-top" and "trans-bottom". For example:

But, now, in the Thai templates, the title parameter does not work any more and the headers are not displayed any longer. For example, the following code:
 * gives the following plain list without title:
 * gives the following plain list without title:

And this causes a mess to some entries where several lists are placed in the same section, because there's no title to tell this list is for which definition or that list is for which definition. An example is in the synonym section of the entry. So, I think we should do something to fix this problem. --Miwako Sato (talk) 07:33, 4 March 2019 (UTC)
 * I fixed Module:columns so that the title is displayed in the same way that it is displayed for and similar templates. If Thai editors in general prefer the way the list looked before, that can be achieved by replacing Module:columns with Module:columns/old in Module:th. — Eru·tuon 21:18, 4 March 2019 (UTC)
 * Thank you very much! --Miwako Sato (talk) 04:40, 5 March 2019 (UTC)

I just noticed something. I think the header should be displayed only when the parameter "title" is used. But, now, when the parameter "title" is not used, the header displays the title of the section it belongs to instead, which is redundant. See the sections "Alternative forms" and "Derived terms" in the entry for example. --Miwako Sato (talk) 06:24, 5 March 2019 (UTC)
 * Yes. That was true before the list layout changed. The default header is set in Module:th. — Eru·tuon 06:34, 5 March 2019 (UTC)

Tocharian B Genders
I'm not sure if this is the exact best place to put this, but it's a technical question about Wiktionary machinery, and I see nowhere better to post it.

Tocharian B is a gendered language, but I don't see any simple way of showing the genders of nouns for the entries I create, unlike in Latin or Ancient Greek, which can have their genders easily shown through formatting text. Looking at the other Tocharian B noun entries that I didn't create, it doesn't look like any of them have their genders shown, which leads me to believe that there isn't any code set up to display Tocharian B genders.

Would it be possible to fix this in the Lua code, and, if not, how can I work around it? GabeMoore (talk) 19:36, 4 March 2019 (UTC)

 * the noun template accepts gender as the second parameter, it seems that the issue is that nobody has added the genders yet. If you are not familiar with the use of these templates, they go immediately under the part-of-speech header (e.g.  ) and they look something like  . Hope that helps, and this is a perfectly reasonable place for this request. -  TheDaveRoss  19:52, 4 March 2019 (UTC)

 * Thanks so much. A lot of the nouns have gender that either changes or is unknown in the plural. How would I denote this? GabeMoore (talk) 14:06, 6 March 2019 (UTC)

Obligate non-scriptio continua in a Mandarin Chinese example
Most of the time, we assume that Mandarin Chinese is an unspaced scriptio continua. But there is a political slogan in Mainland China that includes an obligate space between the two halves of the six character phrase, and it appears in the original text of an example that I am adding (and elsewhere- not idiosyncratic or a typo). Is there a way to add a space between the actual characters (not just a space in the pinyin) in a zh-x? Here's the page with the example:. --Geographyinitiative (talk) 20:46, 4 March 2019 (UTC)
 * A solution was found which can be seen on the page. --Geographyinitiative (talk) 01:45, 5 March 2019 (UTC)
 * Now I’m curious. Is it known what the rationale is for this unusual mandatory space? Is it to avoid an ambiguity in which 在行动 applies to just 雷锋 instead of the whole slogan 学雷锋? --Lambiam 22:02, 5 March 2019 (UTC)

Minor change to "Module:category tree/PIE root cat"
Could someone please modify "Module:category tree/PIE root cat" so that when it displays, for example, the description line "English terms that originate ultimately from the Proto-Indo-European root *ḱe-" on category pages, the link is to "Reconstruction:Proto-Indo-European/ḱe" and not "Reconstruction:Proto-Indo-European/ḱe-" (a redirect)? Also, perhaps there should be a full stop at the end of the description line. Thanks. — SGconlaw (talk) 09:17, 6 March 2019 (UTC)
 * I added the period to the category descriptions. The cause is actually, not the category tree module. always adds a hyphen to the PIE root in the category name; the hyphenless equivalent is . (I see I need to luaify .) — Eru·tuon 09:47, 6 March 2019 (UTC)
 * Oh, I didn't realize that the PIE element in question was a word rather than a root. Thanks. — SGconlaw (talk) 12:18, 6 March 2019 (UTC)
 * I don't know if the distinction is very rigorous. Practically, you use if the entry name ends in a hyphen, otherwise . — Eru·tuon 20:46, 6 March 2019 (UTC)
 * is of course meant to be used for roots... —Rua (mew) 15:23, 8 March 2019 (UTC)
 * Okay, so I just mean I'm not sure if is considered a root or not given that it's written with a hyphen in its headword line but without in its entry name. — Eru·tuon 19:17, 8 March 2019 (UTC)
 * I wouldn't call it a root, as it doesn't take part in word formation the same way normal PIE roots do. PIE roots always begin and end with a consonant. —Rua (mew) 19:42, 8 March 2019 (UTC)

is not suited for the Japanese dialects
I tryed to add dialectal accents in the Japanese entries, but I found many problems on the template. Though it makes detailed IPA expressions, that phonological feature only can be applied to the Tokyo dialect. For examples: It's totally impossible to express these features at present state. Help by whom can tweak the template is needed.--荒巻モロゾフ (talk) 14:23, 9 March 2019 (UTC)
 * Tokyo type (東京式) accents distinguish only by the position of the downstep, but Keihan type (京阪式) accents also distinguish the pitch at the beginning of word and Two-patterns type (二形式) accents have fixed into two patterns by the position from the end of phrase.
 * In relation to difference of the accents, pattern of the vowel devoicing can be varied. Some Western Japanese dialects including Kansai don't have devoiced vowels.
 * Medial ザ行 /z/ is free allophone [dz/dʑ ～ z/ʑ] in Tokyo, but [z/ʑ] in the many areas in Western Japan including Kansai, [dz] in most areas in the Tōhoku region.
 * Also there are dialects which distinguishe between ジ [ʑi]・ズ [zu] and ヂ [dʑi]・ヅ [dzu] in Kōchi, Miyazaki and Kagoshima prefectures.
 * ウ /u/ is unrounded [ɯ] in Tokyo, but rounded [u] in the Mie prefecture and westward, central vowel [ʉ] in the Tochigi prefecture and northward.
 * In Nothern Tōhoku, part of ウ段 /u/ is merged with イ段 /i/ to be /ɨ/.
 * Niigata dialect preserves difference between /oː/ and /ɔː/ from the medieval era.
 * Some dialects have fused vowels /ɛ/, /ø/ and /y/.
 * Some Eastern Japanese dialects merges イ段 /i/ and エ段 /e/ into /e̝/.
 * Kagoshima dialect has final stop consonants ッ [ʔ̚ ～ t̚], ㇲ [s] and ㇱ [ɕ].
 * Um... what do you think of the “unified Japanese” approach on my user page? --Dine2016 (talk) 15:23, 9 March 2019 (UTC)
 * That's a neat idea. To explain the history of accent patterns, it's good enough to put Tokyo, Osaka and Kagoshima dialects (they complement each other from the mergers of the accent pattern from the proto form) under the entry "Modern Japanese" basically. In order to handle various phonemes and accents, it is better if there are fields to write IPA freely.--荒巻モロゾフ (talk) 16:12, 9 March 2019 (UTC)
 * We absolutely need to re-evaluate our templates. They are suited only for the modern Tokyo dialect, to the detriment of other forms of Japanese. I started a personal remake of ja-pron with this in mind, but I didn't like my code. Perhaps I should revisit it. —Suzukaze-c◇◇ 05:53, 10 March 2019 (UTC)

 * FWIW, I fully support extending our template to handle additional varieties of Japanese.  I don't think the current state was ever intended to be the end-point -- we simply had to start somewhere, and most of the available information is about the so-called "standard" Japanese of the Tokyo region, as exemplified by 's broadcasts and reference materials.  Building out support for additional dialects would be brilliant.  ‑‑ Eiríkr Útlendi │Tala við mig 19:02, 3 April 2019 (UTC)

Profiling Lua memory usage and processing time
Anyone have any hints as to

 * 1) Profile where exactly the memory usage and processing time of a given page is going?
 * 2) Reduce the memory usage and processing time?

The only memory usage info I've been able to find so far is when you preview a page, it lists the total memory usage. But it doesn't break out the usage by function or module or anything, which would help a lot. I vaguely remember an old thing that listed the processing time per function but I can't find it any more.

As for reducing memory usage, I discovered at least for Module:quote that replacing precached references to  with calls to   each time I need to use a module reduces memory usage at the expense of processor time. This was enough to make black no longer throw memory-usage errors, although I'm really scraping at the margins; the majority of memory usage appears to come from the voluminous translation tables. Any other ideas? I imagine there must be ways of optimizing Module:links and/or the modules called by Module:links, and this would be useful, since they're used so often. Benwing2 (talk) 19:31, 9 March 2019 (UTC)
 * OK, scrap that, the reduction in memory usage was because some code was commented out. Reenabling that code bumps up the memory usage to where it was, leading me to think that avoid precaching modules doesn't help. Benwing2 (talk) 19:35, 9 March 2019 (UTC)
 * We could change the translation table format entirely, so that the whole contents is passed to a template and processed all at once. A major cause of memory usage is actually memory leaks between module invocations, so that the more modules are called on a page the higher the usage climbs. If we make the entire translation table one module call, it may work. —Rua (mew) 19:41, 9 March 2019 (UTC)
 * Each page has a report on how much time the transclusions of each template have taken. It is in the HTML source code (search "Transclusion expansion time report") and can be accessed using JavaScript, but as far as I can tell isn't displayed anywhere. There doesn't seem to be any information on how much memory each module uses.
 * Can you explain more? What sort of memory leaks are you referring to, how do they happen and how can they be eliminated? I did notice, for example, that the block that handles the chapter= parameter in Module:quote (lines 245-281) is where most of the memory is going. This code calls 3 modules but each one looks small, so I don't quite understand what's going on. Benwing2 (talk) 19:47, 9 March 2019 (UTC)
 * From past experiments, it seems that if you call a ton on the same page, it uses more memory than just a single . That doesn't make sense if you assume that each invocation is completed and all memory is freed before the next one is processed. Instead, it appears that the software processes all the invocations in parallel, but from a shared memory pool. Thus, the more invocations are processed in parallel, the higher memory usage becomes. At the same time, of course, the parallel processing speeds it up.
 * If the entire translation table is reduced to a single invocation, that limits the ability for each separate call to to be done in parallel, and forces the whole thing to be processed serially as one thread of execution. Thus, instead of the invocations for each  adding up to the memory usage, you only have the memory used by that single transclusion.
 * There are other optimisations you can do as well with this method. With, each invocation has to search for and import the appropriate language module, and this is then kept in memory for any future calls to so that the whole thing doesn't slow down to a crawl. However, with translation tables we already know it's highly likely that we'll need all language modules. If we transclude all language modules in one go (via Module:languages/alldata) in advance, but don't keep them in memory after, that may be more efficient. —Rua (mew) 19:57, 9 March 2019 (UTC)

 * You're doing a lot of string concatenation in this block. This is bad and creates a lot of garbage that may not go away. DTLHS (talk) 20:01, 9 March 2019 (UTC)

 * Interesting ... if it's processing in parallel it must first divide the page up into chunks, because you only see the out-of-memory errors appearing after a certain point. However, I notice that all errors start after a certain point on the page, which can change slightly depending on code changes, which suggests that if it's parallelizing it must do it in small chunks. There are some very strange things about memory usage, though; as for the block in question in Module:quote, all the memory usage is coming from the call to Module:roman numerals, which adds 2 MB even though it's only invoked once (string concatenation doesn't appear to be the culprit). Guarding it with a regex call to see if the thing actually looks like a Roman numeral gets back that 2 MB. I don't see what that one call to that module could possibly be doing to gain 2 MB. Furthermore, adding cached modules at the top sometimes *reduces* memory usage, and triggering an error in the middle of the page in one spot also reduces memory usage. There's definitely something weird going on here. Benwing2 (talk) 20:32, 9 March 2019 (UTC)

 * DTLHS is certainly correct that Module:quote is using a lot of memory on string concatenation. This could perhaps be avoided by refactoring the code to store high-frequency strings in a submodule which is loaded with mw.loadData. I find also a bit odd that you haven't used Module:parameters (though this in itself might add extra overhead). Also, as may have informed you, we are also working on a Module:cite-meta project, which I think could be efficiently combined with Module:quote. That way, a lot of the parameter processing, string storage, and output styling could be unified in one place. The other thing that would be to get Module:Quotations to run through Module:quote as well, but that may be a project for the future. —*i̯óh₁n̥C[5] 21:13, 9 March 2019 (UTC)

I did an experiment on User:Rua/sandbox. Have a look at the source code for the page. The entire translation table contents is passed to the module Module:User:Rua/translations new, which then does its own simpler template parsing. It also directly loads all the language data at once, but still uses the regular Module:links for processing. The funny braces are just to prevent the software from treating it as templates before being passed to the module.

Results with the new attempt: Results with the original translation table from : It's twice as fast and uses only half the memory. —Rua (mew) 20:39, 9 March 2019 (UTC)
 * Lua time usage: 0.369/10.000 seconds
 * Lua memory usage: 12.88 MB/50 MB
 * Lua time usage: 0.780/10.000 seconds
 * Lua memory usage: 28.22 MB/50 MB
 * It's too bad we can't do any real profiling and have to rely on trial&error. I opened T188492 last year, but not much has happened. – Jberkel 20:44, 9 March 2019 (UTC)

 * Another wise proposal that has been made by is to alter the entrytitle generation code to be slightly more efficient. Right now it goes through each accented character and tries to replace them with the unaccented equivalent. Erutuon suggested that is might be faster in many cases to use mw.ustring.toNFD to decompose the diacritics and then remove them. Further efficiency might be gained by doing nothing at all if the NFC and NFD strings are the same length. —*i̯óh₁n̥C[5] 21:20, 9 March 2019 (UTC)
 * Your suggestion above of using the new code in Module:User:Rua/translations new is a great idea. Are there reasons not to adopt it, and if so what? We could use this for now only on pages that otherwise trigger memory errors, rather than trying to convert pages en masse. Benwing2 (talk) 22:30, 9 March 2019 (UTC)
 * We probably want a better solution than the weird Unicode braces I used, though. It was just a quick test/proof of concept. Someone else would need to work it out more to get it fully functional. —Rua (mew) 22:49, 9 March 2019 (UTC)
 * I've implemented the idea that John described, of a  field in the   and   fields of language data tables.  and  now use it. When I tested the change in the sandbox, I saw a significant decrease in memory usage in a page with a lot of Ancient Greek links, but that may have been due to the way I was testing it. At the very least it works. — Eru·tuon 01:58, 14 March 2019 (UTC)
 * This is a great idea. It won't make a big difference, but a lot of African languages could use that as well. —Μετάknowledge discuss/deeds 02:43, 14 March 2019 (UTC)

 * How many of our users like to see, use, or need to use the full set of translations simultaneously? Could users choose which subset of languages are to be served to them? Could users choose not to be served any translations? DCDuring (talk) 23:04, 9 March 2019 (UTC)

 * The problem with dealing with issues via settings is that a lot of users (even those with accounts) often won't be logged in. Equinox ◑ 23:09, 9 March 2019 (UTC)
 * Could we not read or infer their preferred language somehow? And couldn't translations be made available based on session-specific preferences? Encouraging registration seems like a good thing. Having preset clusters of translations (eg, language families or languages in a given script) could speed the process of selecting such preferences. DCDuring (talk) 23:17, 9 March 2019 (UTC)
 * I'm thinking it wouldn't be too hard to make your prototype fully functional:
 * In place of weird Unicode chars, we create templates, , , that are parallel to , , etc. but do nothing except echo their arguments in some format, e.g.   might generate  . These templates should be non-Lua so they don't add to the Lua overhead. This way, other template calls be still be embedded into the argument passed to the translations-new function.
 * In place of directly calling full_link from translations-new, extract out the appropriate code from Module:translations and call that, so the output is exactly the same whether translations-new is used or not.
 * If you think this is a good idea, I'll implement it. Benwing2 (talk) 01:21, 10 March 2019 (UTC)
 * I'm fine with it. Be aware that such a "passthrough" would ignore unrecognised parameters, which normally trigger errors through the use of Module:parameters. It would be nice if we could retain the parameter checking somehow, either inside the passthrough template or directly in the new translation module. Perhaps the passthrough could be implemented in Lua, but in an extremely simple module that just iterates through  and spits everything back out again verbatim, leaving the translation module to do the checking. —Rua (mew) 15:11, 10 March 2019 (UTC)
 * That is a good point. I don't think it's very easy to implement the parameter checking inside a template. I think for the moment it doesn't matter all that much as this would presumably only be necessary on heavily trafficked pages, but once I implement it I will try implementing the passthrough in Lua the way you suggest, to see how much extra overhead it adds. An alternative is to not use a passthrough at all, but to use e.g. angle brackets and colons in place of braces and pipe signs; this should also work but might be a bit ugly. Benwing2 (talk) 19:36, 10 March 2019 (UTC)

Are you sure it's using a lot of memory doing string concatenation? It's true it's doing some string concatenation but not generally of very large strings. The main way of building up the output is through the add function, which adds to an array that is concated at the end. I could rewrite all string concatenations inside of add as multiple calls to add if you think it really makes that much difference. As for Module:parameters, I didn't use that because the first pass is a direct port of Template:quote-meta/source. In a future pass I may fix it up to use Module:parameters. As for Module:cite-meta, this is the first I've heard of it. Is its goal to replace the Template:cite-meta template? That template works rather differently from Template:quote-meta/source (or at least its output is quite different), so I'm not sure how much code could be shared, although I imagine some of it. Feel free to hack on Module:quote or even move your code in Module:cite-meta into it. (If you're going to keep a separate module, I'd call it just Module:cite rather than Module:cite-meta.) Benwing2 (talk) 01:29, 10 March 2019 (UTC)
 * I've always understood the most efficient method of string manipulation in Lua to be to create large tables of strings and then call :concat at the end to avoid having intermediate phases lying around. Another way I've seen Rua do it is to put the final layout on another page, load that in and replace all the  in one fell swoop.
 * As for Module:cite-meta (which I agree should be Module:cite, if separate), we've been keeping this one under wraps to a certain extent. The notion around this one is to tag all the parts of the citation so that using CSS magic, you can control what citation type and how much to show. That way, the user who wants "simple, clean" citations can choose how much information is shown, and everyone else can get as much info as they want in whatever format. I think the quote templates could benefit from the same treatment. —*i̯óh₁n̥C[5] 02:12, 10 March 2019 (UTC)

I implemented Rua's suggestion of processing the whole translation table together. See User:Benwing2/black-opt. This uses a template that surrounds a whole set of translation tables and requires that  inside of the template call be renamed to, and  inside of the template call be renamed to. (Things will still work if you don't rename, but you won't get the efficiency benefits.) This brings the memory usage down from 48M (just below the 50M limit) to 34M, and processing time from 2.09 to 1.29 seconds. There are probably further optimizations I could do, e.g. the implementations of and  aren't very smart about numbered params; with some additional work there to not generate blank numbered params, the memory usage might be brought down further. I haven't yet created pass-through templates and  or documented  except in the module code Module:translations/multi, but that isn't too hard. Benwing2 (talk) 22:48, 10 March 2019 (UTC)
 * I'm curious to know how it compares when there are multiple Translations sections on the page. Then you have to wrap each one separately. —Rua (mew) 22:51, 10 March 2019 (UTC)
 * You could also see what changes if you eliminate in the passthrough template. It does some things that may be rather expensive. —Rua (mew) 22:53, 10 March 2019 (UTC)
 * I will try eliminating the call. But I'm not sure what you're referring to about multiple Translations sections; in User:Benwing2/black-opt I used only two calls to, one wrapping all the adjective translation tables and one wrapping all the noun translation tables. Benwing2 (talk) 22:55, 10 March 2019 (UTC)
 * Ah, I missed that, never mind then. —Rua (mew) 22:56, 10 March 2019 (UTC)
 * Eliminating leads to essentially no observance difference in Lua memory or time. Benwing2 (talk) 23:01, 10 March 2019 (UTC)
 * Same story for optimizing the numbered params in . Benwing2 (talk) 23:05, 10 March 2019 (UTC)
 * I'm sure that's because of the opt-out list in the template, which has already eliminated any module calls through redlink template for entries on the list. The one unanswered question so far is how this interacts with the translation adder- does it get confused by the wrapper template and, if not, will it have to be modified to make this work? Chuck Entz (talk) 23:34, 10 March 2019 (UTC)
 * Yes, that will need to be modified. Benwing2 (talk) 00:42, 11 March 2019 (UTC)
 * BTW could someone point me to the JavaScript code for the translation adder? I'm not super familiar with JavaScript or how it works inside of Wiktionary. Benwing2 (talk) 00:49, 11 March 2019 (UTC)
 * Maybe it's this? MediaWiki:Gadget-TranslationAdder.js If so, I'll need some help fixing this as I'm not very familiar with JavaScript. Benwing2 (talk) 00:54, 11 March 2019 (UTC)
 * Yeah, that's it. I've wanted to improve it because it is kind of antiquated and messy, but I haven't quite grasped how it works (or MediaWiki:Gadget-Editor.js, which it depends on) so I haven't done much yet. — Eru·tuon 01:07, 11 March 2019 (UTC)
 * Any way you could hack on this? It should add instead of  if the translation-terms section is surrounded by  (i.e. preceded by "\n\n" and not preceded by a later occurrence of "\n}}\n"). If that's hard, you can look in the translation-terms section and see if there are any existing instances of  or . Also, when converting  to, it should correspondingly convert  to . I think the rebalancing code works fine without change. Benwing2 (talk) 05:43, 11 March 2019 (UTC)
 * I'll take a look at it. It might simplify things to require that will enclose all of a given Translations section and not just part of it, so that the gadget does not have to determine where the template begins and ends, and can assume that the whole section should use  and  for newly added translations. — Eru·tuon 08:56, 11 March 2019 (UTC)

Another optimization
Another optimization that we could do regarding memory is to change the way we currently structure the language data. Right now, we have a neat table of all the properties of a language, but in practice most of those properties go completely unused for the majority of use cases, yet we still have to import all the data and keep it in memory. Perhaps if we split the language data into smaller modules containing a subset of the data, then this data could be loaded only if it's actually needed. For example, most templates don't care about a language's parent or family, so we could put that in a separate module so that it can be loaded only when someone actually needs it. We could look into other pieces of data we could split off too to reduce the size of the data import needed. Perhaps even just one module per data point. Further splitting codes by second letter or something may also work, although that would increase the number of modules by a lot. —Rua (mew) 23:26, 10 March 2019 (UTC)

Template:ja-r
I created and  based on Rua and Benwing's method to reduce memory in Han character entries. They can replace and reduce Lua memory and time usage somewhat. Example:

...

↓

In 水 and 人, replacing the templates in one or two Japanese derived terms sections brings the pages under the Lua memory limit, so they no longer have module errors. — Eru·tuon 05:35, 11 March 2019 (UTC)
 * Awesome!!! Benwing2 (talk) 05:43, 11 March 2019 (UTC)

Using simpler linking functions
A technique that I used on several Appendix pages, like Appendix:Ancient Greek endings and Appendix:English doublets, and in some templates like, , and , is to link the terms without using Module:links at all. Module:links is complex because it has to handle many different types of input. For instance, it has to ensure that links to Unsupported titles/Colon and that  links to word and not to word, separately process each nested link in, and so on. This increases Lua memory and processing time.

In many situations, many of these features are not needed, so resources can be saved by avoiding Module:links and the templates that use it. For instance, if a list of terms does not contain any hash marks, the hash-recognizing feature is not needed. If there are no punctuation marks or whitespace characters that are not allowed in titles, you don't have to check for unsupported titles. If there are no nested links, the linking function doesn't have to check for nested links and process them specially. One or more of these conditions is often true in lists of terms in a particular language and in inflection tables.

So for instance Module:grc-link handles Appendix:Ancient Greek endings, and as far as linking is concerned (the module does other more complicated stuff), it only has to remove some diacritics to get the correct entry name and then create the correct link syntax. Even though it contains more than two thousand links, the page renders quickly and uses very little Lua memory.

uses a more complicated technique because you can't insert a table into a template. It invokes Module:quick link, which basically transcludes the content of another template and then processes it. I don't like the technique because it's hard to reproduce, but at least the template uses fewer Lua resources now.

and also generate tables, but the wikitext is instead found in Lua modules (Module:zh-numbers and Module:grc-correlatives). The modules modify the wikitext to add links and then return it. This technique is easy to understand, but it is somewhat weird to embed a large amount of wikitext in a Lua module. — Eru·tuon 08:34, 11 March 2019 (UTC)

Lua error te
I was fixing an error on Tee (removed Dutch Low Saxon and added it to thee, and moved West Frisian up), I was browsing some of the other entries and came across an error message at te. I don't quite know how to fix this myself, it doesn't appear that my alteration causes the error to occur (reverting my changes did not cause the error message to disappear). Servien (talk) 23:02, 9 March 2019 (UTC)
 * Very interesting. See the immediately preceding discussion for an instance of similar symptoms. DCDuring (talk) 01:29, 10 March 2019 (UTC)
 * It's a Lua memory error. The page has had it for ages; it's certainly not your fault. — Eru·tuon 07:00, 10 March 2019 (UTC)

 * For whatever it's worth, during the process of making a number of edits to the page replacing s etc with bare wikilinks with manual language-section-tagging, I noticed that each one or two removed wikilinks generally reduced memory enough that another one or two lines (of s, s, or declension-table lines) worked, basically pushing the start of the error down the page (as if each of them was using roughly as much memory as the other). - -sche (discuss) 07:23, 10 March 2019 (UTC)

Cleanups of etymology templates
Just a heads-up that I am planning of making the following changes:

 * 1) Changing  not to output a final period, and fix up uses of this template so that if nodot= is present it's removed, and otherwise a period is added after the template. (I think this is the only such template that still adds a period at the end.)
 * 2) Changing all occurrences of lang in, , , , , and  to use 1, and move all other numbered parameters over by one. All these templates currently support both 1 and lang for specifying the language. After this change I'll remove support for lang in these templates.
 * 3) Renaming calls to  to use.

In the longer run I'd like to do the following, but I won't do them yet as they may be controversial:

 * 1) Rewrite all uses of, ,  and maybe  in terms of  and eventually eliminate those preceding three or four templates.
 * 2) Rewrite all uses of, , etc. that use lang to use 1, moving the numbered parameters over by one; and then eliminating the compatibility support for lang.

Benwing2 (talk) 05:59, 11 March 2019 (UTC)
 * You should be careful about converting them to because that may give the wrong result if there are hyphens in the terms. For example, with PIE root plus suffix, the root should not be treated as a prefix despite the hyphen. —Rua (mew) 10:47, 11 March 2019 (UTC)
 * Probably forgot, , , , which are of the same code. Fay Freak (talk) 13:45, 11 March 2019 (UTC)
 * Is there some way to have templates like and  cater to situations where the various elements of a word originate from different languages? It is not uncommon, for example, for a word to have a stem that is from Greek or Latin, and then an English affix like -ic or -ity. — SGconlaw (talk) 14:24, 11 March 2019 (UTC)
 * The way I do it is using der for the foreign word, plus en (or whatever), or en plus foreign word. DonnanZ (talk) 17:30, 11 March 2019 (UTC)
 * lang N “The language code to use for this particular part” which stands at, is for all such cases an I err not. Fay Freak (talk) 15:45, 11 March 2019 (UTC)
 * Thanks for making templates more consistent. Didn't know we had . Shouldn't it take the terms which make up the new word as parameters, ? – Jberkel 17:14, 11 March 2019 (UTC)
 * : It could, but this is above my coding capabilities. Also often you write something between the two terms, or it is one link already, for example on ; can be an entry and  is, the same with ; or there isn’t a term that can be linked and it is SOP, as on ; one would also need to consider in the coding that one of the parts can be in a different language code-switched into the language or the like. The template has been created because it still eases, linking to the appendix correctly and categorizing. Fay Freak (talk) 17:49, 11 March 2019 (UTC)
 * OK. In addition to the above, I'm going to do the following:
 * Rename lang= to 1= on the other templates mentioned by User:Fay Freak:, , , , as well as synonyms.
 * Reduce some synonyms. In particular, I notice the following synonyms:
 * has synonyms, , and . I see no reason for having so many synonyms, and only  and  are mentioned in the docs, so I'll rename  ->  and  -> . In general I think we only need one synonym, which should be shorter than the original and short enough to type easily, and we only need such synonyms if the original is sufficiently long as to make typing it in full be annoying, hence  doesn't need a shorter synonym. It's bizarre, for example, that  (which is already pretty short) has four synonyms: , ,  and . Such profusion of synonyms IMO serves little purpose and just makes bot processing harder and more error-prone.
 * has synonyms and, which will be renamed to.
 * will be renamed to.
 * will be renamed to.
 * Convert these templates to Lua. I'll do that after the cleanup. All except and  are basically a single link + some additional text and a category, and should be implemented with a single Lua function, with another function to handle  and  (similar to the code that implements, and maybe sharing that code).
 * Benwing2 (talk) 01:29, 12 March 2019 (UTC)
 * Thanks for pointing out the issue with PIE roots and such. I think should be extended to support such things (terms that aren't affixes but look like affixes) by using a special character to prefix such non-affixes. There are various reasons for doing this besides just making it easier to convert  and ; you might, for example, want to say something like  (where I've used the caret ^ to indicate that the term should not be interpreted as an affix) and not have to worry about which (if any) of the *fix variants to use. What should that character be? Asterisk (*) is out because that indicates reconstructions; backslash (\) is a possibility as it has a similar function in code, but it might look ugly; exclamation point (!) is a possibility but I use it in a different (almost opposite) sense in  and sisters; what do you think of caret (^)? Other possibilities are e.g. tilde (~), pound sign (#) or percent (%). Benwing2 (talk) 01:40, 12 March 2019 (UTC)
 * OK, I finished the first part of the cleanup and converted all the etymology templates to Lua. and  now take multiple parts, similar to, and the others take a single part. Now I'm going to do the following: rewrite all uses of , , , , etc. that use lang to use 1, moving the numbered parameters over by one; and then eliminate the compatibility support for lang. Benwing2 (talk) 02:03, 13 March 2019 (UTC)
 * I implemented support in for a caret (^) to mean non-affixal interpretation. I also fixed another issue preventing use of  in East Asian languages, where the language-specific hyphen character was set to the empty string so that  and  wouldn't automatically add it. This setting formerly made it impossible to use  for East Asian prefixes and suffixes. I fixed things so that you can use a regular hyphen to indicate an affix in these languages, but the displayed and linked term won't have a hyphen. I also fixed several edge-case bugs (e.g. the hyphen wasn't correctly added to translit in  and, although the code clearly intended to do), and cleaned up a lot of duplicative code. Benwing2 (talk) 01:42, 15 March 2019 (UTC)
 * I think I've cleaned up all the cases of with no term from the dump. Changes included merging  with a following, or adding "of" after "doublet" because Benwing2's changes removed it, or making proper use of the 1 option to hide "doublet of", or replacing the word "doublet" with the template rather than hiding the template (because removal of "of" makes that possible). — Eru·tuon 08:15, 27 March 2019 (UTC)
 * Should the parameter for “the term that this term was derived from” be optional in like it is in ? Since both do not categorize by the source language but dump all in the respective language category of Category:Phono-semantic matchings by language and Category:Doublets by language I tend to assume yes. A usage examples for this would be  since it is said to be “a historically conflated term derived from multiple layers of phono-semantic matching”, and one wants to use it there and in alike entries to link the appendix entry and categorize. I have understood that for  and  also have the parameter only optionally though this is not reflected yet.,  and  are sorted however as Morphology templates (though I don’t know what doublets have to do with morphology) and  as foreign derivation template and all “foreign derivation templates” do not permit to omit a term, though only some of the templates there categorize by the source language. You see, there is some inconsistency, though surely this is to the greatest part owing to the nature of the relations described by the derivation templates. This might insinuate a different subcategorization of the etymology templates but I do not fancy anything particular,.
 * Or expressed all shorter and in sequential order, one must examine 1. for all etymology templates, if the fact that a source term is a mandatory parameter is reasonable 2. if the fact whether a source term is a mandatory parameter is reflected in the documentations of the etymology templates consistently so one does not have to guess or try 3. for all etymology templates, if the fact that there is no categorization by the source language is reasonable 4. if the categorization of the etymology templates themselves is reasonable. Fay Freak (talk) 23:33, 27 March 2019 (UTC)
 * I can fix this. Benwing2 (talk) 01:05, 28 March 2019 (UTC)

Cleanups of form-of templates
While we are at it, I mention the Form-of templates. From olde times, when they supposed that the language is English is not specified, they take the linked word as first entry and only lang, not a positional language parameter. While a change of this would be rather large, though probably consequent, and on topic since some imply etymology like, I mention these templates because of nocap, nodot, that constitute an annoyance. Some have a dot at the end by default, some not. This is irritating and cannot or should not be memorized by the user. Furthermore it wastes precious effort of the fingers to type this parameter and “1” every time using the templates, particularly (which puts no dot by itself, but has the capitalization problem). As with the now standing practice of capitaliation and dots in glosses, the setting should be inferred from the language code, i. e. dot and capitalization for the line in English entries and no dot and no capitalization in Arabic entries, unless specified otherwise. Fay Freak (talk) 13:45, 11 March 2019 (UTC)

 * Yes, I would support standardization of this category of templates. As they are mostly used in definitions, I would support the addition of a full stop at the end of the statement as the default, coupled with the ability to specify 1 or yes to turn it off. — SGconlaw (talk) 14:18, 11 March 2019 (UTC)
 * Default for English, to be sure. In other languages the definition lines shan’t have dots nor begin capitalized. Fay Freak (talk) 15:42, 11 March 2019 (UTC)
 * I see no reason why English should be formatted differently. There should not be no dot or capital for English if it's not there for any other language. —Rua (mew) 17:22, 11 March 2019 (UTC)
 * I see neither any and I am a strongly against this formatting in English, I only was stating the current “rule” deriving from practice. Dots at the end of the lines are noise, they don’t bear information. Similarly I am also against dots at the ends of footnotes though some professors seem to think that they are required because footnotes are “sentences”. The capitalization even makes distinctions go away, say when there is an English word meaning one thing and a word written the same but capitalized meaning another thing. Plus the consistency argument. Fay Freak (talk) 17:49, 11 March 2019 (UTC)
 * I have to disagree, because I believe definitions should be treated as sentences and capitalized and punctuated as such. In some cases definitions consist of more than one sentence, and so will have to be punctuated. For consistency, those which consist of only one sentence should be given the same treatment. — SGconlaw (talk) 18:06, 11 March 2019 (UTC)
 * Only in those cases. Then the dot is a separator. Else you could as well use a semicolon, bar, star, or something ornate. It is arbitrary to see the glosses as “sentences” and to put dots behind them. In fact the word “gloss” tells us that they aren’t sentences, any more than in a Medieval manuscript if a word is explained in a gloss it ends with a dot. Also if they were sentences the headwords would be SOP. You understand this one? The glosses translate parts of sentences, phrases, but generelly not sentences (sometimes as glosses of interjection, but this is exceptional and can also be omitted). Putting a dot after glosses and footnotes is simple hypercorrection. It is like ending parentheses with dots, wrong the same way. This wrong. Fay Freak (talk) 19:59, 11 March 2019 (UTC)
 * Oh, and by the way there is a practice not to end simple etymologies with dots, apparently standard in Russian entries. I remember having observed removing such dots; so it looks on . A dot wouldn’t do anything here, neither when we put the word “from” before the derivation. Saying this or that is “a sentence” because it is the abbreviation of a “sentence proper” or an imagined sentence in the strict sense and hence must be treated the same is just essentialist delusion. The question must be what is brought about with the signs. You might observe that it is not wrong at all if, when one nowadays chats, one sends single sentences without punctutation marks. This is because they don’t add any meaning, or even dilute it because the speaker did not want to decide between dot,, , . In a “serious” work it cannot be otherwise for single full sentences. One sometimes puts the dots in these because of the dogged old expectation that “every sentence must end with a punctuation mark” but there isn’t even this expectation with database-like entries on the internet. Fay Freak (talk) 20:22, 11 March 2019 (UTC)
 * English is fundamentally different from foreign languages because the definitions of English terms are paraphrases using other English terms (normally full sentences or long phrases), while the definitions of foreign terms are English equivalent terms (often single words). For example, the definition of is written as follows:
 * Cloth-covered frame used for protection against rain or sun.
 * while the definition of is written as follows:
 * umbrella
 * Note the difference in formatting. This is fairly consistent across Wiktionary and is the reason I remove final periods when they occur in Russian definitions. For this reason I think the use of capital letters and periods in templates like should be different for English vs. foreign languages: Capital letter and period in English, lowercase letter and no period in foreign languages. Benwing2 (talk) 01:47, 12 March 2019 (UTC)
 * Emoji u1f44d.svg — SGconlaw (talk) 01:57, 12 March 2019 (UTC)
 * I agree with Benwing. - -sche (discuss) 05:46, 12 March 2019 (UTC)
 * That's for full definitions. But form-of templates are not full definitions, they are glosses in all languages, so they shouldn't have a period. It's inconsistent when the exact same definition gets a period in one language and not others. —Rua (mew) 11:08, 12 March 2019 (UTC)
 * There is no consistency., for example (and other templates using ) do include a final period; see e.g. concious, mispronounciation. (and others using ) do not. But both include a capital letter at the beginning, which is wrong for non-English languages. If we are to follow your idea that form-of templates are glosses, there shouldn't be either a capital letter or a period in any language. Otherwise, we should have both capital letter and period in English, but not any other language. Either way, the current inconsistent situation needs to be fixed. Benwing2 (talk) 03:20, 13 March 2019 (UTC)
 * We may have to have a poll or vote on this. — SGconlaw (talk) 11:58, 13 March 2019 (UTC)
 * This only concerning the formatting in English, if this is supposed to change. I was here concerned about the default formatting and dotting for formatting in foreign languages, which I said should be inferred from the language code, made consistent, this not being in doubt here. How English lines should be formatted is a divisible issue here. Also we have missed  in the template cleanup, it shares also that code. Fay Freak (talk) 17:06, 13 March 2019 (UTC)
 * The issues of English vs non-English can't be separated. If the same definition occurs in both languages, it should be formatted the same way too. "Plural of" definitions should not be capitalised in one language but not another, that's inconsistent. —Rua (mew) 20:35, 14 March 2019 (UTC)
 * We will need a poll, I think. Even within English the usage is totally inconsistent, e.g. Template:misspelling of has a capital letter and period, Template:alternative form of has a capital letter and no period, and Template:en-past of has no capital letter and no period. So far, User:Rua is the only person disagreeing with my suggestion of handling periods and capital letters in English vs. other languages. BTW I cleaned up,  and  to use only 1, not lang, and obsoleted/deleted  (use  instead) and  (use the lowercase equivalent). Benwing2 (talk) 00:08, 15 March 2019 (UTC)
 * Also, and fixed up that one and , and  to use Lua (which should flush out some bad param usages). Benwing2 (talk) 00:32, 15 March 2019 (UTC)

Character insertion table inserting some characters twice
I use that character insertion table – not entirely sure what it is called – that appears below the edit window, to insert characters and symbols. In the "Miscellaneous" menu, clicking on the superscript "a" and "o" (ª, º), for some reason, inserts two symbols instead of one. I wonder if this can be fixed. I guess this is quite a minor point, but it would be nice if someone could look into it. Thanks. — SGconlaw (talk) 09:04, 12 March 2019 (UTC)
 * Thanks for the report. . — Eru·tuon 19:59, 12 March 2019 (UTC)
 * Thanks! It's working as expected now. — SGconlaw (talk) 11:56, 13 March 2019 (UTC)

Issue with Module:ko-headword at 타일
Hello,

The new Korean entry currently shows empty brackets: 타일 •  when it should show 타일 • (tail) - with a transliteration in brackets. . --Anatoli T. (обсудить/вклад) 00:42, 14 March 2019 (UTC)
 * Hmm, I had to create two entries (for now): 타일 and 타일. The former is bad but what's wrong with it and what's the difference? --Anatoli T. (обсудить/вклад) 00:45, 14 March 2019 (UTC)
 * The first one has invisible Unicode characters at the front: when I hover over the link in Firefox, I get . I don't know why the translit wouldn't appear, but perhaps it's a helpful bug? —Suzukaze-c◇◇ 04:03, 14 March 2019 (UTC)
 * Thanks! that's the first thing I suspected but I haven't checked very well. There are two ZWNJ characters. Yes, it's good that the module failed but without a descriptive message. It fails on South East Asian languages with an error message. Deleting the entry now. --Anatoli T. (обсудить/вклад) 04:17, 14 March 2019 (UTC)
 * 타일 contains two zero-width spaces (U+200B). I’ll delete it. — T AKASUGI Shinji (talk) 04:15, 14 March 2019 (UTC)
 * Too late, gone :) Thank you both. --Anatoli T. (обсудить/вклад) 04:17, 14 March 2019 (UTC)
 * BTW, I created the bad entry from a translation at [[tile]], not my copypasta error. --Anatoli T. (обсудить/вклад) 04:19, 14 March 2019 (UTC)
 * Turns out there are a fair number of pages with zero-width spaces. — Eru·tuon 04:46, 14 March 2019 (UTC)
 * Yes, thanks, many South East Asian entries copied from Sealang dictionary or Wikipedia need to be quality-checked. Proper correct entries with automated transliteration won't even work for languages such Thai, Khmer and Burmese. --Anatoli T. (обсудить/вклад) 04:59, 14 March 2019 (UTC)
 * It seems like Module:ko-headword was programmed to not transliterate if the entry isn't pure hangeul, which results in empty parentheses. I've changed it so that it produces a meaningful error message instead. —Suzukaze-c◇◇ 04:48, 14 March 2019 (UTC)
 * Thanks, we need to check for exceptions, though. Arabic numbers, etc, may be part of valid titles, e.g. = . The former is more common and a standard way of writing months in Korean. --Anatoli T. (обсудить/вклад) 04:59, 14 March 2019 (UTC)
 * Actually, I simplified my statement a bit. The module doesn't complain if the  parameter is provided (as with hanja terms like 韓國).  is my solution. —Suzukaze-c◇◇ 05:23, 14 March 2019 (UTC)
 * Thanks, I didn't think about hangeul. rv= parameter is still required, if the reading is completely irregular, unless we respell the words completely, e.g. respell 십육 as "심뉵". If we do, we may consider adding long vowels but there's too much to do. Think about all geminations and all cases described at Template:ko-IPA/documentation. --Anatoli T. (обсудить/вклад) 05:32, 14 March 2019 (UTC)
 * Hm, I see. Perhaps we could try doing whatever the Thai infrastructure is doing (reading th-pron→reading ko-IPA). —Suzukaze-c◇◇ 05:46, 14 March 2019 (UTC)
 * I don't object to have a more phonetic transliteration. The default transliteration is fine too but if a term is respelled with some additional parameters, we might as well transliterate eg as something like "ēūmsikkap". "Tuttle Learner's Korean-English Dictionary" is already using a very phonetic transliteration, no long vowels are catered for, though. --Anatoli T. (обсудить/вклад) 05:57, 14 March 2019 (UTC)
 * I agree (I've also wondered in the past about including long vowels in the romanization), but I also haven't studied enough Korean, and wouldn't feel confident modifying Module:ko-pron appropriately _(：3 」∠ )_ —Suzukaze-c◇◇ 06:09, 14 March 2019 (UTC)
 * The current pronunciation module is perfect and the quality of most entries is very high. We just need to merge "pron" with "translit", automate things. One of the reasons for not transliterating long vowels is digraphs, the other, maybe, the vowel length is not too prominent, semi-long and optional (?). Very phonetic transcription will invariably confuse someone who just want to know the script and understand etymologies a bit more. But we already have two parts in the pronunciation box: eg at : Revised Romanization "seollo" and Revised Romanization (translit.) "seonlo"	--Anatoli T. (обсудить/вклад) 06:20, 14 March 2019 (UTC)
 * Long digraphs are supposed to be encoded by U+035E COMBINING DOUBLE MACRON after the first letter. e.g. e͞u. Of course, font support may be poor. --RichardW57 (talk) 06:37, 25 March 2019 (UTC)

Ancestors in Module:etymology languages/data
Recently the Proto-Oghuz language was to Module:etymology languages/data during Victar's work on the Turkic languages. It is still set as the ancestor of Old Anatolian Turkish, which is the ancestor of Ottoman Turkish, which is the ancestor of Turkish. To let the language modules find Proto-Turkic, the parent language of Proto-Oghuz, as an ancestor of Turkish (and prevent module errors in etymologies such as ), Proto-Oghuz has  (Proto-Turkic) given.

The etymology templates can't interpret the  value in the data module as an ancestor, because it isn't the same thing. For instance,  (Pre-Greek) has the parent   (substrate), but Pre-Greek does not descend from "substrate". Similarly, American English isn't a descendant of English, it's a subvariety. So an  value has to be given. This is the only ancestor given in the module; an etymology language only needs an ancestor if it in turn is the ancestor of a regular (non-etymology) language.

Writing this note for DTLHS mainly, who removed the  for   (Proto-Oghuz), and because the discussion on this issue was held in Discord. User:KevinUp, Crom daba, Victar, Surjection, and I were involved. — Eru·tuon 05:52, 14 March 2019 (UTC)
 * Indeed, we cannot rely on the  field for ancestors because it doesn't really make sense for some of those languages. That doesn't mean it couldn't be changed to be that way, but that requires wider changes and the   field is the only proper solution right now. — surjection ⟨?⟩ 11:42, 14 March 2019 (UTC)

Transcription of Proto-Norse
Can someone fix so that transcriptions don’t show up when having a Proto-Norse reconstruction with Latin letters within t:desc, t:m etc.?Jonteemil (talk) 18:01, 14 March 2019 (UTC)
 * ✅. Just had to add  to the scripts for Proto-Norse. — Eru·tuon 20:31, 14 March 2019 (UTC)
 * This doesn't seem like the right way to go. Proto-Norse was never written in the Latin script, so why do we have reconstructions in Latin script? Would we have reconstructions for Gothic, OCS or Ancient Greek in Latin script? —Rua (mew) 20:33, 14 March 2019 (UTC)
 * Adding Latin to the list of scripts is not meant as a declaration that Proto-Norse should be written in Latin script, only as an acknowledgement that it is and that the modules have to know that fact or they will generate a transliteration for a Latin-script word and add rune-specific classes to it that can make it display with strange fonts for those with rune-appropriate fonts installed. If Proto-Norse shouldn't be written in Latin script, someone can go replace Latin script with runes or move it to the transliteration parameter, or whatever is necessary. — Eru·tuon 20:40, 14 March 2019 (UTC)
 * Now it shows up in Category:Proto-Norse language, which certainly does seem like a declaration that Proto-Norse can be written in that script. —Rua (mew) 20:48, 14 March 2019 (UTC)
 * Unfortunately language categories can only reflect our actual language data, which in turn is dictated by practical considerations and not by various other theoretical ideals. (It is also impossible at the moment to have the family tree simultaneously display Scots as the descendant of Northern Middle English and Northumbrian Old English and display Northern Middle English and Northumbrian Old English as subvarieties of Middle English and Old English respectively, as would be more accurate than displaying Scots as the descendant of Middle English and Northumbrian Old English and Northern Middle English separately.) If you have another solution to the problem of Old Norse written in Latin script being displayed with Runic fonts and having transliteration added to it, please tell me. — Eru·tuon 21:22, 14 March 2019 (UTC)
 * I think Rua already alluded to the solution, which is to have reconstructions use runic script. —Μετάknowledge discuss/deeds 21:26, 14 March 2019 (UTC)
 * Sorry, I was wrong. I realize what should be done is to move the Latin script to the transliteration parameter. I'll undo my edit. — Eru·tuon 21:57, 14 March 2019 (UTC)

The reason why the reconstructions are in the Latin script is because Svensk etymologisk ordbok have them in Latin characters. Also, I unfortunately don’t know which rune correspond to which letter.Jonteemil (talk) 23:15, 14 March 2019 (UTC)
 * You should put Latin-script versions in the transliteration parameter (tr or tr1, tr2, etc. depending on the template). They will be tracked in Category:Proto-Norse terms needing native script and someone can add the Runic version. The current practice seems to be that reconstructed Proto-Norse terms are rendered in Runic script (see Category:Proto-Norse lemmas, which includes some terms in the Reconstruction namespace). — Eru·tuon 23:59, 14 March 2019 (UTC)
 * Ah, that makes sense!Jonteemil (talk) 16:11, 15 March 2019 (UTC)

IP Ban
hello!

this is not a constructive post. the constructive one was denied bc of specific spammer habits. here it is: hello! anyone considered an etymology based on "Magog" https://en.wikipedia.org/wiki/Gog_and_Magog on the "demagogue" discussion page.

obviously, my ip is banned. the reason: https://de.wikipedia.org/wiki/Benutzer:Baumfreund-FFM/R%C3%BCckblick#Administrative_Beitragszahlen_zum_Jahreswechsel_2016/17_(31._Dezember_2016) deletes 24thousands entries per year. at 240 work days, thats 100 per day. on a 10hrs day its 10 per hour. this guy slaughters one entry after the other. every 6minutes. hour for hour, day for day, year for year. my entry the other day impressed him so much that he woke up and banned me. that happens only 900 times a year due to him. only 3 times a day. day for day, year for year.

because its not possible to slaughter the entries on wikipedia plus the ones on wiktionary, these ip bans are very important to keep the wikis free. free in the definition of "empty".

and yes: i dont know if the grease page is the appropriate page for my defacement here. instead of "to deface" there is a free spot on the wiktionary synonyms page of "to grease".
 * First of all, actions taken at any other wiki have no effect on Wiktionary, so there is no IP ban involved. If there were, you would not be able to post any message, and you obviously just posted here. The message you got is from an abuse filter. Abuse filters are automated tests that the system runs while processing your edit to look for spam and vandalism. The abuse filter in question was created years ago, so it has nothing to do with you. I won't go into details, but the reason you triggered the filter had to do with the unnecessary URL you included in your edit: if you had written  or Gog and Magog instead of , your edit would have had no problems. It just happened to fit a pattern that is almost never found except in edits by spambots. Sorry for the trouble.
 * As for your question: the derivation from an Ancient Greek term that was presumably once in actual use for demagogues is simple and obvious, so why try to dig up cryptic biblical references to enemies in prophecies? Chuck Entz (talk) 01:25, 16 March 2019 (UTC)

Catfix not working anymore
The fixup of categories to add language tags and section links isn't working anymore on Category:Old Dutch lemmas. —Rua (mew) 19:28, 15 March 2019 (UTC)
 * Fixed. — Eru·tuon 19:37, 15 March 2019 (UTC)

Requesting change to template "langname-mention"
Hi, can someone change so that it displays only the name of the language when the third parameter is a hyphen? For some reason, if the third parameter is a hyphen, it treats it literally as a hyphen rather than an empty string, which isn't the behaviour of other templates. --Florian Blaschke (talk) 01:28, 16 March 2019 (UTC)
 * Why are you using this template? What purpose does it serve that (or ) would not be better for? —Μετάknowledge discuss/deeds 02:54, 16 March 2019 (UTC)
 * It was created after a proposal of mine. It is for use in discussions, where or  are not appropriate. --Florian Blaschke (talk) 22:49, 19 March 2019 (UTC)
 * Done. — Eru·tuon 22:58, 19 March 2019 (UTC)
 * Thanks a bunch! --Florian Blaschke (talk) 23:08, 19 March 2019 (UTC)

CAT:E lots of 'em, xme no longer valid
Someone removed a language code causing lots of errors. Benwing2 (talk) 14:46, 16 March 2019 (UTC)
 * , it's better to do as much of the moving as possible before changing up a code so that you can avoid this. —Μετάknowledge discuss/deeds 15:39, 16 March 2019 (UTC)
 * Huh, I thought I got most of theses. Thanks, I'll fix them now. -- 15:47, 16 March 2019 (UTC)

Spanish words with a dot
Hey all. Can someone make a list of all Spanish entries containing a dot? I have a feeling we have lots of incorrect abbreviations around here - S.T.D for example should be S. T. D.. We have Category:Spanish terms spelled with ., which is underpopulated and pretty useless. --I learned some phrases (talk) 08:44, 18 March 2019 (UTC)
 * User:I_learned_some_phrases/Spanish_Dots this work for you? Also, I hate when we have spaces in acronyms/abbreviations/initialisms. - TheDaveRoss  14:27, 20 March 2019 (UTC)
 * Hey Dave, that is just fine. If someone wants to add some to Category:Spanish terms spelled with ., they may. I doubt I'll do it. --I learned some phrases (talk) 17:00, 29 March 2019 (UTC)

Portuguese greenlinks
Plurals ending in -ais of adjectives ending in -al are using the template rather than. Ultimateria (talk) 22:57, 19 March 2019 (UTC)

Colour table templates
In the Template:table:colors subpages, do we have a standard for dealing with multiple terms for one colour in a language? If not, let's pick one and document it. Looking at German for example (Template:table:colors/de) we have inconsistencies within the one template (some with a second colour in brackets, some with spaces between terms, some with commas between terms). -Stelio (talk) 14:10, 20 March 2019 (UTC)

[POLL] Further cleaning up form-of templates
Our handling of form-of templates is completely inconsistent. Some (the majority) use, with either a capital or lowercase letter at the beginning of the template text (depending on the template) and no trailing period, while a significant minority use (formerly ), with a capital letter at the beginning of the template text (unless 1 is used) and a trailing period (unless 1 or dot is used). For example, has a capital letter and period, while  has a capital letter without a period and  has a lowercase letter without a period. I argued above that all such templates should have a capital letter and period in English, but a lowercase letter without a period in other languages, for the following reason:
 * English is fundamentally different from foreign languages because the definitions of English terms are paraphrases using other English terms (normally full sentences or long phrases), while the definitions of foreign terms are English equivalent terms (often single words). For example, the definition of is written as follows:
 * Cloth-covered frame used for protection against rain or sun.
 * while the definition of is written as follows:
 * umbrella
 * Note the difference in formatting. This is fairly consistent across Wiktionary and is the reason I remove final periods when they occur in Russian definitions. For this reason I think the use of capital letters and periods in templates like should be different for English vs. foreign languages: Capital letter and period in English, lowercase letter and no period in foreign languages.

User:Sgconlaw and User:-sche agreed with me, User:Fay Freak appears to agree, while User:Rua disagrees. I'd like to take a poll to see what people think: My personal feeling is I'd be fine with either #2 or #3 and probably OK with #6 as well; I feel more strongly about not having a trailing period or capital letter in foreign languages than the exact formatting in English. Benwing2 (talk) 21:29, 20 March 2019 (UTC)
 * 1) Leave everything the way it is, with all the inconsistencies.
 * 2) Be consistent, using a trailing period and capital letter for English, and no trailing period or capital letter for other languages.
 * 3) Be consistent, using a capital letter but no trailing period for English, and no trailing period or capital letter for other languages.
 * 4) Be consistent, the same way across all languages, using a trailing period and capital letter everywhere.
 * 5) Be consistent, the same way across all languages, using a capital letter but no trailing period everywhere.
 * 6) Be consistent, the same way across all languages, using no trailing period or capital letter everywhere.
 * BTW don't worry too much about technical issues involving changing the way templates handle trailing periods, I'm pretty sure I can figure out a way to do a bot run to automatically fix whatever we decide. Benwing2 (talk) 21:31, 20 March 2019 (UTC)
 * Consistency across languages makes more sense I think. Why would the exact same definition have one format in one language and another format in another language? Definitely 4-6. —Rua (mew) 21:38, 20 March 2019 (UTC)
 * #4. I don't mind the odd capital in non-Eng entries. There's also and co. – Jberkel 22:31, 20 March 2019 (UTC)

 * #4, with #2 as a backup if there's no consensus for #4. — SGconlaw (talk) 08:02, 21 March 2019 (UTC)
 * #4 is my preference too. -Stelio (talk) 08:52, 21 March 2019 (UTC)
 * Regarding the final dot, it must be kept in mind that it's much easier to add a dot than it is to remove it. Adding it means literally just typing a dot. Removing it means, which is much longer. —Rua (mew) 23:52, 21 March 2019 (UTC)
 * I personally hate #4 in that IMO the trailing period looks very wrong in non-English entries, which are full of short glosses, not full sentences. If we are to settle for the same across all languages, I'd much prefer #6. Also keep in mind that, after looking through all the form-of templates, the majority of them don't have either a capital letter or period. I have also found the automatic capital letter/period very confusing and error-prone when trying to format entries properly with additional text. Benwing2 (talk) 20:06, 22 March 2019 (UTC)
 * I think 6 has my preference as well. —Rua (mew) 16:51, 29 March 2019 (UTC)

Templates/modules not minding what namespace they're in again
In e.g. [//en.wiktionary.org/w/index.php?title=Citations:recensent&oldid=52080856 this revision] of Citations:recensent, the and  both put the page into categories. In the past, for at least a while, this was not the case and categories only got added to pages in certain namespaces. (I seem to recall seeing this issue pointed out twice before and it being fixed at least one of those times.) Is this something to be fixed, or would checking for namespace be too expensive Lua-memory-wise / would it be preferable to make checking categories for pages from unapproved namespaces a occasionally-recurring TODO task? - -sche (discuss) 05:29, 21 March 2019 (UTC)
 * I guess Module:etymology and Module:labels will have to be modified so that they don't add categories in the Citations namespace. They use Module:utilities to format categories and the set of namespaces in which Module:utilities adds categories includes Citations, but the same list doesn't work for all modules; needs to be able to add categories to the Citations namespace, but  and  shouldn't. — Eru·tuon 05:45, 21 March 2019 (UTC)
 * Ah, right, I remember now that that was an impediment before. Well, as to etc, it's not just the Citations: namespace that they shouldn't categorize in (or, alternatively, shouldn't be used in and would need to be cleaned up out of): they shouldn't categorize in most namespaces, it's only a small list of namespaces where they should categorize (mainspace, Reconstruction:, maybe Appendix:; where else?). - -sche (discuss) 07:14, 21 March 2019 (UTC)
 * Right, but there's no need to worry about any other namespaces because Module:utilities already disables categorization there. The only namespace in which categorization needs to be manually disabled (that is, in which Module:etymology and Module:labels should not call the  function from Module:utilities) is Citations. (I suppose it would be more straightforward or understandable to send a custom list of allowed namespaces to Module:utilities, but that would require changes to the categorization function.) — Eru·tuon 07:39, 21 March 2019 (UTC)
 * Actually, maybe it would be easier to have to enable categorization in the Citations namespace than to disable it. Most likely most templates or modules want to avoid categorization in the Citations namespace. — Eru·tuon 08:06, 21 March 2019 (UTC)

New rare initial for Khmer is required
Hi. Khmer ហ្ស៉េន "zen" can't be transliterated. Getting the error "Lua error in Module:km-pron at line 269: Error handling initial ហស៉.". Can anyone with Lua skills, please add this new initial ហ + ស pronounced as /z/? It must be rare. It should follow the class of the initial consonant ហ. The whole term with diacritics should transliterate as "zeen", if using, for example. --Anatoli T. (обсудить/вклад) 23:43, 21 March 2019 (UTC)
 * Calling Lua experts as well. --Anatoli T. (обсудить/вклад) 23:44, 21 March 2019 (UTC)

I see ហស (class 1) and ហស៊ (class 2) already have /z/ in consonant table. Are you sure that ហស៉ is valid? (misspelling?) And which class is it? --Octahedron80 (talk) 23:57, 21 March 2019 (UTC)
 * : Yes, interesting, thank you. already produces "zeen", which is already "a-series". It must be invalid then. I can't understand the module well. --Anatoli T. (обсудить/вклад) 00:12, 22 March 2019 (UTC)

sort_key for Northern Tepehuan
Could someone add the following to the entry for Northern Tepehuan at Module:languages/data3/n?

sort_key = { from = {"á", "é", "í", "ó", "ú"}, to  = {"a", "e", "i", "o", "u"}},

--Lvovmauro (talk) 05:30, 22 March 2019 (UTC)
 * Added. DTLHS (talk) 05:46, 22 March 2019 (UTC)

Substitutable params in documentation template data?
Do you (or does anyone) know how to transclude text inside of the tag that holds template data for documentation? It doesn't appear to work at all. I tried putting the start tag, end tag and contents in three different templates but that doesn't work either. This appears to mean that there's no way to templatize the template data and share it across the documentation of multiple similar templates (e.g. the form-of templates). If so, this really sucks as it means we have to copy the entire template data on each documentation page. (In general the template data appears badly thought out, e.g. why does it have to be visible on the doc page? Why can't it live on another page?) Benwing2 (talk) 01:46, 23 March 2019 (UTC)
 * The tag magic word works: . — Eru·tuon 02:26, 23 March 2019 (UTC)
 * Thanks! Benwing2 (talk) 12:34, 24 March 2019 (UTC)
 * Do you know if you can stick the template data inside of  tags and still have it work? That way it won't clutter up the visible documentation. Benwing2 (talk) 03:54, 25 March 2019 (UTC)
 * That's beyond my knowledge. I haven't worked with TemplateData much. — Eru·tuon 04:36, 25 March 2019 (UTC)
 * OK, thanks. Benwing2 (talk) 04:48, 25 March 2019 (UTC)

Why can't I save my page?
Why can't I save my page? 194.228.13.62 13:16, 23 March 2019 (UTC)
 * I have tried to save my page, but table with

This action has been automatically identified as harmful. Unconstructive edits will be quickly reverted, and egregious or repeated unconstructive editing will result in your account or IP address being blocked. If you believe this action to be constructive, you may submit it again to confirm it.

A brief description of the abuse rule which your action matched is: probably vandalism. If you believe your edit was flagged in error, you may report it on the Wiktionary:Grease pit.

still shows. Why can't I JUST save my page and add it here? WHAT IS WRONG??? 194.228.13.62 13:17, 23 March 2019 (UTC)
 * We have abuse filters to prevent vandalism and badly formatted entries. They sometimes catch formatting errors. Every month or so such a filter catches an error in something I am trying to save. For me it is usually unmatched brackets. DCDuring (talk) 13:27, 23 March 2019 (UTC)
 * And are you able to save my page? I'm unable to add the text here, because it disallows me to do so. I can't even add the name here. 194.228.13.62 13:30, 23 March 2019 (UTC)
 * Spell it out - one letter at a time. SemperBlotto (talk) 14:23, 23 March 2019 (UTC)
 * you can see which edits by a particular user have triggered abuse filters here.
 * it looks like your entry is flagged due to the combination of characters which form the word (i.e. no vowels mostly). I created the page (čtvrthrst) based on your first edit attempt, now that it exists I think you should be able to modify it if necessary. Sorry for the inconvenience and thanks for contributing despite the hurdles. - TheDaveRoss  15:46, 23 March 2019 (UTC)
 * Thanks alot! 194.228.13.62 15:48, 23 March 2019 (UTC)
 * Lol, our abuse filters blocked Czech for looking too much like gibberish. —Rua (mew) 16:02, 23 March 2019 (UTC)

Does anyone have a better solution for this ugly code?
In Module:fy-adjectives there are a few lines like this: The idea is to first set the value to an empty table if it's currently, then append a new value to either that empty table or the existing one, depending on which was the case. It's rather ugly code but I can't think of something elegant at the moment. Does anyone have an idea for nicer code? —Rua (mew) 21:37, 23 March 2019 (UTC)
 * You can use Module:auto-subtable. — Eru·tuon 21:46, 23 March 2019 (UTC)
 * Thank you, I figured someone would have made a nice solution already. Is there a reason why the metatable is removed at the end? —Rua (mew) 21:51, 23 March 2019 (UTC)
 * Removing before  is probably necessary, because the code in   is checking whether fields are   . And I've run into weird bugs when the metatable is left on the table, so I figure it's generally good to remove it by default after the code that actually needs it. — Eru·tuon 22:03, 23 March 2019 (UTC)

edit request: MediaWiki:Common.css
These are my proposed changes. They mostly have to do with CJK and consistency, although I also did minor cleanup elsewhere. —Suzukaze-c◇◇ 22:14, 23 March 2019 (UTC)
 * I looked at it, but was kind of overwhelmed by the volume of changes. It would be easier to merge changes bit by bit. I could start with the style changes at least, but I don't understand all of the CJKV stuff. — Eru·tuon 03:52, 27 March 2019 (UTC)
 * Thanks. You could look at the history of User:Suzukaze-c/common.css, although it might still be unclear. I'd be glad to answer any questions. —Suzukaze-c◇◇ 05:56, 27 March 2019 (UTC)
 * Could I bother you to review and add the rest? —Suzukaze-c◇◇ 04:54, 3 April 2019 (UTC)
 * Thanks for bothering me. I've merged some more changes, and now I'm coming to some of the CJKV changes that I'm not sure about. Like, do other people agree that bolding should be re-enabled? — Eru·tuon 19:09, 3 April 2019 (UTC)
 * In regards to bolding, admittedly it has not been discussed. However, I've seen one fellow "fix" .Jpan using personal JS (while I was stalking Recent changes), and it has also been brought up here. I also thought of . I would really like to know the original reason why bolding was disabled and replaced with enlargement of text; the comment claims that "fonts are really big in Japan", but I haven't seen this practice anywhere else. In traditional Japanese typography, "normal" text is typeset in a serif font, while "bold" text is set in a heavier sans-serif font (太字), but that wouldn't really work out here, when the body uses a sans-serif font. Alternatively, we might use 圏点 or underlining. Perhaps opening a more open discussion first would indeed be more appropriate.
 * —Suzukaze-c◇◇ 19:56, 3 April 2019 (UTC)
 * I think the original reason why bolding was disabled was due to MS PGothic having only one weight. Now we've eliminated that font, we can restore the normal bolding. --Dine2016 (talk) 03:18, 4 April 2019 (UTC)
 * Maybe, but it was done for Chinese as well. —Suzukaze-c◇◇ 03:35, 4 April 2019 (UTC)

Bot Task- Remove All Empty Parameters
Every time a template gets converted to use Module:parameters, CAT:E fills up with {Fill-in-theblank} is not used by this template" errors for empty named parameters- the parameter name followed by "=", and nothing else. I'm assuming these are there in the first place because people are either substing templates that have all the parameters present so they can be filled in by hand, or people are copypasting the empty template into entries and customizing it for each entry. These parameters do nothing and consequently are ignored by both the system and the editors.

This seems to me like a wholly preventable problem. It should be fairly simple to remove all of these by bot without any ill effects. It would no doubt be time-consuming up front, but would save as much or more time that would otherwise be spent cleaning up module errors later on- errors that temporarily break the entries and make a bad impression on site visitors until they're fixed.

A possible second step would be to add an abuse filter once they're gone to remind contributors not to leave empty parameters (I can see how this might interact poorly with the way preload templates are used for new entries, though).

Anyone interested? Chuck Entz (talk) 16:11, 24 March 2019 (UTC)
 * First of all, using parameters in a template should not throw an error, there is no reason for that not to fail gracefully from a presentation perspective. Categorizing them for cleanup is one thing, having a big, red error message show in place of what might otherwise be a perfectly acceptable template output is just silly. We should design modules to ignore unexpected parameters instead, and only give errors when parameters are missing or of the wrong type.
 * Second, I think your idea to remove blank labeled parameters (and empty parameters when applicable) is sound, as long as nobody can provide instances when they are beneficial.
 * Third, sure I would be happy to run a bot to do some cleanup once the specifics are nailed down. - TheDaveRoss  16:40, 24 March 2019 (UTC)
 * My apologies, in this case the error messages about dot= arose as follows: (1) form_of_t in Module:form of was allowing but ignoring 'dot'; (2) I created a tracking category to find all uses of 'dot'; (3) I cleaned them up; (4) I disallowed 'dot'; (5) some errors ensued because the tracking category I created failed to track cases with empty dot=. As these are only a few, I've been cleaning them up as they come, but if you want I'll temporarily add 'dot' back as an allowed param and reenable the tracking for empty dot=, and then clean them up over several weeks as the site gradually reprocesses all the pages. Benwing2 (talk) 18:27, 24 March 2019 (UTC)
 * I went ahead and added 'dot' back and fixed tracking for empty dot=. Benwing2 (talk) 02:19, 25 March 2019 (UTC)
 * That might take a while. I noticed that all templates invoking Module:form of seem to end in, so I went through the dump and gathered instances of templates ending in  , gathered the templates that include   , and created this list, if you can use it for a bot run. — Eru·tuon 03:59, 25 March 2019 (UTC)
 * Thanks, this is helpful. Most of these are using the alt_form_of_t form-of templates, which do support dot= and by default add a final period, but I have the full list of both types of templates, so I can sort things out. Benwing2 (talk) 04:08, 25 March 2019 (UTC)
 * Whoops, the list may be missing a few entries because I didn't trim the template names. I've added trimming of ASCII whitespace and am regenerating the list. Not sure if I need to handle Unicode whitespace too, which would be more complicated. [Edit: Never mind, none were missing.] — Eru·tuon 04:38, 25 March 2019 (UTC)
 * OK, cool. Benwing2 (talk) 04:49, 25 March 2019 (UTC)
 * I disagree that we should just ignore unrecognized params, vs. throwing an error on unrecognized params, because these unrecognized params generally represent mistakes (particularly typos). If we display an error, the person who made the error will generally see it and fix it; otherwise they won't know they made a mistake, and the error may never be fixed, even if it sits in a silent tracking category. As an example, the *fix templates used to ignore and silently track cases where the user accidentally wrote 't', 'tr', etc. (in place of 't1'/'t2'/'t3', ..., 'tr1'/'tr2'/'tr3'/etc.). Before I turned on the code to make these cases an error, I went through and manually emptied the categories, which was a lot of work because there were over 1,000 such cases. This could not be done by bot because there was no way to automatically determine which of 't1', 't2', 't3', etc. was correct. By throwing an error, we ensure that such incorrect uses don't accumulate. Benwing2 (talk) 18:34, 24 March 2019 (UTC)
 * BTW you need to be careful about blithely removing all empty named params because there may be templates where such params are significant. For example, the various templates that formerly used used to recognize empty dot= to indicate that the default trailing period should be suppressed. When I converted these templates to use alt_form_of_t in Module:form of, I wrote a bot script to find all uses of empty dot= and convert them to nodot=1 (because having empty params be significant is very fragile and generally a bad idea); in this case removing them would have been incorrect. In general there's no way to know whether a given empty or blank param is significant except by analyzing the template or Lua code that implements the template in question. Benwing2 (talk) 18:39, 24 March 2019 (UTC)
 * I agree with your second point, which is what my third point was about. There will be times when it is not appropriate to remove them and we need to be conscious of that. Re your first point, having a big red error message in the middle of an entry (or many entries) is not a particularly elegant means to alert folks to their errors, especially when the error doesn't actually prevent the correct outcome from being presented. If I stuck a  into  but otherwise populated the necessary parameters correctly that needn't prevent the quote from displaying at all. In fact some (possibly) useful information might be included. It is a minor point, but I don't like showing errors in production environments unless they are unavoidable. -  TheDaveRoss  22:06, 24 March 2019 (UTC)
 * Yeah, I understand your point, I just don't see any other practical way in general of alerting people that they made a mistake (since they're almost always in fact mistakes, usually a misspelling of a parameter). Having an error on a lot of pages is definitely a bad idea but usually it's only a few, and they get fixed quickly. Benwing2 (talk) 22:50, 24 March 2019 (UTC)
 * I suppose, ideally, the error would show on the preview and be suppressed once the page is saved. I am not sure if Modules can tell if they are in a preview context or not, perhaps some clever use of  could accomplish this. -  TheDaveRoss  23:07, 24 March 2019 (UTC)
 * on Wikipedia uses  to determine if it is in preview mode and generate different text, but it's maybe simpler to generate the same text but use the   class to hide it, as, , , and  do. — Eru·tuon 23:24, 24 March 2019 (UTC)
 * It's a good idea to track the unrecognized parameters so that they can be cleaned up when a template is first converted to use Module:parameters. The module errors can be turned on when no instances have unrecognized parameters. To find unrecognized parameters, it's not reliable to use a tracking template when lots of widely transcluded modules are being edited: pages will update slowly and "what links here" page for the tracking template will take a while to fill up. (That's been happening lately because of all of Benwing2's work. I think it would be a good idea to make fewer edits to widely transcluded modules, by using sandbox modules for instance. That's the practice often taken on Wikipedia.) Dump analysis is a more reliable method. I do have a program to grab all instances of a template for easier analysis, if that would be useful. — Eru·tuon 20:01, 24 March 2019 (UTC)
 * Generally I do use userspace modules. Sometimes I've not but I'll be better about that in the future. As for dump analysis, that is a good idea; I've been doing all my work using refs and categories but it looks like the dump is only 600-800 MB compressed (I expected more like 10+ GB based on working with Wikipedia dumps). BTW do you have experience working with Toolforge? If so any comments as to how difficult it is to set up, how reliable, etc.? Benwing2 (talk) 21:38, 24 March 2019 (UTC)
 * Yeah, the Wiktionary dump is a lot smaller than the Wikipedia one. At one point I considered searching the Wikipedia dump for something or other, but gave up when I saw how huge it was.
 * I haven't used Toolforge, but Dixtosa created a tool for finding entries with a particular suffix so maybe he would have some comments on it. After the recent discussion about replacing with a toolserver, I've been thinking seriously about trying to devise a toolserver that uses one or more of my dump analysis programs, for instance one that would allow people to get or search all instances of a particular template, or to find all instances that use a particular parameter. That could be complicated, though, and I don't have any experience with web servers. — Eru·tuon 22:21, 24 March 2019 (UTC)
 * I did my dissertation work partly on Wikipedia; the dump was around 9 GB bz2-compressed at the time, maybe 30 GB uncompressed, and I imagine it's grown significantly since then. Processing it took awhile, and doing things like sorting the entries wasn't easy on a 16 GB laptop, since it couldn't fit all in memory. Benwing2 (talk) 22:34, 24 March 2019 (UTC)
 * The latest dump is 6.34 GB uncompressed. I don't load it all at once into memory but I use an XML iterator which is fast enough for my purposes. DTLHS (talk) 23:31, 24 March 2019 (UTC)
 * The all-revisions version is big, the current-revisions version is smaller. In other good news, the toolserver has access to replica databases, so you don't have to parse xml dumps you can just query the actual MW database structure for the vast majority of tasks. They are also much more up-to-date. - TheDaveRoss  23:46, 24 March 2019 (UTC)
 * Haha, no I'm not going to to 5 million queries for each report I want to run. The things I actually care about are most definitely not captured in the "MW database structure". DTLHS (talk) 23:51, 24 March 2019 (UTC)
 * For sure it is not useful in every case, but in this case (finding empty parameters for particular template calls) a single regex query could easily return a list of all pages which match. Further you can create tables on toolserver, so things like capturing a complete list of all titles by language can be done once and then leveraged moving forward, etc. - TheDaveRoss  00:07, 25 March 2019 (UTC)

Tensification of Korean voiceless consonants
takes the parameter “com=“ to add gemination/tensification of certain consonants but they seem to only work with voiced consonant letters, such as ㄱ, not with their voiceless counterparts, such as ㅋ. I need to make respelled as “까페” with |com=0 without the actual respelling. Does it sound reasonable? Can it be done? --Anatoli T. (обсудить/вклад) 09:43, 26 March 2019 (UTC)
 * 카페 and 까페 are pronounced and written differently. Just try googling it. There is no phonological process to turn ㅋ into ㄲ. — T AKASUGI Shinji (talk) 09:50, 26 March 2019 (UTC)
 * Is it so rare? seems to be also pronounced as "꺼피". What do you suggest? Just a complete respelling, as I did it in ? Re: googling - I can't read well in Korean and it's very little on this topic in English. --Anatoli T. (обсудить/вклад) 13:00, 26 March 2019 (UTC)
 * It is a different way of pronouncing foreign words rather than a phonological process. You can find 꺼피 on Google. The accepted mismatch (unofficial though) is pronouncing ㅅ as ㅆ, which we have talked about in User talk:TAKASUGI Shinji/2015. — T AKASUGI Shinji (talk) 00:57, 27 March 2019 (UTC)

Proto-Chatino
I'd like to request that a language code be added for Proto-Chatino. Chatino already has the family code, so the protolanguage should be   --Lvovmauro (talk) 07:55, 28 March 2019 (UTC)
 * Added. DTLHS (talk) 19:11, 3 April 2019 (UTC)

Text substitution for Western Higland Chatino
Could someone add the following to the entry for Western Highland Chatino at Module:languages/data3/c? (I hope I have the formatting right.)

entry_name = { from = {"[¹²³⁴⁵]"}, to  = {}}, sort_key = { from = {"á", "é", "í", "ó", "ú"}, to  = {"a", "e", "i", "o", "u"}},

--Lvovmauro (talk) 09:00, 28 March 2019 (UTC)
 * Added. DTLHS (talk) 15:43, 28 March 2019 (UTC)

Cleaning up form-of template shortcuts
In the process of cleaning up the form-of templates, I noticed that the current situation w.r.t. shortcuts and aliases of the templates is an utter mess. Some issues:
 * 1) Total inconsistency in the way the shortcuts are named.
 * 2) Most of the shortcuts and alternative names aren't even documented.
 * 3) Misleading or confusing names: e.g. (1)  is a bad shortcut for  because  also exists and is different (it is used in etymology sections instead of definitions); how would we know which one is being shortened? (Below I suggest  instead.) (2)  is a bad alias for  because the example of  vs.  suggests that  should be the etymology-section equivalent of, rather than just an alias.
 * 4) Incorrect names:  is an alias for  but is an incorrect name because the template displays "neuter singular", and plain "neuter" isn't the same as "neuter singular" (e.g. we distinguish  vs. ). Similarly for, an alias of . Also,  is an alias of  but everywhere else we distinguish "foo form of" from "foo spelling of".
 * 5) Unnecessary shortcuts: e.g.  is one character shorter than . Why bother?
 * 6) Aliases that are longer than the original long-form name, e.g.  as an alias of.

In general I think we ought to have one canonical long-form template name, and one single shortcut, with consistent shortcut naming. Having multiple aliases around is a maintenance headache, and IMO doesn't help editors if the names are near each other in the alphabet, as the correct names can easily be located using auto-complete.

The convention I've followed below for shortcut naming is if the long form is Template:Foobar of with a single word preceding "of", the short form will be Template:fooof; but if the long form is Template:Foobar bazbat of with multiple words preceding "of", the short form will be Template:foobaz. Furthermore I try to keep the shortcut no more than 6 or so characters, if possible.

In the table below I include all the non-language-specific form-of templates with aliases, and list all the canonical names (boldfaced) and the aliases, along with the corresponding canonical template, the number of uses and the suggested disposition.

In general I've followed the following principle when proposing to eliminate a template alias: If it has < 1000 uses, just delete it once it's orphaned; but if it has >= 1000 uses, deprecate it the way we've deprecated high-use templates like. The threshold for deprecation is debatable, and maybe 1000 is too low. Of the five aliases below that are above the threshold, three ( with 1136 uses, with 1627 uses,  with 1338 uses) are just above the threshold and could maybe be deleted without deprecation. The other two ( with 19464 uses and with 24858 uses) are far above it and should be deprecated, not deleted; or alternatively, keep them as special cases since there are so many uses.

A few debatable issues:

Benwing2 (talk) 03:53, 29 March 2019 (UTC)
 * 1) Of the three templates I mention above with #uses a bit over 1000 ( with 1136 uses,  with 1627 uses,  with 1338 uses) that I'd like to eliminate, should we deprecate or delete them once they're orphaned?
 * 2) Should we deprecate  (19464 uses) ->, or keep as a special case due to the high number of uses?
 * 3) Similarly should we deprecate  (24858 uses) ->, or keep as a special case due to the high number of uses?
 * 4) Should we orphan and delete  (30 uses) ->, or keep because it begins with a different letter and might not be so easy to locate with autocompletion? Similarly for  and ?

 * Wow, great job. Just a small comment: I feel that, , etc., rather than , , etc., would be clearer. — SGconlaw (talk) 04:06, 29 March 2019 (UTC)
 * I agree with SGConlaw, this is a great effort, I can get on board with it, and I think spaces within the abbreviated forms would be preferable. - TheDaveRoss  13:05, 29 March 2019 (UTC)
 * I think should go. It was once different from, but they've been aliases for years now.
 * Some of the other ones you listed are also pretty much special cases for, if categorization is not considered:
 * →
 * →
 * →
 * →
 * →
 * →
 * →
 * →
 * →
 * →
 * →
 * →
 * →
 * It's more maintainable if we have one template to specify inflections, rather than one general one and a bunch of specific cases that the general one also covers. The length or difficulty in typing it is pretty much moot because inflected forms are generally created through WT:ACCEL or with a bot anyway. It's only the ones that aren't inflections, but are added manually by editors, that need shortcuts. As for the categories, I'm of the opinion that inflection-of templates should never categorise, that is the task of, and should be done according to the needs of the language. I remember when once categorised, and it was awful. So even if we don't deprecate and replace them with , then we should still at least move towards removing the categories from them.
 * As for, I think it should be renamed. It's only used for Danish, so it should be . At the same time, it's really just another specialised inflection template, so it could also just be replaced with . —Rua (mew) 17:07, 29 March 2019 (UTC)
 * Overall I agree with you, and any issues with length could be made better by creating an alias or . But others may disagree and argue that the most common/basic inflectional form-of templates should stay. I also agree with renaming ; I'll go ahead and do that if no one objects. What do you think however of the idea of making the renamings I present above? Should the short forms look like  or ? And for the ones that don't end in "of", should we have  or, and  or ? Benwing2 (talk) 01:24, 30 March 2019 (UTC)
 * My preference is for the versions with spaces, that is, rather than . I think the former are more understandable. Otherwise, I have no objection to the proposed renamings. Thanks. — SGconlaw (talk) 01:28, 30 March 2019 (UTC)
 * I like spaces in the names too. — Eru·tuon 01:32, 30 March 2019 (UTC)
 * I am for removing all the names not containing “of” and prefer having a space before every “of”. Hence I think there should not be but, and  and  should not exist but , so also , whereas for the parallelism the shortcut for  should be , right, and so , , and I think I have said enough that you get my idea.
 * Furthermore I accede to the view that all the inflection-of templates should never categorize, and I assent to the said merges into . Fay Freak (talk) 02:24, 30 March 2019 (UTC)
 * My only issue is that is kind of long for a shortcut. Benwing2 (talk) 03:15, 30 March 2019 (UTC)
 * So you'd prefer over,  over , etc. Benwing2 (talk) 03:16, 30 March 2019 (UTC)
 * See Category:Form-of templates. At the top is a table of all the non-language-specific form-of templates that I know of, along with their properties, including which (if any) category the page is added to. Note that most of the inflection templates don't categorize; the primary exception is the participle templates. In this case, this is arguably correct; the headword is likely to just categorize into "LANG participles", and to get something more specific you might need the definition line. Benwing2 (talk) 04:35, 30 March 2019 (UTC)
 * I renamed to  and made it assume da automatically. Benwing2 (talk) 05:04, 30 March 2019 (UTC)
 * You can see from Category:Form-of templates how utterly random the punctuation of the various templates is:  vs.   vs.   etc. Benwing2 (talk) 05:43, 30 March 2019 (UTC)
 * Yes. I'm more used to, but I'll get used to whatever is chosen. — Eru·tuon 19:03, 31 March 2019 (UTC)

Cleaning up lang-specific form-of template shortcuts
There are hundreds of lang-specific form-of templates. Most of them are really junky and many should be deleted. For the moment I'll just bring up one template that is misnamed and has several shortcuts:

Here, I'm operating under the following principles:
 * 1) All language-specific templates should be prefixed by the language code.
 * 2) Macrons and other diacritics should be avoided in template names.
 * 3) The name of the short form is pending agreement on the general principles for naming these. Suggestions welcome.

Benwing2 (talk) 05:37, 30 March 2019 (UTC)

 * There is no principle to avoid macrons and diacritics in template names. The name is chosen according to what is the most readable or iconic, hence all diacritic distinctions, and macron-characters aren’t even hard to type – people should be gently pushed to use decent keyboard layouts. Particularly it does not unsettle Japanese editors who have to use IMEs anyway. It is all okay if there are redirects without the “special” characters. Fay Freak (talk) 16:43, 30 March 2019 (UTC)

 * Rename to Template:ja-kyūjitai spelling of / Template:ja-kyujitai spelling of / Template:ja-kyuujitai spelling of. —Suzukaze-c◇◇ 21:30, 30 March 2019 (UTC)
 * While I have no problem typing macrons, it's not so easy for others and requiring editors to use particular keyboard layouts is way beyond Wiktionary's scope. So my preference is for forms without macrons. That said, I did create with an accent, so I suppose I'm not entirely consistent in that myself. Perhaps the macronless version could be a redirect. —Rua (mew) 21:41, 30 March 2019 (UTC)
 * Hence I said, the macronless versions can be redirects. The editors are not required then to use particular keyboard layouts. Whereas editors who are used to write the “correctly written” names are not detracted. The correctly written names have to have a certain acknowledgement. Of course Löw’s books are etc. “Low” and “Loew” aren’t his names, are other people’s names: So if I look into Cat:Aramaic reference templates I recognize the name “Löw”, while the same would not be true for “Loew”. These aren’t even redirects because diaereses are not macrons. Where we see “macrons” they generally have the tinge of something “optional”, for in the original intentions of the originators of the Latin alphabet, lengths in a language having the vowels a,e,i,o,u, as Japanese are not designated, while the same optionality is not there in the relation “ö” to “o”, perhaps also not there for Hungarian – well then I don’t know whether Hungarian templates have to have diacriticless redirects but at least I know that they are correctly added under the diacritic names. So we find the names with diacritics in Cat:Hungarian reference templates – it’s perfectly natural and it would affront people to say otherwise “macrons and other diacritics should be avoided in template names.” It’s not specific to reference templates, if somebody pulls that argument, other templates are considered the same way. “kyūjitai” is not “kyujitai”. Fay Freak (talk) 23:23, 30 March 2019 (UTC)
 * I would really prefer to avoid macrons when possible. Note for example we have Template:vi-Nom form of and Template:han tu form of, not Template:vi-Nôm form of and Template:hán tự form of. There is no ambiguity when "kyujitai" is written instead of "kyūjitai". There's also a difference between transcriptions, which are always approximate and variable, and terms written in the original script, which is the case with Löw and Álgu. I also think there's a difference between R: templates with people's names, and templates with foreign terms in them. Benwing2 (talk) 01:01, 31 March 2019 (UTC)

Outcome of discussion?
All of you expressed a preference for having a space before "of" in the short form, and no one expressed the opposite preference, hence I will implement, , , , etc. instead of , , , , etc. What's a little less clear to me is short forms of the multi-word templates. Logically, I think you guys would prefer, , , instead of , , , is that right? will have to remain as such because "misspelling" is a single word, and I think will remain without a shorter form, because  is hardly much shorter. OK? Benwing2 (talk) 20:18, 31 March 2019 (UTC)
 * I agree with what you said here, spaces in all of the shortened multi-word templates. If nothing else it will make it simple to recall whether or not there is a space in a particular template, because the answer will be yes. - TheDaveRoss  12:03, 1 April 2019 (UTC)
 * I am in favour of separating "of" from the rest with a space, but I have no particular opinion on spaces in the rest of the name. —Rua (mew) 12:54, 1 April 2019 (UTC)

 * The only thing I'll add at this time is that IMO we should keep a redirect at because it's cheap and harmless and what some people (me) are used to typing... I don't care if you want to periodically change occurences of it to  (although, at that point, why not switch it to the full name?). - -sche (discuss) 15:30, 2 April 2019 (UTC)
 * Of should definitely be a separate word, but I'm unsure about whether or  is better. I guess I don't mind either form, perhaps with a slight preference for the spaced form. — SGconlaw (talk) 16:14, 2 April 2019 (UTC)

 * I do use neuter of which gives the wording "neuter singular of". I would like it kept. DonnanZ (talk) 16:31, 2 April 2019 (UTC)
 * I disagree. It shouldn't have a particular name and then display something else. —Rua (mew) 20:59, 2 April 2019 (UTC)
 * I seem to remember your dislike of shortcuts. DonnanZ (talk) 21:09, 2 April 2019 (UTC)
 * Ok? Did this somehow become personal? —Rua (mew) 21:11, 2 April 2019 (UTC)
 * I agree with Rua. - TheDaveRoss  22:38, 2 April 2019 (UTC)
 * Hmm, being forced to use more keystrokes is a disimprovement. DonnanZ (talk) 23:38, 2 April 2019 (UTC)
 * is the wrong name for a shortcut for this because "neuter of X" is not the same as "neuter singular of X". I have created as a shortcut of ; you can replace  with  which is shorter, or if you want I'll create something like . Benwing2 (talk) 02:52, 3 April 2019 (UTC)
 * I welcome infl of which I actually wanted. Swings and roundabouts. DonnanZ (talk) 09:14, 3 April 2019 (UTC)
 * OK, I finished the renames and deletions/deprecations. After renaming uses of  I left it as-is for now rather than deprecating it, per your request, although it isn't documented. Benwing2 (talk) 03:18, 3 April 2019 (UTC)
 * So just call it nsing of or something along those lines. Chuck Entz (talk) 03:21, 3 April 2019 (UTC)

How to properly append/insert a new entry in a new language to an existing page using pywikiot
I am using pywikibot with -appendbottom currently and providing '\n' which, however, renders as a string. This is the way suggested in the documentation for pywikibot's pagefromfile script. I've tried a couple of variations but nothing works properly. Is there is a way to insert the new entry in the proper alphabetical order? If not, how does one append the new entry with proper spacing to the end? Sinonquoi (talk) 12:40, 29 March 2019 (UTC)
 * I haven't used pywikibot in a long time, but I don't think pagefromfile has this functionality out of the box. Are you willing to do some coding? The method isn't complicated. - TheDaveRoss  13:02, 29 March 2019 (UTC)
 * Although I am not a coder primarily, if someone gives me an idea of what to do, I would be able to do it. Sinonquoi (talk) 17:03, 29 March 2019 (UTC)
 * It's not really necessary. If you just add the language section to the end of the page it will be cleaned up eventually to the correct format when I run my language section cleanup script. The formatting within the language section is much more important since that won't be touched. DTLHS (talk) 17:06, 29 March 2019 (UTC)
 * Appending to the bottom of the page is not the way you want to do it, unless you happen to be working on the language that comes absolutely last in sorting order. And even then, it's possible that the language section is already there and you end up with two sections for the same language Instead, you have to determine if the language isn't already on the page, and if not, find the appropriate place to insert the section. This is best done by parsing the wikitext, using a tool such as MWParserFromHell. Once parsed, you have the contents of the page in the form of well-structured Python objects rather than as a string, which is much easier to work with and makes it a lot easier to edit pages. —Rua (mew) 17:12, 29 March 2019 (UTC)
 * You can probably do it without the full parser package, just grab the whole wikitext, split by L2 section, check if yours exists, if not sort the sections and rebuild the page. if you are on IRC feel free to hop in #wiktionary if you want to talk about it. -  TheDaveRoss  17:17, 29 March 2019 (UTC)
 * You can't, it's not that simple and it's much less likely to break something if you just append to the end. DTLHS (talk) 17:22, 29 March 2019 (UTC)
 * But that leads to broken entries until someone else fixes them, which is not allowed. —Rua (mew) 17:26, 29 March 2019 (UTC)
 * We really need to develop a standard bot framework so everyone doesn't have to reinvent the wheel. I don't seem them as "broken", just unsorted. This is how many bots (such as SemperBlottoBot) have operated for many years. DTLHS (talk) 17:28, 29 March 2019 (UTC)
 * What languages are you all using? - TheDaveRoss  17:55, 29 March 2019 (UTC)
 * Um, English? —Rua (mew) 18:01, 29 March 2019 (UTC)
 * (I think he meant programming language :p ) Python, but I'd be willing to work in anything if we were collaborating and agreed on something else. Python is what the majority of existing wiki editing software is written in however. DTLHS (talk) 19:17, 29 March 2019 (UTC)
 * I thought he might mean that, but this is a dictionary... —Rua (mew) 19:53, 29 March 2019 (UTC)

 * Maybe it would work to go through each language header and add the new language section immediately before the first header that is greater than the language header you are adding, ignoring the Translingual and English headers (which should be at the top), otherwise at the end. The new language section should have  between it and any neighboring language sections. (This method assumes the language headers, except for Translingual and English, are in Unicode code point order.) — Eru·tuon 19:15, 29 March 2019 (UTC)
 * You need to take into account things that may be at the start or end of the page such as interwikis (yes we still have interwikis), hence, "not that simple". DTLHS (talk) 19:19, 29 March 2019 (UTC)
 * Ahh, I see what you're getting at. So it would be useful to have an "add new language section" function that deals with all of this. It could also alphabetize sections as TheDaveRoss proposes, though that would sometimes create a messier diff. — Eru·tuon 19:41, 29 March 2019 (UTC)

 * Add it at the end, then append '\n\n' - this will tell another bot to put it in the right place. SemperBlotto (talk) 09:18, 3 April 2019 (UTC)
 * I don't know that there are any bots which are looking for that template any longer, unless or  are, or are willing to include it in their bots. DTLHS will reorder the language sections as part of the cleanup process, but I don't know what criteria are used for choosing which entries to work on. -  TheDaveRoss  18:33, 3 April 2019 (UTC)
 * I process all entries, there's no selection process other than comparing them before and after the reordering to see if something changed. rfc-auto is removed but it's not used at all to target entries. DTLHS (talk) 05:27, 4 April 2019 (UTC)

Searches and translations
When a search is conducted on a non-existent term in the search box at the top right corner of each page and the term appears in a translation table, the search results page shows the line "[non-existent term] is a [language] translation of the word [entry] ("[brief definition of entry]")". I suppose this information is retrieved from on the entry page. However, it seems that this doesn't work well when is used, because this is what results: "gîrokirî is a Kurdish translation of the word abeyant ("also|being in a state of abeyance|suspended")". Hopefully someone can look into this. — SGconlaw (talk) 19:46, 29 March 2019 (UTC)

Some Can Not Play Mandarin Chinese Audio Files linked in zh-pron for Months (in certain browsers)
"|ma=Zh-zhēnzhū.oga" As used in zh-pron on the 珍珠 page should allow readers a chance to listen to the pronunciation "zhēnzhū".

The above zh-pron doesn't allow me (and User:Tooironic and others?) to play the audio file. I tried it on my laptop using Opera and Firefox in Safe Mode. In my case, where there should be a play button etc, there's just a pale grey bar with nothing on it. This has been going on for months at least- I noticed this in December, but I thought it was just something wrong with my computer, because I can play the file on my phone using the generic browser.

Disaster.

There's nothing wrong with Wikimedia's Zh-zhēnzhū.oga file- it can be played perfectly on the zhēnzhū page when used in Template:audio in Opera.

--Geographyinitiative (talk) 10:29, 30 March 2019 (UTC)
 * This has been an issue for more than six months, and I have found it very frustrating. know about it, but I guess they don't know what to do? —Μετάknowledge discuss/deeds 20:00, 30 March 2019 (UTC)

 * It used to cover the IPA. A few days after I fixed that (using a hack I figured out in the past), the damn buttons stopped showing up. I've said this before, and I will stay it again: I hated the thing since the first time I ever spotted it on Wikipedia. Old revisions of the relevant modules from before I added my hack don't work either. —Suzukaze-c◇◇ 21:16, 30 March 2019 (UTC)

 * If I recall correctly, the problem has to do with its interactions with the collapsible element. What if we display the audio in the uncollapsed part, i.e. after the romanization in the main part instead of after the IPA in the collapsed part? — justin(r)leung { (t...) 00:31, 31 March 2019 (UTC)

 * I love this idea. No need to hide our lamp under a bushel. This way, people who are visiting Wiktionary for the first time and might want to hear the pronunciation can actually SEE that we provide a playable audio file without having to click into and look through all the complicated academic stuff in zh-pron. --Geographyinitiative (talk) 01:05, 31 March 2019 (UTC)

 * In the Developer Tools under 'Console' in the web browser, Firefox shows  five times on https://en.wiktionary.org/wiki/珍珠?debug=true . So the audio player is rendered but within that audio player area there is not enough space to render pause, volumeControl, timeDisplay, options and timedText. Feel free to follow How to report a bug and file a ticket in Phabricator under the "TimedMediaHandler-Player" project tag to make developers aware of this. Thanks! --AKlapper (WMF) (talk) 15:28, 5 April 2019 (UTC)

 * In the mean time, can someone move the audio as Justin suggested? —Μετάknowledge discuss/deeds 16:56, 8 April 2019 (UTC)
 * ✅, but I'm not sure if this is how we want it to look. Any suggestions on how it should display would be much appreciated. — justin(r)leung { (t...) 21:21, 8 April 2019 (UTC)
 * I love this new look. We have just made the dictionary way more friendly to Chinese as a second language studiers. If you have to change it back, I understand. But I am loving it. --Geographyinitiative (talk) 23:57, 8 April 2019 (UTC)
 * With the new change, I just listened to four Chinese dialect pronunciations for Taiwan within a matter of about ten seconds. https://en.wiktionary.org/wiki/臺灣 I had NEVER done that before. --Geographyinitiative (talk) 01:37, 9 April 2019 (UTC)
 * God this is awesome.　Ｐｌｅａｓｅ don't change it back. It's so convenient. --Geographyinitiative (talk) 01:10, 17 April 2019 (UTC)

It seems like the new video player can work with collapsed elements now (preferences). (Perhaps we shouldn't re-hide the audio though.) —Suzukaze-c◇◇ 07:09, 24 June 2019 (UTC)
 * I like having it out there right in your face so that new readers can see that we have that kind of functionality. If it needs to be put back though, I'm not going to oppose it too much. I wish some kind of statistics could be generated about use of the audio files and page views. I would believe that the audio files attract readers and keep them coming, but idk. In the past, I would often click on the audio files in Pleco, but idk if other people do it. --Geographyinitiative (talk) 09:35, 24 June 2019 (UTC)

Finding the lemma in Module:la-noun and Module:la-adj
I added support for WT:ACCEL to Module:la-noun and Module:la-adj, but I'm having trouble with one detail. Latin uses diacritics that don't appear in the page name, and those need to be specified in the  value in the module, which is currently set to. Because I don't know much of how the module works, I'm not sure where to get the lemma from. If I hardcode it as the nominative singular, then of course it won't work for plural tantum nouns. But there may also be nouns out there that have no nominative forms at all, so I'd rather not make assumptions that silently break things. —Rua (mew) 13:48, 30 March 2019 (UTC)
 * There are also some Greek words whose lemma isn't the nominative singular, like, , . My idea was to look at the (masculine) nominative singular, then if that doesn't exist, the (masculine) nominative plural, then the (masculine) genitive plural, then the (masculine) genitive singular, and maybe go through more of the case-forms in a certain order and use the first form that exists. I don't think that logic is quite right, but it's a starting point. — Eru·tuon 18:05, 30 March 2019 (UTC)

Looking for templates that still accept only lang for the language code, not 1
I have been systematically converting all templates that take a language code to accept 1 as well as lang. I have been tracking the templates and the language-code params they accept on this page: Templates with current language parameter. There are only a few left that I know of that don't accept the language parameter in 1; mostly this is because the lang parameter is optional, and before we allow 1 to contain a language code, we have to make the language code mandatory and do bot runs to add the language code everywhere it's missing. Please feel free to update that page with any other templates that are missing, or ping me directly about converting a template. Benwing2 (talk) 06:56, 31 March 2019 (UTC)

== Redirecting ///..., ///..., ///... etc. to ///... ==

Currently we have a whole slew of similar templates to create multicolumn output:

These used to differ in the default title displayed, but per the outcome of Beer parlour/2018/November, the title is no longer displayed, and as a result ///// all do *exactly* the same thing.

I would like to redirect all of these to a single set of columnar templates:

 * ,, , , for the default auto-sorting variants
 * ,, , , for the default non-auto-sorting variants

Note that all of these templates accept a sort parameter that can be used to override the auto-sorting behavior.

Also, the underlying code in Module:columns accepts an invocation parameter class to specify a CSS class, which could be used to add classes,  , etc. to the HTML output, allowing users to customize the behavior e.g. of derived vs. related terms differently. Currently this feature is unused, but if we used it, we wouldn't want to do all the redirections. However, it's not at all clear to me it makes sense to add this capability ... these are fundamentally similar lists of terms and it seems of questionable utility to make it possible to display them differently, esp. considering the complexity it adds vs. having a single set of columnar templates.

Thoughts?

Benwing2 (talk) 19:57, 31 March 2019 (UTC)
 * I was going to suggest this, so . However, I also think the sorting behaviour should be removed altogether. It needlessly wastes processing time whenever a page is loaded, whereas sorting the terms manually is something an editor can do once and then nobody has to worry about it again. If people really want a way to sort terms, then it can be done with a substable template that receives a language and any number of unnamed parameters, and then is substed into the same parameters but sorted, separated by pipes so that they fit syntactically into the surrounding template. Thus, when you save a page containing this:
 * it automatically expands into this:
 * This way, there is no need for sorting variants of the templates, yet editors have the option to sort anytime they add new items to the list. —Rua (mew) 21:15, 31 March 2019 (UTC)
 * I created a substable sorter based on the code formerly in Module:columns awhile ago: see Module:collation. — Eru·tuon 22:02, 31 March 2019 (UTC)
 * That's a good idea, but it needs to be more practical to use. The syntax is easier. —Rua (mew) 22:49, 31 March 2019 (UTC)
 * Yeah, not very ergonomical, but I didn't think it would be used very often. [Edit: Created .] — Eru·tuon 03:54, 1 April 2019 (UTC)
 * Also, another point: the number of columns should be a parameter, so we don't need different templates for different numbers of columns. —Rua (mew) 23:06, 31 March 2019 (UTC)
 * , and I agree with Rua. Chignon – Пучок 23:07, 31 March 2019 (UTC)
 * Redirected. I also created a generic template that takes the number of columns as a parameter, after the language code and before the terms. The templates  and  ..  auto-sort;  and  ..  don't. I really don't think the time to sort is worth worrying about; sorting is O(N log N), which is effectively linear for normal-length tables, and is not where most of the time goes. Benwing2 (talk) 01:44, 1 April 2019 (UTC)
 * Well I think we're more concerned about memory usage than runtime in this case. DTLHS (talk) 01:47, 1 April 2019 (UTC)
 * Redirected. I also created a generic template that takes the number of columns as a parameter, after the language code and before the terms. The templates  and  ..  auto-sort;  and  ..  don't. I really don't think the time to sort is worth worrying about; sorting is O(N log N), which is effectively linear for normal-length tables, and is not where most of the time goes. Benwing2 (talk) 01:44, 1 April 2019 (UTC)
 * Well I think we're more concerned about memory usage than runtime in this case. DTLHS (talk) 01:47, 1 April 2019 (UTC)

 * . — SGconlaw (talk) 03:21, 1 April 2019 (UTC)
 * : Referring to this thread, I wanted something like col1-u, so I have experimented with it at . I'm not sure that I like the result, and I may need to refine it. I would have preferred it to be completely collapsible. DonnanZ (talk) 09:11, 2 April 2019 (UTC)
 * making it completely collapse. showing a number of lines in the collapsed state. Wrapping a list of terms in one of these templates should never result in hiding all the terms, that is a regression in the usefulness of the template because the user now has to expand the list before seeing any terms. Instead, the purpose is to hide additional terms once there are too many. —Rua (mew) 11:42, 4 April 2019 (UTC)
 * Showing a number of lines decreases its usefulness; in some cases it may not be worth using it if little space is saved in the semi-collapsed state. The present semi-collapsed set-up with these templates is quite stupid and an eyesore. DonnanZ (talk) 22:42, 14 April 2019 (UTC)

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/

title: Wiktionary:Grease pit/2019/March