Open main menu

New template to replace magic wordsEdit

Template:ISBN I have copied over w:Template:ISBN and w:Module:Check isxn from en.wp. Magic words as links are being phased out and although we don't have to replace all instances of them now, they will all be removed from MediaWiki in 2017. See mw:Requests_for_comment/Future_of_magic_links. We currently have over 27,000 entries in Category:Pages using ISBN magic links. A similar situation exits on a smaller scale for PMID and RFC. —Justin (koavf)TCM 03:26, 1 January 2017 (UTC)

Is it confirmed that this is actually going to happen? DTLHS (talk) 03:30, 1 January 2017 (UTC)
@DTLHS: Per mw:Help:Magic links, it's already disabled by default. It's my understanding that it will be removed entirely barring something extraordinary. Either way, it's probably useful to have a local version of the templates or use m:interwiki map links. (Note that pmid was recently added for this reason.) —Justin (koavf)TCM 03:43, 1 January 2017 (UTC)

en-PP doesn't work with head parameterEdit

See in Abraham's bosom. Equinox 05:14, 2 January 2017 (UTC)

Fixed (it was using 1 as a head parameter, but both should work now). DTLHS (talk) 06:14, 2 January 2017 (UTC)

Phags-Pa scriptEdit

Could someone make Phags-Pa display vertically as Mongol script does? Crom daba (talk) 05:28, 2 January 2017 (UTC)

Done (do we need the webkit and moz prefixes now or has writing-mode been fully implemented?) DTLHS (talk) 06:12, 2 January 2017 (UTC)
Unfortunately I'm only vaguely familiar with css/Unicode implementation of Phags-Pa, so I cannot answer that question meaningfully. However, I can confirm that the text displays as it should now, thanks! Crom daba (talk) 19:09, 2 January 2017 (UTC)


Could someone please have a look at {{calque}}? When applying it at king cake, I cannot get a gloss to appear, whether I put it in the fourth parameter position or use |gloss=. The documentation page seems out of date, as using |etyl t= generates an error. Thanks. — SMUconlaw (talk) 07:14, 2 January 2017 (UTC)

I can't figure it out either, and the documentation is definitely out of date. Calques are handled by Module:etymology/templates now, but I can't figure out how. Writing {{calque|en|fr|-|nocap=1}} {{m|fr|galette des rois||[[galette]] of the [[king]]s}} will work properly, but it seems clumsy. @CodeCat, can you help? —Aɴɢʀ (talk) 10:14, 2 January 2017 (UTC)
Looking at Module:etymology/templates makes me think that {{calque|en|fr|galette des rois||[[galette]] of the [[king]]s|nocap=1}} is supposed to work, but I'm not familiar with Lua. — SMUconlaw (talk) 13:59, 2 January 2017 (UTC)
You need to use etyl lang= when using etyl t=, no idea why this was implemented like that yet, but it works if you do it like that. Crom daba (talk) 17:13, 2 January 2017 (UTC)
Thanks. I do hope the template can be regularized and the documentation updated, though. — SMUconlaw (talk) 19:06, 2 January 2017 (UTC)
I had a similar problem in etymology sections of the Russian names of grammatical cases – for instance, винительный (vinitelʹnyj, accusative). I entered glosses into {{calque}} using the |t= parameter, but they didn't display. I added that parameter in the calque function of Module:etymology/templates, but that didn't do anything, since something has to be changed in the calque function of Module:etymology too. — Eru·tuon 23:06, 8 January 2017 (UTC)
It works now, now I just need to figure out how to make a tracking category for deprecated usage and change it, having two 'compat' variables can't be good. Crom daba (talk) 03:14, 10 January 2017 (UTC)
Turns out we already have a tracking template for this: Special:WhatLinksHere/Template:tracking/calque/etyl.
I removed all uses of deprecated lang=, but etyl lang= is too numerous, someone will have to do it by bot. Crom daba (talk) 09:52, 10 January 2017 (UTC)
@Crom daba, Erutuon: what changes have been made to {{calque}}? Could someone please update the documentation as well? Also, @Benwing2, perhaps you could help with the bot work? Thanks. — SMUconlaw (talk) 13:43, 19 January 2017 (UTC)
If someone describes exactly what the bot needs to do, I'll look into implementing it. Benwing2 (talk) 13:46, 19 January 2017 (UTC)
I've updated all the usages featuring the deprecated lang= parameter and subsequently removed the compatibility with it in the module. The next step is to change all usages featuring etyl lang= and compound parts like in this diff (I've made a tracker for this here), ultimately making {{calque}} similar to {{borrowing}} and {{inherited}} whose implementations could then be better integrated for a more maintainable code. Crom daba (talk) 14:10, 19 January 2017 (UTC)
@Smuconlaw: I went and updated the documentation. I think it's accurate now. — Eru·tuon 20:08, 19 January 2017 (UTC)


Would an administrator please review and process the edit request on MediaWiki talk:ExtractFirst.xsl? Didn't know where else to post this. Xaosflux (talk) 00:00, 3 January 2017 (UTC)

Done. DTLHS (talk) 00:03, 3 January 2017 (UTC)

Etymology-only language whose parent is also an etymology-only languageEdit

At neenish tart I find that {{etyl|de-AT-vie|-}} displays correctly as "Viennese German", but {{cog|de-AT-vie|-}} creates a module error "attempt to index local 'parent' (a nil value)". I suspect that's because Module:etymology languages/data lists the parent of de-AT-vie as de-AT, which is itself an etymology-only language with de as its parent. The easy way to fix this would be to simply change the parent of de-AT-vie to de, but I wonder if it wouldn't be preferable to allow {{cog}} to accept etymology-only languages with etymology-only parents. —Aɴɢʀ (talk) 17:22, 3 January 2017 (UTC)

I'm not sure if that's the same problem, but at Albania I tried to change the part "From {{etyl|gkm|la}} {{m|grc|Ἀλβανία}}" to {{bor|la|gkm|Ἀλβανία}}, which didn't work because gkm (Byzantine Greek) is an etymology-only language. That doesn't really make sense. Why not allow this? --Florian Blaschke (talk) 17:35, 15 January 2017 (UTC)
Works fine for me. Did someone fix it in the meantime? Crom daba (talk) 00:59, 18 January 2017 (UTC)

Fixed your problem @Angr. Crom daba (talk) 01:13, 18 January 2017 (UTC)

Thanks, Crom daba! —Aɴɢʀ (talk) 11:54, 18 January 2017 (UTC)

Need for Template:der4-uEdit

We have {{der3-u}}, which is very useful, but I think an additional template {{der4-u}} would be useful in cases like this one. DonnanZ (talk) 15:17, 8 January 2017 (UTC)

Why can't these templates automatically decide how many columns to use? —CodeCat 16:55, 8 January 2017 (UTC)
They could... what thresholds would you recommend for the number of columns? DTLHS (talk) 16:56, 8 January 2017 (UTC)
Four is usually adequate, five looks too crammed I think, but would be the absolute limit. DonnanZ (talk) 17:13, 8 January 2017 (UTC)
I meant, what thresholds for the number of entries in the list should a theoretical automatic template use to decide the number of columns. DTLHS (talk) 17:22, 8 January 2017 (UTC)
Ah, that's a tricky question. The list for yrke has over 100 entries and is still lengthy, so changing from 3 to 4 columns with about 40-50 entries I guess. From 2 to 3 columns with about 10-15 entries would be about right. Thanks for the template, I've got some work to do this evening! DonnanZ (talk) 17:41, 8 January 2017 (UTC)
It would probably also depend on how long the words are, and whether they have transliterations. That is important for Ancient Greek, in which words can be long and they always have transliteration. If a module could count the number of characters in the output of Module:links, then perhaps the number of columns could be based on that somehow. Then again, I have no idea if this is possible. — Eru·tuon 23:02, 8 January 2017 (UTC)
There's also the CSS column-count attribute- I don't know if there's a technical reason we couldn't just use that to balance the columns. DTLHS (talk) 23:04, 8 January 2017 (UTC)
A fixed column count won't work if the screen isn't wide enough to fit all the columns onto. —CodeCat 23:07, 8 January 2017 (UTC)
Apparently there is a column-width property as well. If you set that, then it automatically uses as many columns as can fit on the screen. It's still not ideal, because on a wide screen a list of 10 items might be spread over 10 single-item columns, which is pretty awful too. Ideally, there'd also be a minimum height: fill up the first column, then overflow to the second once the first exceeds the minimum height. Repeat this until all columns are full, and only then, if there are still more items, should the columns be made taller and rebalanced as necessary. —CodeCat 23:11, 8 January 2017 (UTC)
I think the French Wiktionary already uses column-width FWIW. —suzukaze (tc) 23:14, 8 January 2017 (UTC)
Can you give an example of a large list on fr.wiktionary that is split into columns? —CodeCat 23:28, 8 January 2017 (UTC)
fr:manger. —suzukaze (tc) 00:02, 9 January 2017 (UTC)
From what I can see, there is no minimum height, so you can end up with one item in each column. This appears several times in "manger", with very short columns. I'm not sure if there is a way around this, the column-fill property doesn't seem to be a solution. Now if only min-height worked with columns... —CodeCat 00:10, 9 January 2017 (UTC)
There's a third property, column-fill: auto, which makes the first column fill before the second, then the third, etc. There are some downsides with this too, though. Firstly, it seems to only work in Firefox. Secondly, it requires specifying a maximum height for the list, so that the algorithm knows when to start filling the next column. Thirdly, if there's too many columns, they continue off-screen rather than making the list taller, since the height is a hard limit (and min-height doesn't work). —CodeCat 23:32, 8 January 2017 (UTC)

Module:hyphenation and automatic syllable countingEdit

An editor added an automatic syllable counting feature to Module:hyphenation which is great, but there needs to be a way to either suppress (e.g., with |nocat=1) or manually override (e.g., with |syllables=3) the category generated because (1) the feature doesn't work properly when an entry has two or more words (e.g., venire facias de novo); and (2) there may be instances where the preferred hyphenation does not accurately indicate the number of syllables (e.g., symbolism). Please see the discussion at "Module talk:hyphenation#Automatic syllable count". Thanks. — SMUconlaw (talk) 17:15, 8 January 2017 (UTC)

It would be better to base syllable count on IPA transcriptions. @CodeCat and I have made a module that does this – Module:syllables – but no one has integrated it into Module:IPA yet. — Eru·tuon 22:57, 8 January 2017 (UTC)
I agree. I don't know who activated the syllable count in Module:hyphenation – any idea? Perhaps we should turn it off first, and work on your Module:IPA project? Who can assist with this? — SMUconlaw (talk) 16:12, 9 January 2017 (UTC)
@Smuconlaw: It seems that @IvanScrooge98 recently activated this feature in mod:hyphenation for English with this edit. This certainly is not correct as English hyphenation does not always represent English syllabification but is actually an unrelated set of rules for typography. We should definitely turn this off. —JohnC5 21:39, 9 January 2017 (UTC)
Thanks. I reverted that edit for the time being. — SMUconlaw (talk) 07:54, 10 January 2017 (UTC)
Oh, I obviously didn't mean to cause any problems. Thanks for reverting my edit. [ˌiˑvã̠n̪ˑˈs̪kr̺ud͡ʒʔˌn̺ovã̠n̪ˑˈt̪ɔ̟t̪ːo] (parla con me) 13:25, 10 January 2017 (UTC)

Module:IPA and Module:syllablesEdit

@Smuconlaw: @CodeCat and I posted about the syllable-counting function earlier, but nobody seemed to be interested in helping. I am not sure who to ask: perhaps @DTLHS, who seems to understand module code well, though he hasn't edited Module:IPA yet? — Eru·tuon 21:10, 10 January 2017 (UTC)
@Erutuon Which function from Module:syllables should I be using? DTLHS (talk) 21:40, 10 January 2017 (UTC)
And should I enable it for English only or for all languages? DTLHS (talk) 21:41, 10 January 2017 (UTC)
Module:syllables was never really "finished off" and brought into a ready-to-use state. I have no reason to think it won't work, but there's several different functions still in there for testing out different approaches and displaying testcases. —CodeCat 21:54, 10 January 2017 (UTC)
OK, let me know when it's finished. DTLHS (talk) 21:59, 10 January 2017 (UTC)
@DTLHS: I'm a little more optimistic about the module than @CodeCat; I think the function getVowels, which CodeCat created, is ready for deployment in at least the languages that currently have their diphthongs defined in the module. It should only be applied to for phonemic transcriptions, which are likely to be better regulated than phonetic transcriptions. My functions are unlikely to yield anything and could be deleted or moved. — Eru·tuon 22:41, 10 January 2017 (UTC)
Now added. DTLHS (talk) 22:59, 10 January 2017 (UTC)
@Erutuon Could you keep an eye on the various syllable categories that will now be filling up? I've already noticed some mistakes like "abstractional" being marked as having 3 syllables (although it could be a mistake in the transcription). DTLHS (talk) 23:04, 10 January 2017 (UTC)
Also NCAA has 13 syllables for some reason. DTLHS (talk) 23:06, 10 January 2017 (UTC)
More oddities: adore, abear, abler, bacteria, avocation, Liberia, Nigeria, February, gargantuan. DTLHS (talk) 23:12, 10 January 2017 (UTC)
Hmm, the problems with abstractional, adore, and some of the others are due to the transcriptions (which in the case of abstractional could be respelled as ab-STRAK-shnull; in the case of adore, the diphthong /oə/ the non-General American transcription /əˈdoə/ is being interpreted as two-syllable /o.ə/, giving a three-syllable count). For NCAA, I suspect the problem is that the module is somehow counting the syllables inside the various templates that make up {{IPA letters}}. There should probably be a parameter for turning off syllable-counting: |syllab=-, perhaps. Or I could edit the transcription of adore to add a nonsyllabic diacritic (/oə̯/). — Eru·tuon 23:46, 10 January 2017 (UTC)
Sometimes a variant ending is given without repeating the entire transcription- not sure what the best way to deal with that would be. DTLHS (talk) 00:08, 11 January 2017 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── Some thoughts:

  • The syllables should be automatically counted based on the first full IPA transcriptions provided, ignoring variant syllables.
  • Syllables should be counted for separate language variants, for example, Received Pronunciation and General American. It is possible that pronunciation differences may lead to different syllable counts for the same word. In this case, it would make sense for the module to categorize the word as having, for example, both three syllables and four syllables.
  • The module should be able to deal with multiple-word entries, such as venire facias de novo (nine syllables altogether).
  • Consider whether it is desirable to (1) allow manual suppression of syllable counting using |nocat=1; and (2) allow manual overriding of the syllable counting using |syllables=3 if the module is generating an erroneous result (and probably automatic tracking of such cases in a category so that either the entry or the module can be fixed, if necessary).

SMUconlaw (talk) 06:37, 11 January 2017 (UTC)

The module is now counting the syllables in the complete transcriptions in venire facias de novo correctly, since it is transcribed as having ten syllables. There was an unrecognized diphthong in the earlier transcription, /ʌɪ̯/ which I should probably add to the module, since it's used by the OED. — Eru·tuon 07:30, 11 January 2017 (UTC)
Thanks! The syllable counting still seems a bit erratic, though. I was looking at "Category:English 10-syllable words", but don't carboxymethylcellulose and psychoneuroimmunology have only eight and nine syllables respectively? Also, perhaps the categories should be renamed "Category:English 10-syllable terms" as our entries often consist of more than one word. — SMUconlaw (talk) 07:55, 11 January 2017 (UTC)
Psychoneuroimmunology is now categorized correctly after I added the alternative transcription /ʌɪ/ to Module:syllables, but carboxymethylcellulose has a really odd transcription: /ˈkær.bɒks.ɪi.mɛɵ.əlˌsɛl.jʊ.ləʊz/. /ɪi/ and /ɛɵ/ added two extra syllables. The transcription was added by @Thryduulf, and I remember seeing another like it before. Fixed the transcription, and now it's counted as having 8 syllables. — Eru·tuon 08:41, 11 January 2017 (UTC)
Oh, and you're right, the categories should certainly say terms and not words! — Eru·tuon 08:42, 11 January 2017 (UTC)

I found a solution to the partial transcription problem. I changed the function in Module:syllables to return nil if there is a hyphen at the beginning or end of the transcription, but it results in a module error since Module:IPA still tries to add the category, so I will have to revert it. Can be reinstated once Module:IPA is made to recognize it. — Eru·tuon 07:21, 11 January 2017 (UTC)

@Erutuon Made you a template editor. DTLHS (talk) 16:27, 11 January 2017 (UTC)
@DTLHS Thanks! I'll try to use the ability responsibly. — Eru·tuon 20:40, 11 January 2017 (UTC)
Note the existence of Category:English 0-syllable words (and other languages). DTLHS (talk) 17:11, 11 January 2017 (UTC)

@Erutuon, note this version of knuckle sandwich. I think the module may need tweaking so that it only counts the syllables in the first parameter of each {{IPA}} template on each line, ignoring subsequent parameters or {{IPA}} templates. — SMUconlaw (talk) 16:54, 15 January 2017 (UTC)

I guess I don't agree with only syllable-counting the first transcription. If there are multiple pronunciations, and they have different syllable counts, the word should be placed in multiple categories. Now February has a lot of variant pronunciations, so it's categorized as four-, three-, and two-syllable. The standard pronunciation would be four-syllable, and the two-syllable pronunciation is probably considered incorrect and cannot be recommended to a second-language learner who wants to sound intelligent. Yet since Wiktionary has entries for common misspellings, it makes sense to show mispronunciations and categorize words by the syllable count in those mispronunciations, not just the syllable count of the more correct pronunciation.
However, we need a solution for that edit in knuckle sandwich, where an alternative transcription of one of the constituent words of the compound was having its syllables counted. I'll have to think more about that. — Eru·tuon 17:46, 15 January 2017 (UTC)
Good point. If it is impossible to distinguish between transcriptions that should be counted and those which shouldn't be, you may just have to allow editors to manually suppress counting of certain transcriptions by adding a parameter, or manually edit transcriptions (like I did in this case) to stop them from being counted. — SMUconlaw (talk) 18:10, 15 January 2017 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── @Erutuon, just wanted to bring to your attention mundialization and receptacle, where the module is incorrectly counting the syllables (five instead of six, and three instead of four) despite syllable markers being added. It seems that /-ʃn/ and /-kl/ are giving the module problems. — SMUconlaw (talk) 07:14, 22 January 2017 (UTC)

@Smuconlaw The module isn't very sophisticated in syllabifying, so it only recognizes syllabic consonants if they have the syllabicity diacritic: / ʃn̩/ instead of / ʃn/. It would be neat if we could input a totally unsyllabified transcription and have it calculate the possible number or numbers of syllables, but that will require a more complex set of rules. — Eru·tuon 07:50, 22 January 2017 (UTC)
Thanks, I just learned something new from you! Could you document this and any other relevant information at {{IPA}}? Thanks. — SMUconlaw (talk) 10:03, 22 January 2017 (UTC)

Template:reply toEdit

I just noticed that while {{reply to}} generates a final colon as expected, using the redirect {{ping}} causes the colon to be omitted. What gives? --Florian Blaschke (talk) 19:08, 10 January 2017 (UTC)

Oh, I see the problem. {{ping}} is actually a separate template, while {{Ping}} with upper case is a redirect. That's confusing. Instead, {{ping}} should be a redirect too. --Florian Blaschke (talk) 19:10, 10 January 2017 (UTC)

External links with accentsEdit

These used to work and I don't know what happened: see the link at xiïta or verosímil compared to colze or portavoz -- okay actually neither of the Spanish ones is working so...huh. Ultimateria (talk) 20:54, 10 January 2017 (UTC)

@Ultimateria: DRAE doesn't have an entry for "xiïta" which is a Catalan term anyway. If the "id" is changed to "w" in the URIs, it works correctly for verosímil, though. —Justin (koavf)TCM 20:59, 10 January 2017 (UTC)
Oh god this is what I get for using keyboard shortcuts haha. As for verosímil, I don't know why it wasn't working 5 minutes ago and now it is. Thanks! Ultimateria (talk) 21:08, 10 January 2017 (UTC)
@Ultimateria: This is why. For some reason, the RAE assigns another id to word, so that the same content is available at both and and the former redirects to the latter. I guess I can understand why they would want unique URIs for non-ASCII terms but why "hola" needs two forms I don't know. Glad I could help~ —Justin (koavf)TCM 04:20, 11 January 2017 (UTC)

more intuitive templatesEdit

We should make all templates more intuitive. F.ex. the head template is so hard to use or so defective that whoever has edited lying so far, including me, was incapable of adding the only information users are looking for when they look it up: whether it is the correct spelling of the present participle of only one of the two homographs and homophones lie.

At the very least, the entry should have this information in two different entries. Now it is even more misleading by having an example for only one of these two verbs. --Espoo (talk) 00:18, 11 January 2017 (UTC)

What would you ideally like the page to look like? DTLHS (talk) 00:30, 11 January 2017 (UTC)
First easy explanations of only the important features, followed by details farther below. And in this case, also an easy explanation for adding links to different homographs in the etymology and head templates. I couldn't find any info on this and therefore had to remove the templates. --Espoo (talk) 00:41, 11 January 2017 (UTC)
Actually, first I would say human readable entries. I am appalled to see MewBot (and probably others) replacing {{label|... with {{lb|... since it clearly indicates the mindset of the developers/maintainers of the template infrastructure is focused on manually typing in abbreviated and obfuscated jargon rather than maintainable content. - Amgine/ t·e 05:56, 13 January 2017 (UTC)
The substitution of {{lb}} for {{label}} seems exactly the opposite of how we could educate new users about the intent of template.
At the time of initial entry an experienced user should be able to save keystrokes by typing "lb".
At the time of editing a new user should have more self-evident template names to speed natural learning.
A bot could and should help us achieve both desiderata by expanding the terse to the full form. Is doing the opposite supposed to reduce the storage requirements for en.wikt? I don't see any other advantage to it. Some ideal JS system might be able to achieve the same result with only terse template names, but full displays, but we don't have that system and we don't seem to have many users with the time, skills, and inclination to develop such a system. What we have is a system of templates that seems designed to intimidate any new user with its terseness. This seems to defeat our wikiness, which is the main competitive advantage we have over our commercial competitors as a monolingual dictionary. DCDuring TALK 19:24, 13 January 2017 (UTC)
And yet we have more contributors than ever in the past. Some actual evidence that new users are intimidated by templates is required. DTLHS (talk) 19:30, 13 January 2017 (UTC)
The point has been made that the new contributors are doing translations. My concern is with en.wikt as a monolingual dictionary. The quality of our English entries will not be sustained without many English language editor willing and able to improve definitions. I fear that the uneven, too often poor quality of our English entries will not sustain good translations. DCDuring TALK 00:02, 14 January 2017 (UTC)
What does that have to do with templates? Improving basic English entries is a highly technical and time consuming task, regardless of the data structures behind the entry, and requires experienced editors familiar with lexicography. I do not think that random IPs are going to contribute much in this area. DTLHS (talk) 00:12, 14 January 2017 (UTC)
I believe that any needless obscurity in the wikitext, such as {{lb}} instead of {{label}}, serves to discourage new contributors, who may or may not have registered, from contributing. I assert to that the quality of many of our definitions is such that many could be improved even by "random IPs". There is plenty of work for the more experienced editors to clean up entries which "random IPs" identify as lacking something by their efforts to add or revise definitions. {{m}}, {{l}}, and some others are similarly excessively cryptic. DCDuring TALK 00:43, 14 January 2017 (UTC)
Since we're asserting things without evidence, I assert that we should change our logo to a picture of a cat and make all our text red and with a font size of 60 points in order to attract new contributors. DTLHS (talk) 00:50, 14 January 2017 (UTC)
The Grease Pit is virtually a user-fact-free zone. There is virtually no element of our current layout, template design, category structure etc. that is supported by evidence, though some items are not controversial. The fact is that we have operated with the only effective input being from experienced editors (except when that too is ignored). What evidence we get of new-user dissatisfaction is at best anecdotal and of discouragement virtually non-existent. It would be a miracle if that fact were not to lead to a Wiktionary editing interface and design designed principally to suit the preferences, taste, and whims of the active experienced editors. DCDuring TALK 15:35, 14 January 2017 (UTC)
There's evidence like this. Just as we use spelling errors to tell us about ancient pronunciation, we may learn something from formatting errors. Chuck Entz (talk) 17:06, 15 January 2017 (UTC)
Such evidence is strictly anecdotal. We don't compile it in a useful way. My imagination fails me when it comes to collecting data by which how we can improve our understanding of the process by which we attract and retain new contributors. DCDuring TALK 20:50, 15 January 2017 (UTC)
It is easy to add a feature to replace short template names to full names in the editing box for users, and again replacing them with the original (short) form when saving the page, but are we sure that full template names make the page code more readable? For example, changing "l" to "link" would make the page even more unreadable without much benefit, unless you also add names for unnamed parameters, which would make the page quit unreadable. Changing "label" to "lb" may be not very necessary as it is not used frequently unlike m and l and saving keystrokes is not a priority there. What would you do about {{head}}? Users need to see the docs, I can't think of any alternative way. We can show users a full form asking them to enter data for templates which have a lot of parameters, like what en.wp does with its citation templates, but that's also time-consuming for editors. --Z 08:16, 14 January 2017 (UTC)
Thanks for giving the matter serious consideration. You may be right.
I still wonder how we could make our templates, especially the commonly used ones, more accessible and, especially, make their functions more intelligible. I don't think that Wiktionary:Templates, even after correction, updating, and addition of missing material addresses the need for giving less experienced and devoted editors some means to grasp what the templates are supposed to accomplish. I am pretty sure that the most common way of learning here and generally is to imitate something that seems to work, but documentation is also sometimes useful. We have documentation that, when done well, meets the needs of experienced editors and others facing situations new to them. One thing we don't have is documentation that provides an overview that would help with selection of templates for different purposes or parts of an entry. Such documentation and links thereto from edit windows might help users accept and learn our practices, at least the rational ones. DCDuring TALK 15:35, 14 January 2017 (UTC)
I think the biggest problem for newbies is reaching template documentation, it simply wouldn't occur to most people to type in "template:..." into the search bar. If we had a way to display documentation as a pop-up in the edit window I think it would go a long way. Crom daba (talk) 03:01, 15 January 2017 (UTC)
WikEdit on Wikipedia has the feature where you control–click on a template name to open up the template page. That would be sort of useful, though people would have to know how to use it. — Eru·tuon 05:03, 15 January 2017 (UTC)
As useful as such a means of access might be for someone like me, learning or relearning the workings of a template or template feature that I rarely use, something a little more obviously available would be useful for new users, especially unregistered users. For registered users we could at least provide them with a welcome message in principle with links to documentation helpful to them. I don't think our welcome message (Wiktionary:Welcome newcomers?) does this very well. DCDuring TALK 13:13, 15 January 2017 (UTC)
Looking back on my experience, when you're a new user, every template is a template you rarely use. I don't think anyone is interested in reading 1000 words of documentation to learn about the entry layout or whatever, you mostly just copy stuff from other pages and then try messing around with it, breaking something in the process because you didn't find the relevant template documentation. Crom daba (talk) 14:47, 15 January 2017 (UTC)
Of course this applies only to those newbies that start looking at the code at all, we could probably attract some folks by having more gadgets which allow contributing without looking at the code. Crom daba (talk) 14:47, 15 January 2017 (UTC)
The latter is what seems to have worked for translations, which seems to be the area generating the most activity from new contributors. The structured nature of the potential translation contributions must make it easier to have such relatively intuitive gadgets. And the contributors seem to be motivated to advocate for their culture by adding translations. How many are as motivated to add synonyms for each sense of a polysemic English term or fill in other gaps in our English sections? DCDuring TALK 15:06, 15 January 2017 (UTC)
Links to templates used can be found at the bottom of the page when you preview an edit. Previewing should be encouraged as much as possible, because it gives a better ability to try things and see how they work without making a mess. Chuck Entz (talk) 17:06, 15 January 2017 (UTC)
That's certainly useful, even indispensable, but is it sufficient to help rank newbies? I think not. DCDuring TALK 20:50, 15 January 2017 (UTC)
Agreed. But my point is: why are we ignoring the practice of developers? There is a mantra that to be maintainable - by many different people with differing degrees of familiarity with the over-arching code project - use descriptive (and if possible standardized) names for variables, for methods, use plenty of white space to make things simple to interpret, do one thing on a line, etc. The same should be true for wiki entries. Saving keystrokes now costs time later. By all means use gadgets and bots to simplify data entry, which means you do not need to save keystrokes because the gadget does it. - Amgine/ t·e 05:30, 16 January 2017 (UTC)
You make a very good point. Rather than having shortcut redirects to templates, we could offload this to JavaScript which could automatically expand the shortcuts when the user types them. —CodeCat 16:55, 16 January 2017 (UTC)
Many templates, such as the inflection table templates, don't even have documentation in the first place, even though they're hardly intuitive. Very annoying even for experienced contributors like me. Constant changes over the years in how Wiktionary works don't help, either. I remember that Dbachmann was very interested in contributing, but found all the technical mumbo-jumbo off-putting, and when even someone like him complains about excessively high obstacles for would-be contributors, it means things are bad. --Florian Blaschke (talk) 21:18, 17 January 2017 (UTC)
Here's an example. Folks, I'm a moderately experienced, geeky but not hardcore tech-wiz user. I'm your target group. Listen to me, ffs! Here's the data you are looking for! For somebody who isn't a hardcore tech-wiz, undocumented inflection templates are a nightmare! --Florian Blaschke (talk) 19:25, 23 January 2017 (UTC)

OK, it seems the page codes are not easy enough for new contributors to work with, apparently because our pages heavilly use templates and referring the newbies to boring help pages introducing so many templates each with boring documentation pages doesn't work in Wiktionary.

Making only the mames of the templates longer and more descriptive may not solve everything. We can use longer terms for the templates and their parameters in the code, and replace any shortcut with its full form when saving the page. But this make the code less readable, at least when you do this to templates like l and t which may be used so many times in a given page (as opposed to headword template) and also because some of them have many parameters, so it would be time-consuming to read such code. Moreover, you would still need to teach the newbies the shortcuts or else editing may become as time-consuming if we do that to templates like l and t.
We can create mini-docs for templates like m, l, t, inh, borrowed, head, etc. and display them when the new users click over the the templates' names in the edit box. We can tell them about this feature just above the edit box. The mini-docs may contain a short description, an example or two, and link to the full documentation. We can have multiple usage examples or even multiple mini-docs for a given template so that our smart JS tool show one of them depending on the situation (language, PoS, etc.). I think this is particularly useful for the headword template.
Similarly, I suggest showing pop-up help pages as the user hover/click on a section or its header. As already mentioned by other users, new contributors prefer to learn mostly through editing and not opening and reading the help pages. In such pop-up help pages, we can tell them about a selection of templates that are widely used in that section. They will try it, and while trying a given template, the interface would offer them more relevant information (the template's mini-docs).
For some templates we can make their usage more intuitive by making the code and the output more and more similar, for example using "{{Inherited from|el|grc|term}}" instead of "From {{inh|.....}}".

--Z 18:16, 18 January 2017 (UTC)

@ZxxZxxZ: This seems like the right idea. I would think that a single short page with the most common and important templates and the most commonly used positional and named parameters for English L2 sections would be of significant help to many newbies. I am not so sure that etymology templates are vital for newbies. Perhaps a subpage for them, adding {{suffix}}, {{prefix}} and {{compound}}, would be an alternative. Templates such as {{sense}}, {{qualifier}} ({{q}}), and perhaps {{accent}} ({{a}}) should be on a similar subpage if not on the main short page. The documentation {{t}} needs to be linked to on that page, not explained beyond saying that it is solely for translations which can be added more simply using the gadget.
I don't think that some redundancy or even duplication would be bad if they would enable some users to find all that they needed for some tasks on a single page.
With what you seem to be proposing, long template names would offer less advantage and may well be a net disadvantage for almost all users. I would appreciate having links to the templates and/or CSS, module, JS, or other code that you use so I could perhaps do something similar with the taxonomic name templates. DCDuring TALK 19:54, 18 January 2017 (UTC)
I will be working on this proposed JS tool in the future. -Z 16:47, 2 February 2017 (UTC)

I didn't want to interrupt this discussion because it was obviously interesting and important to those who participated, but it talked about completely different problems than those in my OP. --Espoo (talk) 23:34, 20 January 2017 (UTC)

In part, the divergence of the discussion from your question is because of the title, the lead sentence, and the fact this is posted in GP. To the extent you are interested in changing entry layout, a more suitable venue would be WT:BP. To the extent you are interested in [[lying]], WT:TR would be better. The answer to the question "What would you ideally like the page to look like?" was probably intended to elicit your desired version of [[lying]]. DCDuring TALK 01:03, 21 January 2017 (UTC)

Categories for x-syllable termsEdit

As Smuconlaw said above, it would be better if categories for syllable count were titled in the format English 2-syllable terms instead of English 2-syllable words, because many entries (for instance, venire facias de novo) contain multiple words, and there are also entries for bound morphemes (-ed) and clitics (-’s). I understand that the categories for number of syllables involve Module:category tree/poscatboiler/data/words by number of syllables, and presumably this should be moved to Module:category tree/poscatboiler/data/terms by number of syllables, but I do not know what else would be involved in a change like this. I imagine there are many categories that will have to be moved as well, which should be done by bot.

Would everyone agree with a change from words to terms in syllable-count categories? — Eru·tuon 22:08, 13 January 2017 (UTC)

  •   Support! — SMUconlaw (talk) 13:05, 14 January 2017 (UTC)
  •   Support --Daniel Carrero (talk) 13:08, 14 January 2017 (UTC)
  •   Oppose. I don't think we should be categorising multiword terms by syllable count at all. —CodeCat 14:09, 15 January 2017 (UTC)
    • What about compounds such as the above-mentioned knuckle sandwich that are really a single word written as two? — Eru·tuon 17:55, 15 January 2017 (UTC)
      • Aren't those still "terms"? — SMUconlaw (talk) 18:11, 15 January 2017 (UTC)
        • Right, but I'm asking CodeCat for clarification on what multiword means. — Eru·tuon 18:46, 15 January 2017 (UTC)
          • The definition Wiktionary uses is anything with a space in between. —CodeCat 19:54, 15 January 2017 (UTC)
            • So you mean that single-word entries should be counted, but multiple-word entries should not be? Well, it's conceivable that knowing how many syllables there are in a multiple-word entry might be useful for someone composing poetry ... but of course I have no idea how often poets use the Wiktionary. — SMUconlaw (talk) 11:02, 16 January 2017 (UTC)
              • @Smuconlaw: Of course, this is a chicken-and-egg problem where no one could or would use Wiktionary for writing lyrics or poetry if we don't have those features. We should strive to have the most comprehensive dictionary in the world: etymologies, rhymes, appendices, thesaurus, definitions of all terms for all languages, etc. —Justin (koavf)TCM 17:45, 16 January 2017 (UTC)
  • I agree with CodeCat. — Ungoliant (falai) 17:54, 1 February 2017 (UTC)

Bug (ungrammatical text) in Alerts dropdownEdit

It says "Your reverted." instead of "Your edit was reverted." This used to be correct, but it looks as though someone (presumably a developer outside of Wiktionary?) has broken it. Equinox 02:53, 17 January 2017 (UTC)

Is it fixed for you now? I think I found the message, but when I tested before changing it worked as expected. - TheDaveRoss 16:38, 17 January 2017 (UTC)
Yes (though the older message still exhibits the problem; I assume it was generated and permanently saved in that form). Equinox 16:41, 17 January 2017 (UTC)

Bug in rhyme-adding script?Edit

Go to Rhymes:English/ɛstə(ɹ) and, using the automatic buttons, attempt to add wester. Unlike other words, this one fails with "ERROR:TypeError: Cannot read property 'parentNode' of undefined". (Actually, it seems to have worked, but my screen gave the error and did not visually add the word.) Equinox 23:48, 17 January 2017 (UTC)

There's also another bug: it doesn't use {{l}}. —CodeCat 00:04, 18 January 2017 (UTC)
Where is the rhyme adding script actually located? DTLHS (talk) 00:14, 18 January 2017 (UTC)
I followed a link after adding a rhyme, and came to the talk page User talk:Conrad.Irwin/editor.js, which mentioned rhymes. But the corresponding js page doesn't use the word "rhyme", though, so maybe the JS for the rhymes adder is located somewhere else. — Eru·tuon 04:49, 18 January 2017 (UTC)
  • A newer but not heavily tested version of the script is at here. It has at least one active user.--Dixtosa (talk) 06:22, 18 January 2017 (UTC)
    How do I install the script? — Eru·tuon 21:54, 18 January 2017 (UTC)
    • @Erutron: Go to Special:MyPage/common.js and you can either copy and paste the content or you can use importScript('User:Dixtosa/rhyme.js');. The first method is a little easier but the latter method is better because if Dixtosa changes his script then yours will update as well. —Justin (koavf)TCM 22:07, 18 January 2017 (UTC)
      • Note that you should also disable the old script in preferences 》 gadgets 》 "disable rhymes adder"--Dixtosa (talk) 23:15, 18 January 2017 (UTC)
        • To avoid the current situation in which a userspace page is used for integral parts of Wiktionary, can we get some kind of pledge that the script will be made "official" and moved to a more appropriate name when it's deemed good enough? —CodeCat 23:49, 18 January 2017 (UTC)
          • There's nothing wrong with a few people knowingly using a script that is in my userspace, especially without admin privileges that make it an annoying process to support a script that I am not allowed to edit. Anyways, I and the script are ready to for the deployment. --Dixtosa (talk) 15:05, 19 January 2017 (UTC)
            • The "template editor" user right should fix that. —CodeCat 15:08, 19 January 2017 (UTC)
              • No it does not. --Dixtosa (talk) 17:09, 22 January 2017 (UTC)

Make the edit box smaller II: electric boogalooEdit

In November [1] I was told how to make the edit box smaller. It's now gone back to its old size, and that setting has vanished from the preferences page. What?! How do I make it right again? Why do people break stuff all the time. jesus. Equinox 00:14, 20 January 2017 (UTC)

Add this to your css (adjust the width and height as you like them): #wpTextbox1 {width: 50em; height: 4em; }. DTLHS (talk) 00:19, 20 January 2017 (UTC)
Sweetness. Thanks! Still curious why the "official" feature was removed though. Equinox 00:25, 20 January 2017 (UTC)
I think it was also removed from Wikipedia. Annoying. — Eru·tuon 05:30, 25 January 2017 (UTC)

Graph of recent visits on main pageEdit

Semper added it recently; I'm not so sure I like having it there, but if we are to have it there, can someone please figure out how to format it more nicely so there isn't a big chunk of whitespace? —Μετάknowledgediscuss/deeds 00:54, 20 January 2017 (UTC)

Yup, there's some improvements that can be made. See also the discussion at Wiktionary talk:Main Page#Recent visits graph where additional points have been raised. — Kleio (t · c) 02:03, 20 January 2017 (UTC)
  • Does anybody actually support having it there? Given that I only see complaints, and that it seems a mite unprofessional, perhaps we should remove it. —Μετάknowledgediscuss/deeds 03:30, 20 January 2017 (UTC)


I want to add to Appendix:Variations of "p" the symbol for the antiproton - a letter "p" with a bar on top. How do I do it without using <math>? SemperBlotto (talk) 06:31, 20 January 2017 (UTC)

P + combining overline, (as in [2]). Another possibility is p + combining macron, (like [3] and [4]), but Wikipedia suggests the longer overline is a better representation of a vinculum, and the overline does seem to be slightly more common in the digitized journal articles that Google searches find. - -sche (discuss) 10:23, 20 January 2017 (UTC)
I think the overline is too long. --Octahedron80 (talk) 10:31, 20 January 2017 (UTC)
I think the overline looks better, and is less likely to be confused with the p̄ found in the scholarly transliteration of Hebrew. —Aɴɢʀ (talk) 10:55, 20 January 2017 (UTC)
I suppose we should have a hard or soft redirect from whichever line we don't use to the one we do use, when we create entries (since there are online versions of presumably printed and CFI-meeting journal articles using each encoding). Is anything symbolized by "i bar" or "j bar" where the overline might look excessive? Btw, there's an alternative notation (used in e.g. Paul Allen Tipler, Gene Mosca, Physics for Scientists and Engineers, volume 3, →ISBN, where a proton is p⁺ and an antiproton is p⁻, and likewise a positron can be e⁺ instead of ē. One source uses , but Scientific Style and Format: The CBE Manual for Authors, Editors, and Publishers says this is an error and a superimposed tilde symbolizes a supersymmetric particle instead. - -sche (discuss) 21:57, 20 January 2017 (UTC)

Is it the question markEdit

I'm having problems invoking the template {{...}} in the entry for unmanliness. Is the problem the question mark in the parameter? Could someone attend to this issue? --EncycloPetey (talk) 22:15, 21 January 2017 (UTC)

No, it's the br tags. I don't think the template was designed to handle them. DTLHS (talk) 22:20, 21 January 2017 (UTC)
Thanks! --EncycloPetey (talk) 23:19, 21 January 2017 (UTC)
By the way, why do you want to include the quote in {{...}} if you're not showing it on the page? DTLHS (talk) 23:20, 21 January 2017 (UTC)

New X-SAMPA to IPA templateEdit

I was frustrated by how clunky it is to use {{x2i}}, so I created {{X2IPA}}. Like {{x2i}}, it converts X-SAMPA to IPA, and must be substituted, but it takes the exact same parameters as {{IPA}}. (This cuts down on the clunkiness of putting a separate template in every parameter in which you need to convert X-SAMPA symbols.) Hopefully others will also find it useful. — Eru·tuon 00:59, 22 January 2017 (UTC)

Thank you. I wasn't sure anyone but me even used {{x2i}}. It will still be useful to use it inside {{rhymes}} and {{IPAchar}}, though. —Aɴɢʀ (talk) 14:40, 22 January 2017 (UTC)
Angr: Hmm, I just created {{x2ipachar}}, the same thing as {{X2IPA}} except it transforms into {{IPAchar}} when substituted. I'll look into making a Rhymes template too. — Eru·tuon 20:07, 22 January 2017 (UTC)
@Erutuon: If you like, but I don't see that {{x2i}} is so clunky that it can't be used for {{rhymes}}. I also use it in reconstructions like *gʷʰen- by typing {{m|ine-pro|*g{{subst:x2i|_w_h}}en-}}. —Aɴɢʀ (talk) 20:18, 22 January 2017 (UTC)
@Angr: Well, it's not very difficult to make now that I have made the other convenience templates, so now we have {{x2rhymes}}. It would be neat to have a convenience template for PIE too. — Eru·tuon 20:30, 22 January 2017 (UTC)
PIE isn't the only language that uses IPA characters, though. Lots of proto-languages do, as do a tolerable number of attested ones. —Aɴɢʀ (talk) 20:40, 22 January 2017 (UTC)
{{x2i}} serves as a good way to type the superscripts, but not for other proto-characters, like subscript numbers, macrons, hooks, and acute accents. It would be neat to have a shortcut template for them. — Eru·tuon 21:00, 22 January 2017 (UTC)

Using Javascript to set preferences of romanisation/script/etc., and switch between different versions of the same page using different romanisations/scriptsEdit

Is this possible, either on an across-site or a page-specific level? Examples are (1) hiding Latin-script forms for Serbo-Croatian entries, or Traditional Chinese forms of examples in Chinese entries; (2) using a specific romanisation scheme to romanise foreign words, hiding all the other romanisation schemes.

If this is possible, where can I find some documentation on the gadgets that may be used / some similar code?

Thanks! Wyang (talk) 07:41, 22 January 2017 (UTC)

Obviously, I don't know how it works, but a site-level functionality is indeed possible; you can toggle between Latin and Cyrillic views over at w:sh:. —Μετάknowledgediscuss/deeds 00:59, 27 January 2017 (UTC)


There's a bug in Template:quote-journal that, I assume, makes the current year show as when the quote is from. Look at this recent example of a change I made and study it very closely. Clearly, it should show 2012, but it shows 2017. I'd imagine there are hundreds of similar mistakes throughout the pages, but admittedly a great percentage of them may be of my doing for not knowing enough about the templates I was using. I hope there's a quick fix, coz I don't edit templates. --Quadcont (talk) 13:19, 22 January 2017 (UTC)

@Smuconlaw Do you understand why this happens? DTLHS (talk) 16:35, 22 January 2017 (UTC)
I wasn't able to replicate the error. When I look at the version of the entry when it was first edited by Quadcont, the date shows correctly as 18 April 2012 as indicated in the template and not 2017. Similarly, if I remove the comma that Quadcont added in the second edit, the template still correctly displays 18 April 2012. — SMUconlaw (talk) 16:53, 22 January 2017 (UTC)
This is the diff with the error. DTLHS (talk) 16:54, 22 January 2017 (UTC)
Sorry, I just realized that too. The quote family of templates uses the magic word #time to format dates, and #time will display the current year if it is omitted. For some reason, it seems as though {{quote-journal}} or {{quote-meta}} is treating a date with a comma like "18 April, 2012" as lacking a year. Removing the comma fixes the problem. I'm afraid I have no idea why. @CodeCat and @Erutuon, can you help? — SMUconlaw (talk) 17:14, 22 January 2017 (UTC)
Is it possible to make it throw an error instead of silently failing? DTLHS (talk) 17:19, 22 January 2017 (UTC)
Do we have an algorithm for detecting a comma in a string? If so I could incorporate that into the templates. But it's not supposed to be an error; it's supposed to work. For example, {{#time:'''Y''' F j|18 April, 2012}} works fine. We need to try and work out why templates like {{quote-journal}} are not passing text after a comma on to {{quote-meta}}. [Sorry, this is wrong. See below.] As far as I am aware, commas are not prohibited as parameter values. — SMUconlaw (talk) 17:28, 22 January 2017 (UTC)
Yeah the comma isn't the problem: "12 January, 2012" will display 2017 while "January 12, 2012" will display 2012. The parser function uses PHP's strtotime function which is supposed to raise an error if it can't parse the datestring. Of course it's PHP so it will fail in the dumbest way possible like we're seeing here. DTLHS (talk) 17:38, 22 January 2017 (UTC)
Ah, silly me. It's because strtotime recognizes "18 January 2012" and "January 18, 2012" as valid formats, but not "18 January, 2012". So there isn't anything wrong with the quotation templates. Well, we could get a bot to detect and replace all dates in the format "18 January, 2012", but I'm not sure it is practical to try and detect whether an editor has incorrectly placed a comma after the month. Any ideas about this? — SMUconlaw (talk) 17:45, 22 January 2017 (UTC)
I wonder whether it would be worthwhile do develop our own date parsing function (probably not). DTLHS (talk) 17:59, 22 January 2017 (UTC)
Yeah, not sure that's a good idea. — SMUconlaw (talk) 22:17, 22 January 2017 (UTC)
It seems like this issue would be much easier to fix if the complex template code in {{quote-meta/source}} were replaced with a module. But that would be a great undertaking. — Eru·tuon 22:39, 22 January 2017 (UTC)
We still wouldn't have control over the date parsing code unless we rewrote it ourselves. DTLHS (talk) 22:45, 22 January 2017 (UTC)
Well, the module could find and remove the comma in dates like "18 January, 2012" before passing them to the date parsing function. — Eru·tuon 23:11, 22 January 2017 (UTC)
  • Another bus I found is at head-scratching. They clearly state the date, but there's a cleanup tag "date required". That literally caused me a little bit of head-scratching. --Quadcont (talk) 12:19, 28 January 2017 (UTC)
There was a typo in the template. The parameter |archivedate= was mistyped as |archive=. — SMUconlaw (talk) 14:39, 28 January 2017 (UTC)

@DTLHS: I was browsing ScribuntoExternalLibraries extensions on MediaWiki, and discovered that there is a date-parsing library: Extension:TimeConvert. So maybe if that were installed, we wouldn't have to write our own date-parsing function? — Eru·tuon 19:38, 10 March 2017 (UTC)

@Erutuon I believe that library also uses the same PHP backend ([5]). DTLHS (talk) 19:45, 10 March 2017 (UTC)
Perhaps we should agree on a date format and use it universally. I like YYYY-MM-DD. - TheDaveRoss 20:05, 10 March 2017 (UTC)
Maybe we shouldn't be trying to parse dates at all and just display whatever strings people put in. DTLHS (talk) 20:49, 10 March 2017 (UTC)
I doubt that would work, because the template includes parameters such as |start_year= that demand date parsing. And it would be kind of messy if a unified style were not enforced. — Eru·tuon 22:12, 10 March 2017 (UTC)
@DTLHS: Ahh, so it would fall prey to the same problem as {{#time:}}. Plus it's not designed to parse, but rather to change the time zone. I guess mw.language.formatDate is more what we want, and it is installed by default. Perhaps all that would be needed is to remove commas where they will result in an error, and that should be fairly easy to do with regex. — Eru·tuon 20:16, 10 March 2017 (UTC)

@Smuconlaw, DTLHS: I've created Module:time to handle the date-related parameters of T:quote-meta/source that require parsing. It contains essentially the Lua equivalent of the {{#if:}} and {{#ifeq:}} parser functions in the original template code, plus a regex replacement to change 1 January, 2015 to 1 January 2015. (The parameter |origdate= is still handled by the template code.) So now 1 January, 2015 will be correctly handled.

I imagine the Lua code could be greatly simplified, but I will leave that for later. — Eru·tuon 03:01, 11 March 2017 (UTC)

Great, thanks! — SMUconlaw (talk) 14:12, 11 March 2017 (UTC)

Multi-PoS non-lemmasEdit

I've noticed that a lot of non-lemma forms (in multiple languages) were created a long time ago with only one part of speech in mind, for example, "boxes" created as a noun and neglected as a verb. Can we somehow generate lists of entries that are linked to under different PoS headers that don't include those same headers? English and other, I guess? Ultimateria (talk) 10:40, 23 January 2017 (UTC)

  • If they're for Romance languages, I'm proud to announce that hundreds of those would be my errors. One of the drawbacks of the WT:ACCEL tool is that they only work quickly for one part of speech. --Quadcont (talk) 21:00, 25 January 2017 (UTC)
I don't blame anyone; bots played a big part too. I know it's not a pressing issue, but I would like for us to have even non-lemmas as complete as possible, if anyone would help with the technical side. Ultimateria (talk) 18:09, 28 January 2017 (UTC)

Updating Wiktionary:Feedback/preloadEdit

Hello, could an admin change "Save page" into "Save changes" in this page? — Automatik (talk) 22:50, 23 January 2017 (UTC)

Done. DTLHS (talk) 22:51, 23 January 2017 (UTC)

Automatic categorization from affix templatesEdit

I was starting to manually categorize Ancient Greek nouns suffixed with -ῐ́δης (-ídēs) as patronymics, but then I realized it could be done much more easily with {{affix}} and {{suffix}}. So I added a little code to the affix and suffix functions in Module:compound to add the category if one of the |pos= parameters contains patronym. Now Ἀριστείδης (Aristeídēs) is automatically categorized since its etymology section contains {{suffix|grc|Ἀριστεύς|-ίδης|pos2=patronymic suffix}}.

I added a similar rule for diminutives, but since the diminutive categories contain the part of speech (for instance, Category:Diminutive nouns by language), words will only be categorized if two conditions are met: |pos= parameter in {{affix}} is defined, and the |posN= parameter contains diminutive. — Eru·tuon 02:47, 25 January 2017 (UTC)

I don't like this solution, but I can't think of a better one that preserves this simplicity. --WikiTiki89 23:44, 25 January 2017 (UTC)
@Erutuon Some cleanup needed: see Special:WantedCategories. DTLHS (talk) 17:05, 26 January 2017 (UTC)
The hobbitses have messed up the categorieses, my precious. —CodeCat 17:23, 26 January 2017 (UTC)
That's one of the greatest thingses I've seen on this site. Where down the line did that go wrong? Looking at the templates, I can't really find it. — Kleio (t · c) 17:44, 26 January 2017 (UTC)
Gollum has infected Wiktionary! Where it went wrong is in Module:compound, where -s or -es is added to the |pos= parameter. I added a rule to not add the plural marker if the pos is nouns, verbs, or adjectives. — Eru·tuon 17:49, 26 January 2017 (UTC)
@Erutuon: This change emptied 84 categories under Category:Hungarian words by prefix and I'm not sure what else. How are you planning to fix it? It's quite a bit of work manually.--Panda10 (talk) 18:34, 26 January 2017 (UTC)
They should fill up again by themselves now that this issue has been fixed. DTLHS (talk) 18:36, 26 January 2017 (UTC)
Thanks. I should have read Erutuon's comment more carefully. :) --Panda10 (talk) 18:47, 26 January 2017 (UTC)
@Erutuon: Whatever happened to change "Hungarian verbses" back to "Hungarian verbs", it also seems to have changed "Burmese compound words" to "Burmese compound word", see e.g. စက်ဘီး. —Aɴɢʀ (talk) 19:13, 26 January 2017 (UTC)
@Angr Bleh! My fault, a basic coding error. It's fixed now. — Eru·tuon 19:18, 26 January 2017 (UTC)


For me, {{outdent}} yields a bar that is longer than the indentation of the paragraph. For instance, the following:

Sample text.

──────────────────────────────────────────────────────────────────────────────────────────────────── Is it just me, or is the same true for other people? This doesn't look right.

Or maybe I'm misunderstanding what {{outdent}} is supposed to look like. I think the right arm of it ought to reach the first character in the indented paragraph. So here, it ought to reach to S, but for me, it reaches a point between the m and p in Sample. — Eru·tuon 00:52, 27 January 2017 (UTC)

Not sure – have you checked the behaviour of the template over at the English Wikipedia? It's probably the same. — SMUconlaw (talk) 10:15, 31 January 2017 (UTC)
@Smuconlaw: Actually, it seems to be different: the bar thingy reaches the leftmost character of the paragraph. See w:Template:Outdent/docEru·tuon 18:41, 31 January 2017 (UTC)
Ah, so. Well, feel free to change the template here to match the one at the English Wikipedia (if there is a coding difference). I don't think anyone is going to object. — SMUconlaw (talk) 18:16, 1 February 2017 (UTC)

Aha. The problem is the font size on Wiktionary. The width values for the Wikipedia and Wiktionary templates are identical. Huh. What to do? — Eru·tuon 20:52, 15 March 2017 (UTC)

Oh, that's wrong. The values are shifted down on Wiktionary. — Eru·tuon 20:55, 15 March 2017 (UTC)

Okay, the template is changed to more or less match Wikipedia's. — Eru·tuon 21:03, 15 March 2017 (UTC)

Unwanted {{lb}} redirectEdit

Currently, "Lorraine" in {{lb|}} converts to "Lorraine Franconian" with a link to the Wikipedia article, regardless of language (see assise, etymology 2 for an example). Could this be switched so that it only applies to German? Currently, French words cannot accurately be labelled as unique to Lorraine, which is not ideal. Andrew Sheedy (talk) 00:48, 28 January 2017 (UTC)

I've given Lorraine its own label separate from Lorraine Franconian. I didn't see any conflicts with existing usage. DTLHS (talk) 01:14, 28 January 2017 (UTC)
At the moment, there's no way to make a label language-specific. It would be wonderful if that capability were added to Module:labels and its data submodules, but so far no one has done it. — Eru·tuon 01:28, 28 January 2017 (UTC)
One reason why this is needed is that there is a wanted category Category:Romanesco English, added by {{lb|en|Rome}}. If the regional_category for the label Rome in Module:labels/data/regional were made to be language-specific (only applying if the language code is it, perhaps?), this would be fixed. — Eru·tuon 01:31, 28 January 2017 (UTC)

Parameter updates to Template:alterEdit

I've updated Module:alternative forms, which is used by {{alter}}, so that it uses Module:parameters. And I've made it possible for alternative link text and id to be specified for each of the links, using the parameters |alt1=, |id1=, and so on. — Eru·tuon 21:15, 28 January 2017 (UTC)

I've also just added |tr=. —JohnC5 02:44, 29 January 2017 (UTC)

Buggy behavior in User:Conrad.Irwin/editor.jsEdit

Hello. It seems that {{t+}} is used instead of {{t}} when adding linked translations: ex. I used wikilinks as it's often done for non-idiomatic translations.

In fact the bug appears because in case of a syntax error when sending an API request, the response is different from the one expected when the word is missing: missing word vs. invalid syntax.

Therefore, a possible fix is to take advantage of the fact that, in the API response, the pageid field is always -1 whether the word is missing or the syntax is invalid: [6].

Could an admin implement this fix? Do you need any other information? — Automatik (talk) 23:51, 30 January 2017 (UTC) (updated at 23:00, 2 February 2017 (UTC))

DTLHS: this bug probably appears since this change. Could you take a look at it please? — Automatik (talk) 08:47, 2 February 2017 (UTC)
Yes I'll look at it. DTLHS (talk) 23:03, 2 February 2017 (UTC)
@Automatik Do you have a specific fix that I can add? I looked at the module but I don't really know what I would change. DTLHS (talk) 18:35, 4 February 2017 (UTC)
@DTLHS Actually yes, the edit that I proposed aboved [7] should fix this issue. Cf. lines 2627—2631 of the module. — Automatik (talk) 19:01, 4 February 2017 (UTC)

CSS to regularize spacing between paragraphs in talk pagesEdit

I propose that this CSS property, which was recently added on Wikipedia, also be added on Wiktionary:

.ns-talk .mw-body-content dd {
	margin-top: 0.4em;
	margin-bottom: 0.4em;

It adds spacing between consecutive paragraphs indented by :. Normally, such paragraphs are displayed with no vertical space between them, so often people add an extra line break between them. : is converted to <dd></dd> by the MediaWiki software, with an encircling <dl></dl>. If the colons are separated by only one line break, they are enclosed in the same <dl></dl> tag. Adding an extra newline adds an additional <dl></dl>. I gather (see w:WP:LISTGAP) that this makes it hard for screen readers to read talk pages, since each new <dl></dl> is taken as a new description list.

With this CSS, the following two paragraphs would have the same space between them as unindented paragraphs do, rather than having the same amount of space as two lines in the same paragraph, obviating the need for adding an extra line break.

Some text.
Some more text.

What do others think? — Eru·tuon 08:34, 1 February 2017 (UTC)

The proposal seems fine to me. — SMUconlaw (talk) 13:12, 1 February 2017 (UTC)