Wiktionary:Grease pit/2011/August

I came up with the idea that templates that don't have two unnamed parameters should be in Category:Translation templates needing attention. It's turned up quite a few results already - ten so far. How would people feel about t, t+ and t- having the same function. Any downsides? Mglovesfun (talk) 22:35, 1 August 2011 (UTC)[reply]

No, none? --Mglovesfun (talk) 11:07, 3 August 2011 (UTC)[reply]
It's a good idea, but I think a missing second argument should probably just use the normal {{attention}}, rather than Category:Translation templates needing attention. Actually, thinking about it — maybe there should be a "default" category that {{attention}} uses when no language code is specified. If that were the case, then I think a missing first argument to {{}} should probably also just use the normal {{attention}}. —RuakhTALK 11:15, 3 August 2011 (UTC)[reply]
Partly related, the five remaining entries in Category:Translation templates needing attention use a language code and a transliteration with no original script, because the original script isn't known. These are for ancient languages like Sumerian and Hittite. --Mglovesfun (talk) 11:23, 3 August 2011 (UTC)[reply]
I quite like the idea of a cleanup category just for translations templates, but I wouldn't object if other users preferred using an established category (that is, one we already have and use). --Mglovesfun (talk) 16:03, 3 August 2011 (UTC)[reply]
Can I go ahead with this? Even doing it temporarily (for a few days) would allow users to clean up quite a few translation templates. --Mglovesfun (talk) 10:56, 9 August 2011 (UTC)[reply]

Definitions edit

There are several (8K) sorted definitions from Wiktionary here. This file may be interesting for somebody, I hope. -- Andrew Krizhanovsky 08:42, 2 August 2011 (UTC)[reply]

Y'know you can get all the definitions from http://toolserver.org/~enwikt/definitions/. Conrad.Irwin 08:14, 5 August 2011 (UTC)[reply]
Thank you. It is interesting. -- Andrew Krizhanovsky 14:54, 15 August 2011 (UTC)[reply]

boring job to be done by bot or bored user edit

Can anyone whip up a script to do these sorts of edits, allowing quick navigation between the pages? --Reetmo 13:17, 6 August 2011 (UTC)[reply]

Empty positional parameters and default values -- bug? edit

I'm working on a template that uses named parameters in combination with positional parameters, with default values for some of them. However, test calls are not producing the expected results.

Sample call:

{{~template I'm using~|value1|value2|||value5}}

Value 3 defaults to foo, and value 4 defaults to bar. These are defined as:

{{{param|{{{3|foo}}}}}}
{{{other_param|{{{4|bar}}}}}}

I'd expect to see:

Sample Table
value1 value2 foo bar value5

Instead, I get:

Sample Table
value1 value2 ' ' value5

What am I missing? When passing the third parameter as an empty value, {{{param|{{{3|foo}}}}}} should evaluate to {{{3|foo}}} since param is undefined, and this should then evaluate to foo since {{{3}}} is empty. But then where is this single quote ' coming from?

Reading around on Wiktionary, Wikipedia, Wikimedia, and Mediawiki (bewildering that the docs are spread around so much, but that's a separate matter for discussion), it sounds like a design mistake early on has caused confusion in terms of how named versus unnamed parameters are handled, and I'm starting to think my bugaboo here is part of that. I'd deeply appreciate it if someone could point me to an elegant way of clearing this up -- I'd hate to have to add {{{#if:}}} calls all over the place, but maybe that's what it comes to? -- TIA, Eiríkr Útlendi | Tala við mig 18:45, 8 August 2011 (UTC)[reply]

If 3 is defined as the null string then {{{3|foo}}} evaluates to the null string; only if 3 is undefined ({{template|value1|value2|5=value5}}, for example) does foo get used instead. I have no idea where the apostrophe is coming from, unless you have quotes around the code (like ''{{{param|{{{3|foo}}}}}}'' and they're coming together (as '''', which yields a boldface apostrophe) because now only the null string (i.e., nothing) is between them. If you want to use foo when 3 is the null string, then use {{#if:{{{3|}}}|{{{3}}}|foo}} or the like.​—msh210 (talk) 19:54, 8 August 2011 (UTC)[reply]
I was afraid that would be the case (needing {{#if:}}). And you're right about the single quote, I forgot to add in the italics in my examples. Thanks for chiming in, Msh210! -- Eiríkr Útlendi | Tala við mig 20:28, 8 August 2011 (UTC)[reply]
I agree, there's no way to do this without using the #if template. Otherwise it will just accept the null string. BigDom 20:42, 8 August 2011 (UTC)[reply]
Ta, thanks BigDom -- Eiríkr Útlendi | Tala við mig 22:50, 8 August 2011 (UTC)[reply]

isValidPageName edit

Curiously {{isValidPageName|-}} returns (that is, a blank string) although - is valid, as you can see by the blue link. Why is this? --Mglovesfun (talk) 10:57, 12 August 2011 (UTC)[reply]

If by "why is this?" you mean, "what causes this?", the answer is that that behavior is hardcoded into the template: if its argument is -, it returns a blank string, without doing its normal check. If by "why is this?" you mean "why was this done?", I have no idea. I can only imagine that it was intended that to be callable as {{isValidPageName|{{{1|-}}}}}, but I don't know why. Something like {{isValidPageName|{{{1}}}}} would work just as well. —RuakhTALK 12:31, 12 August 2011 (UTC)[reply]
I never realized it was intentionally coded like this, I just assumed it checked for validity! As for why, no I don't know either. --Mglovesfun (talk) 12:59, 12 August 2011 (UTC)[reply]

request for transliteration edit

What template should I use to mark that a Persian word in the "Translations" section is lacking transliteration? I use {{rfscript}} but then entry goes to the Category:Entries which need Arabic script, not to the Category:Persian terms lacking transliteration. Is there a template for this? Maro 21:48, 13 August 2011 (UTC)[reply]

Ok, there was no such template. I created {{rfr}}. Maro 19:34, 28 August 2011 (UTC)[reply]

Duplicate (but different) moves edit

At 17:17 / 17:18 this after noon two people moved the same page to different targets. Both moves worked, no redirect was left. Is this a bug? SemperBlotto 17:20, 14 August 2011 (UTC)[reply]

Issue with {{nonstandard spelling of}} not using the script specified in the sc= parameter edit

Take a look at he#Mandarin and shi#Mandarin. Even with the sc= parameter specified, the template is still picking up the script associated with the lang= parameter, making the end result a tad difficult to read for some (and god awful to look at). {{Xyzy}} seems to exhibit the same issue. I had a look at both {{deftempboiler}} and {{Xyzy}}, but couldn't find anything wrong. I thought the sc= param was supposed to take precedence over the the script specified by the lang= tag? Is this not the case anymore? JamesjiaoTC 00:08, 15 August 2011 (UTC)[reply]

The {{makelink}} template wasn't accepting sc. Now fixed. --Yair rand 00:37, 15 August 2011 (UTC)[reply]
Thanks Yair rand! JamesjiaoTC 02:34, 15 August 2011 (UTC)[reply]

Issues with search AND secure server edit

Bug description:

  1. Log in to the secure server.
  2. On any page, do a search for a non-existent page title.
  3. On the search page, use the special search box unique to this page, and search for anything. Hit the search button on the page (not in the margin).
  4. Find yourself taken to a "Wiki does not exist" page.

What do we do about this? The set of steps seems to work on e.g. en.wikipedia and sv.wiktionary, so I conclude the issue is local for English wiktionary. \Mike 04:58, 15 August 2011 (UTC)[reply]

Did you file a bug report at bugzilla:? --Yair rand 05:02, 15 August 2011 (UTC)[reply]
Actually, this seems to be an issue with MediaWiki:SpecialSearch.js. --Yair rand 05:06, 15 August 2011 (UTC)[reply]
Fixed. --Yair rand 05:15, 15 August 2011 (UTC)[reply]
Thank you. \Mike 15:57, 15 August 2011 (UTC)[reply]

Deletion perms within one's own User area? edit

I've been working on some template ideas, and have rethought how to organize things a couple times. Moving works well enough, but then I'm left with all these stub pages with unneeded redirects. Is there any way of granting folks deletion permissions just within their own User areas? -- Curious, Eiríkr Útlendi | Tala við mig 09:13, 17 August 2011 (UTC)[reply]

No, but you can ask an admin to delete such pages for you. —RuakhTALK 12:30, 17 August 2011 (UTC)[reply]
...by adding {{d}} to each page, unless there are too many to bother doing that to, in which case identify them (e.g. here).​—msh210 (talk) 14:53, 22 August 2011 (UTC)[reply]

Thank you both. I'll add the {{d}} once I get enough deletable pages to where it makes sense to get rid of them all in one batch. -- Eiríkr Útlendi | Tala við mig 16:43, 22 August 2011 (UTC)[reply]

Oh, don't worry about that. If anything, it might be better to add {{d}} to just an entry or two at a time, rather than flooding the category all at once. —RuakhTALK 23:30, 22 August 2011 (UTC)[reply]
Sounds good, I may have time for that tomorrow. (There's not much that needs tagging, it's just that I saw this right as I'm about to get back to work. :) -- Eiríkr Útlendi | Tala við mig 04:43, 23 August 2011 (UTC)[reply]

Removing prefixes from language templates edit

There was an earlier discussion at Wiktionary:Grease_pit_archive/2010/December#Proposal_to_remove_prefixes_from_language_templates on removing the prefixes "proto:" and "conl:" from language template titles. The only objection given was that moving the templates would complicate AutoFormat's updating of User:AutoFormat/Languages. Since AutoFormat is no longer running, is there any reason not to remove the prefixes? --Yair rand 01:13, 23 August 2011 (UTC)[reply]

The current system is a disgusting mess of ad-hoc code. The real problem is not the prefixes themselves — proto: and conl: are a good way to mark these non-mainspace language codes — but the fact that a large number of existing templates have been retrofitted to support both prefixed and unprefixed language codes by using {{langprefix}}. But since we're never going to fix that problem (one editor in particular is strongly dedicated to the proposition that the difference between mainspace languages and non-mainspace languages should be completely editor-transparent), removing the prefixes is probably the next-best option. —RuakhTALK 12:43, 23 August 2011 (UTC)[reply]
Transparent can mean either that the thing is easy to see (figurative sense) or that it's impossible to see (more literal sense). Often the intended meaning is clear; it's less so in the above.​—msh210 (talk) 18:11, 25 August 2011 (UTC)[reply]
I don't mean either of those. I was pretty sure that my sense was common in programmer circles, but maybe not? Anyway, I mean that the editor in question feels that something like {{term|…|lang=tlh}} should just work; to the extent that we treat Klingon differently from other languages, the editor feels that templates should handle that internally, rather than editors having to be aware of the distinction. (That is, the distinction would be "transparent" to editors, in that they could see right through it: both kinds of languages would be handled the same, from their perspective.) Anyway, thanks for making be clearer. :-)   —RuakhTALK 19:12, 25 August 2011 (UTC)[reply]
Ah, so "impossible to see", then. Not in them, I don't know what's common in programmer circles.​—msh210 (talk) 19:15, 25 August 2011 (UTC)[reply]

Right alignment of images, wikipedia box edit

What method was used to right-align images and the wikipedia box even in long articles, so they don't interfere with the left side and they don't create blank gaps on the left? It would be great to use the same in the Hungarian Wiktionary. Thanks. --Panda10 21:34, 23 August 2011 (UTC)[reply]

Without checking CSS that governs {{wikipedia}}, I'll guess its div.foo{float:right}.​—msh210 (talk) 16:28, 25 August 2011 (UTC)[reply]
Actually, my question is more about the relationship of the left and right sides. What did we do here that the right side is not interfering with the left side? Before, whenever we added multiple images on the right, the trans-top table remained as wide as the page and there were big white gaps. Now it shrinks to allow the right side co-exist with the left and there are no gaps. --Panda10 17:27, 25 August 2011 (UTC)[reply]
Big white gaps before something as wide as the page are usually because the lower-appearing thing has {clear:...} set (or has something appearing right before it (like {{-}}) that has either {clear:...} or <br clear=...>).​—msh210 (talk) 18:08, 25 August 2011 (UTC)[reply]

Adding translations edit

I just tried to add the Luxembourgish 'hoppelen' as a translation of the verb 'hop' using the Add translation tool. It usually works fine, but this time I got the following error message: "Could not find translation entry for 'lb:hoppelen'. Please reformat." Obviously I can still add it manually, but does anyone know why this happened? Cheers, BigDom 11:02, 25 August 2011 (UTC)[reply]

I had these issues as well. There seems to be a conflict with {{trreq}} (translation request) for other languages and {{ttbc}} (translation to checked) even for the language you're actually checking. --Anatoli 02:49, 26 August 2011 (UTC)[reply]

WT:RFV slow, reluctant to load edit

Has anyone else had trouble making changes to WT:RFV — encountering Wikimedia Errors ("Error: ERR_READ_TIMEOUT, errno [No Error]") when trying to add or archive sections? It's almost as if archiving those 300 000 bytes made the page slower... I do not encounter the error when adding to other pages, even pages of comparable size, like this one or WT:RFC. - -sche (discuss) 02:36, 26 August 2011 (UTC)[reply]

I ran into that a lot earlier today with WT:RFD and RFC; I figured maybe there was a lot of traffic on the server, or a lot of editors at work at once, or maybe even a DDOS or something. -- Eiríkr Útlendi | Tala við mig 06:13, 26 August 2011 (UTC)[reply]
Yes. When I update it I get a Wimimedia Error message or similar and I try again - and again... All the edits were successful - so we end up with multiple additions that have to be undone. It's getting to be a pain. SemperBlotto 21:28, 26 August 2011 (UTC)[reply]
The trick, I find, is to look at the recent changes, or Special:MyContributions in a different window. If the message has been posted, simply close the first window. Mglovesfun (talk) 10:26, 27 August 2011 (UTC)[reply]
FWIW, I tried making a couple edits to de:WT:WL (the biggest page I know of on de.Wikt) and had no trouble, though it's possible that page wasn't big enough (only 120 000 bytes). Is this a local en.Wikt issue, or does it appear to be a Wikimedia-wide server issue? - -sche (discuss) 11:14, 29 August 2011 (UTC)[reply]
Feedback is giving the same problem now (but not all the time). SemperBlotto 14:17, 29 August 2011 (UTC)[reply]

This is coming up in Special:UncategorizedPages. For some reason, the server (not because of anything the creator has done) is interpreting all the templates with an uppercase first letter. The entry is correct, as it uses {{mul-proper noun}}, the server however is interpreting this as {{Mul-proper noun}}, which doesn't exist, hence uncategorized. Mglovesfun (talk) 10:04, 27 August 2011 (UTC)[reply]

And now fixed; and I have no idea why. Mglovesfun (talk) 21:22, 27 August 2011 (UTC)[reply]

Correctly sorting categories edit

I'm trying to get Category:Old Irish noun forms to sort properly by treating "á é í ó ú" as equivalent to "a e i o u". Can anyone tell me why the |sort= parameter of {{infl}} works at [[láime]] but not at [[féile]], [[díu]], or [[óil]]? —Angr 17:28, 27 August 2011 (UTC)[reply]

Apparently, that's because {{dative of}} and {{genitive of}} try to categorize and sort the entries again. --Daniel 17:43, 27 August 2011 (UTC)[reply]
But [[láime]] is using {{genitive of}} and it's sorting correctly. —Angr 17:55, 27 August 2011 (UTC)[reply]
I'm with Angr on this; the syntax currently used in óil really ought to work. Perhaps it's the server then, when it refreshes it will be ok. Mglovesfun (talk) 18:05, 27 August 2011 (UTC)[reply]
No, not actually. [[láime]] does not have a |lang=sga, which makes a difference, for some reason. --Daniel 18:07, 27 August 2011 (UTC)[reply]
Indeed it does. I took the |lang=sga out of the other three, and now they sort correctly too. —Angr 18:17, 27 August 2011 (UTC)[reply]
It's because {{genitive of}} categories in [[Category:<langname> noun forms]]

, and it's trumping the sort key in {{infl}}. Mglovesfun (talk) 21:22, 27 August 2011 (UTC)[reply]

Daniel C said this above, my bad. Mglovesfun (talk) 21:23, 27 August 2011 (UTC)[reply]

AWB being an ass edit

I'm trying to get all the transclusion of {{sv-decl-noun}}, including the templates that use it as a base (see Category:Swedish declension-table templates. I'm using AWB's 'skip' tab, selecting Contains: (that is, skip if the page contains) which is what I used to find out which pages in Category:French verbs weren't using {{fr-verb}}. I then ticked regex and put in

====Declension====\n\{\{sv\-noun\-

. All I want it to do is skip pages containing that, thinning the list. Then I put in after that

====Declension====\n\{\{sv\-decl\-noun\|

and that should skip anything. But it's not working, I'm not sure if it's the \n syntax that it won't accept or what. PS it might be possible to combine all of these into one single, but bigger expression: how about

Declension(====|=====)(\n|\n\n)\{\{sv\-(decl\-noun\||noun\-)

? Mglovesfun (talk) 21:29, 27 August 2011 (UTC)[reply]

If I understand you correctly, building a list this way in AWB might be hard because you will have to log by hand all the pages it didn't automatically skip. Using the database dump tool is probably easier. If you do that, you might have to check for \r's with your \n's. A simplified regexp could be
Declension====+[\r\n]+\{\{sv-(decl-)?noun
--Bequw τ 03:53, 29 August 2011 (UTC)[reply]
You're correct, every time it doesn't skip an entry, I move on to the next entry and press 'Start'. It's not really 'hard' though, I just keep checking until the list is finished. Time consuming in some cases yes, hard, no. Mglovesfun (talk) 09:47, 29 August 2011 (UTC)[reply]

URL simplifier edit

Does anyone know of resources that can simplify long URLs, stripping out unnecessary field-value pairs from long query strings? For instance, Google Books URLs are often really long, but we can shorten it down to include a more manageable link the wikitext, while still having it link to the correct book and page number. These aren't w:URL shorteners but the intent is similar. --Bequw τ 16:41, 28 August 2011 (UTC)[reply]

Javascript minification edit

Has anyone debated minifying our Javascript code? I'm not sure if post-compression it would change the file sizes much, but I thought I'd ask. --Bequw τ 19:03, 29 August 2011 (UTC)[reply]

Don't the Wikimedia servers serve all pages gzipped already? -- Liliana 19:23, 29 August 2011 (UTC)[reply]
I believe so, but minified & gzipped is still smaller than just gzipped. See this related post on wikipedia where pre-compression minification reduces final file size by 47%. --Bequw τ 19:43, 29 August 2011 (UTC)[reply]

Importing a batch of entries edit

I have about 2,500 pre-formatted English noun entries to import (specific minerals; and a small handful exist already in Wiktionary and should be skipped). What is a good way to do this, or can somebody do it for me? (Although I've used DotNetWikiBot in the past for retrieving pages, it will not let me save a page — "500 Internal Server Error" — and the inadequate documentation makes this impossible for me to diagnose.) Thanks. Equinox 15:13, 31 August 2011 (UTC)[reply]

Is it merely a matter of rote copying and pasting from a master document? Send me a batch and I'll help (my email is my username at hotmail). Cheers! bd2412 T 17:44, 31 August 2011 (UTC)[reply]
I mailed you a copy. I've actually pasted a bunch of them in manually since then, but it is slow going and not good for the fingers. Equinox 20:48, 31 August 2011 (UTC)[reply]
I can do it for you, or if you have Perl installed, I can send you code to do it yourself. —RuakhTALK 20:44, 31 August 2011 (UTC)[reply]
Could you mail me the code, please? It's been a while since I've used Perl but I am vaguely familiar with it, enough to make any tweaks I would need. Thanks! Equinox 20:48, 31 August 2011 (UTC)[reply]

Etymologies edit

I am trying to pull out all Wiktionary entries of Akkadian origin. I have tried using category:en:akkadian derivations but it doesn't work, yet I know Akkadain etymologies do come up in Wiktionary entries e.g. tandoor, souq.

Is there any way I can draw out all such entries? — This unsigned comment was added by Rdurkan (talkcontribs).

See Category:Terms derived from Akkadian. --Yair rand 21:34, 31 August 2011 (UTC)[reply]

I did already find this page but it didn't list tandoor and souq. They must have been added since. Is there any page which lists all Akkadian derivations? Is there a way I could also pull out all Aramaic and more generally, all Semitic derivations?

Also see Category:English terms derived from Akkadian. Besides this, you could search for Etymology Akkadian. —Stephen (Talk) 15:11, 1 September 2011 (UTC)[reply]