Created page with "{{archive notice}} = May 2011 = == Audio bot == Could somebody please check if my bot does not spoil anything while adding audio files? I am not active on en.wiktionary and don'..."
New page
{{archive notice}}
= May 2011 =
== Audio bot ==
Could somebody please check if my bot does not spoil anything while adding audio files? I am not active on en.wiktionary and don't check latest policy changes. Bot contributions: [[Special:Contributions/DerbethBot]]. --[[User:Derbeth|Derbeth]] [[User talk:Derbeth|<sup>talk</sup>]] 17:31, 1 May 2011 (UTC)
== Orange links ==
[[User:Yair rand/orangelinks.js]] is a script that turns all links to language sections that don't exist orange where the broken links would otherwise be blue. It works by requesting the full wikitext of each of the relevant pages from the API, and checking whether the target language section exists on the page. Does anyone know whether, if the script was turned on by default, it would cause problems to have such large requests being made on every page load? --[[User:Yair rand|Yair rand]] 21:45, 1 May 2011 (UTC)
== How to most effectively add script templates ==
As a bit of an 'experiment' I converted {{temp|l|xcl}} to {{temp|l|xcl|3=sc=Armn}} in all Old Armenian entries; as I said above, I think the worst that can happen in this case is <tt>sc=Armn</tt> will appear twice, and really, there's no problem there. It's a bit ugly though, as named parameters should come after unnamed parameters, namely <tt>{{{1}}}</tt> and <tt>{{{2}}}</tt> for {{temp|l}}, but I'm unsure of how to do that. Also, how easy would it be to check (using regexes in my case) for <tt>sc=Armn</tt> appearing twice in a template, and being able to remove it. [[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 12:14, 2 May 2011 (UTC)
: Strictly speaking, it is theoretically impossible for a single regular expression to determine what parameters are used in a template and where a template-call ends: the ability of template calls to be nested arbitrarily is beyond a regular expression's ability to understand. That said, if we restrict consideration to template-calls whose interiors do not contain <tt>{</tt> or <tt>}</tt> — by far the most common case — then we can replace <tt><nowiki>(\{\{l\|xcl\|[^\{\}]+)\}\}</nowiki></tt> with <tt><nowiki>$1|sc=Armn}}</nowiki></tt> (adding <tt>|sc=Armn</tt> to the end of any template-call that starts with <tt><nowiki>{{l|xcl|</nowiki></tt> and doesn't otherwise contain <tt>{</tt> or <tt>}</tt>) and <tt><nowiki>(\{\{l\|xcl\|[^\{\}]+)\|sc=Armn\|([^\{\}]+\|sc=Armn\}\})</nowiki></tt> with <tt><nowiki>$1|$2</nowiki></tt> (removing <tt>|sc=Armn</tt> from the interior of any template-call that starts with <tt><nowiki>{{l|xcl|</nowiki></tt>, ends with <tt><nowiki>|sc=Armn}}</nowiki></tt>, and doesn't otherwise contain <tt>{</tt> or <tt>}</tt>). For a bit more coverage, you can sprinkle in <tt>\s*</tt> wherever whitespace is allowed. —[[User: Ruakh |Ruakh]]<sub ><small ><i >[[User talk: Ruakh |TALK]]</i ></small ></sub > 13:01, 2 May 2011 (UTC)
::That explains why I was finding it so hard. Hmm. [[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 13:08, 2 May 2011 (UTC)
:::I'm happy to do replacements like the one above for languages only written in one script, such as Old Armenian, is this sort of replacement. The only 'problems' are really cosmetic rather than functional (unless someone can show otherwise) that script templates can appear twice, and can appear before the word itself. FWIW I was [[User talk:Msh210|talking]] to msh210 about character ranges; [[User:Tbot/code/script|this tbot userpage]] seems to be a bit of a gem, the idea is to detect script from the character range and add a script template accordingly. I'm not gonna do anything at the moment, though, apart from discuss it. [[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 11:13, 3 May 2011 (UTC)
:::: Re: "The only 'problems' are really cosmetic rather than functional (unless someone can show otherwise) that script templates can appear twice, and can appear before the word itself": I don't get it. Were you not satisfied with my suggestion above? —[[User: Ruakh |Ruakh]]<sub ><small ><i >[[User talk: Ruakh |TALK]]</i ></small ></sub > 11:18, 3 May 2011 (UTC)
:::::Right, I was fooled by "Strictly speaking, it is theoretically impossible for a single regular expression to determine what parameters are used in a template and where a template-call ends". I thought you were saying your script wouldn't actually work. I see what you mean now. [[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 12:00, 3 May 2011 (UTC)
::::::I shall give it a go before running it 'en masse' to see if there are any problems. [[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 12:02, 3 May 2011 (UTC)
:I ran it using hy instead of xcl ({{temp|hy}} = Armenian) using the regex function of AWB and it skipped all 8000+ Armenian entries. [[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 23:05, 3 May 2011 (UTC)
:: I don't know much about AWB; what does that mean? I just tested my first regex above, after changing <tt>xcl</tt> to <tt>hy</tt>, and — for example — it matches two occurrences in [[[[ալոէ]]]]. (That's using JavaScript regexes, but judging from [[w:Wikipedia:AutoWikiBrowser/Regular expression]], AWB regexes seem to be the same in all relevant respects.) Actually, the above wouldn't work perfectly at that page — in my second substitution, I didn't consider the case that <tt>\|sc=Armn</tt> had originally appeared at the ''end'' of the template-call — but I don't see why AWB would have skipped that page, since the first substitution ''does'' match. (BTW, to address the issue I just mentioned, the second substitution should replace <tt><nowiki>(\{\{l\|xcl\|[^\{\}]+)\|sc=Armn(?=\|)([^\{\}]*\|sc=Armn\}\})</nowiki></tt> with <tt><nowiki>$1$2</nowiki></tt>.) —[[User: Ruakh |Ruakh]]<sub ><small ><i >[[User talk: Ruakh |TALK]]</i ></small ></sub > 23:27, 3 May 2011 (UTC)
:::Perhaps it's human error on my part. --[[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 11:50, 4 May 2011 (UTC)
== Translation cleanup script ==
I'm playing with [[User:Mglovesfun/add t.js]] in an attempt to write a script to add {{temp|t}} and also move transliterations and genders inside the {{temp|t}} templates. It seems to be beyond my capability and don't, worry, I'm not planning on running it any time soon. Current problems is that it matches the format <code><nowiki>* <languagename>: [[foo]]</nowiki></code> anywhere, so it'll add it for descendants too. Also, it will only format the first link, so <code><nowiki>* <languagename>: [[foo]], [[bar]]</nowiki></code> will only add t to foo, not bar. There loads of stuff I can mention, those are too obvious ones. [[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 11:48, 3 May 2011 (UTC)
:You could limit it to inside ttables by adding <tt>(?=([\s\S](?!\{\{trans\-top))+\{\{trans\-bottom\}\})</tt>to the end of the regexp. --[[User:Yair rand|Yair rand]] 22:57, 3 May 2011 (UTC)
::Could you add it to that page? [[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 23:07, 3 May 2011 (UTC)
== smart quotes ==
[[Template_talk:term#Smart_quotes]], any input? [[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 15:36, 3 May 2011 (UTC)
: This seems like more of a beer-parlour issue, no? —[[User: Ruakh |Ruakh]]<sub ><small ><i >[[User talk: Ruakh |TALK]]</i ></small ></sub > 17:04, 3 May 2011 (UTC)
:: I don't disagree. [[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 23:06, 3 May 2011 (UTC)
== DEFAULTSORT in Greek entries and interwiki order ==
I tried a python script we use in el.wikt to add DEFAULTSORT keys to Greek words ([[User:Flubot/Adding_DEFAULTSORT_key_to_Greek_words]]). It's not very elegant because I've made some changes to run it here, but it works. There are two points: (a) If someone had previously inserted a valid DEFAULTSORT key somewhere in the middle of the text, the script moves it right before interwiki links. This change is not necessary but harmless, I think. (b) It changes the order of some interwiki links, for example it moves hu after lt, i.e. Magyar after Lietuvių (see [http://en.wiktionary.org/w/index.php?title=%CF%8C%CF%87%CE%B9&diff=prev&oldid=13048454 this]) and Suomi after Romanian, ie fi after ro ([http://en.wiktionary.org/w/index.php?title=%CE%AF%CF%83%CF%89%CF%82&diff=prev&oldid=13048451 here]). That seems alright to me but I would like to have other opinions before I go on with this script. --[[User:Flyax|flyax]] 02:23, 5 May 2011 (UTC)
I see that Interwicket used to sort interwikis by language name and not by language code order (see [http://en.wiktionary.org/w/index.php?title=Absinth&diff=4679108&oldid=4611950 Absinth]). Luckas-bot does the same (see [http://en.wiktionary.org/w/index.php?title=φόρος&diff=13048413&oldid=13048396 φόρος]). So, if their is no objection I'll resume my edits with this script in a couple of days. --[[User:Flyax|flyax]] 11:57, 6 May 2011 (UTC)
== Subpages for entries? ==
:''moved to the [[Wiktionary:Beer parlour#Subpages for entries.3F|Beer parlour]]''.
== pywikipediabot - Importing existing free-licensed database into Khmer Wikt ==
Greetings from Khmer Wikt!
I have came across a blog post somewhere about pywikipediabot in importing existing database from a free-licensed dictionary into Wikt. I heard that the Burmese or Lao project has been doing it. So, how can I and my team make sure of this bot for Khmer Wikt project?
Currently, there's 1-2 active users who devote their time to manually make each entry one by one into our Khmer Wikt. So, I need your help in exploring if this pywikipediabot can help make life easier with a great deal of time saved!
Thank you! --[[User:វ័ណថារិទ្ធ|វ័ណថារិទ្ធ (Vantharith)]] 16:36, 7 May 2011 (UTC)
== Autoformat ==
For some time I haven't been finding any results from either Autoformat or a replacement on various clean-up lists. Is that because there is nothing to clean up? If not, this would to make it highly likely that entropic processes will eventually overwhelm us. [[User: DCDuring |DCDuring]] <small >[[User talk: DCDuring|TALK]]</small > 11:41, 8 May 2011 (UTC)
*There are over 500 articles that have an {{temp|rfc-auto}} template. Are you still doing those? [[User:SemperBlotto|SemperBlotto]] 16:53, 8 May 2011 (UTC)
**AutoFormat died ages ago, in my opinion never to return, and KassadBot has no edits since the 1st of May. --[[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 12:01, 9 May 2011 (UTC)
: Do we actually need a bot running 24/7 to format pages? Are cleanup lists generated from the dumps enough? [[User:Nadando|Nadando]] 20:13, 9 May 2011 (UTC)
::Not 24/7 but if it's once a day, it certainly helps! --[[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 11:12, 16 June 2011 (UTC)
== Make conjugation box open immediately ==
Hi, Can I make the conjugation box open immediately when I enter an entry? For example: If I go to [[parlare]] the Conjugation is hidden and i need to manually press "show" in order to show it. [[User:Jobnikon|Jobnikon]] 16:13, 8 May 2011 (UTC)
*See [[:Wiktionary:Per-browser preferences]]. Specifically , tick the box that says "Show the translation sections expanded, instead of having them collapsed." = this applies to all such sections, not just translations. [[User:SemperBlotto|SemperBlotto]] 16:49, 8 May 2011 (UTC)
::Thanks![[User:Jobnikon|Jobnikon]] 17:09, 8 May 2011 (UTC)
:Or you could just click "Show conjugation" in the "Visibility" section of the sidebar. --[[User:Yair rand|Yair rand]] 20:49, 8 May 2011 (UTC)
== [[MediaWiki:Categoriespagetext]] ==
This page contains a deprecated message; [[Special:CategoryTree]] was implemented long ago. It should either be deleted, in which case it would revert to the default message <nowiki>"The following {{PLURAL:$1|category contains|categories contain}} pages or media. [[Special:UnusedCategories|Unused categories]] are not shown here. Also see [[Special:WantedCategories|wanted categories]]."</nowiki> Or the portion labeled <nowiki>"the [http://tools.wikimedia.de/~daniel/WikiSense/CategoryTree.php?wikilang=en&wikifam=.wiktionary.org&cat=*Topics&m=c&go=Load&userlang=en&terse= Category Tree browser] from the Toolserver"</nowiki> should be changed to <nowiki>"[[Special:CategoryTree|the CategoryTree]]"</nowiki> instead, or something similar. [[User:TeleComNasSprVen|TeleComNasSprVen]] 23:42, 11 May 2011 (UTC)
== [[:Template:la-present participle]] ==
"Category:Latin words needing attention" needs to be changed to "Category:Latin terms needing attention", but unfortunately this template is protected. [[User:TeleComNasSprVen|TeleComNasSprVen]] 05:28, 12 May 2011 (UTC)
:Done. --[[User:Yair rand|Yair rand]] 05:30, 12 May 2011 (UTC)
::I find it a bit irritating that such templates don't categorize when the form with macrons isn't given. That is, even when there are no macrons, you have to write out the page name to tell the template that, or else it won't categorize. --[[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 11:20, 12 May 2011 (UTC)
== Anonymous feedback ==
I noticed while I was logged out that there is a section located in the sidebar titled "feedback" with the header "Send you anonymous feedback to Wiktionary" and includes several javascript commands to mark an entry a particular way according to a standard scale of some sort, as well as a link directly to [[Wiktionary:Feedback]], which is of course where we get all of our feedback in writing. However the section disappears while I am logged in, and I'm no longer able to comment on a particular entry. Why has this feature been removed for autoconfirmed users who just wish to scroll through entries? [[User:TeleComNasSprVen|TeleComNasSprVen]] 00:52, 13 May 2011 (UTC)
:I think it's assumed that logged-in users would fix something themselves, or have a better idea of how to get someone to fix it. —'''[[User:Internoob|Internoob]]''' ([[User talk:Internoob|Disc]]•[[Special:Contributions/Internoob|Cont]]) 03:25, 21 May 2011 (UTC)
::Apparently is has to be anonymous, you can't do it while logged in. [[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 13:10, 22 May 2011 (UTC)
::: This has always been for unregistered users only. It wouldn't be hard to enable it for all users but, as Internoob pointed out, it didn't seem like something most users would want. - {{User:TheDaveRoss/sig}} 20:40, 20 June 2011 (UTC)
== Making topic cat use numbered parameters ==
Currently, (almost) all category boiler templates have the language code as the first numbered parameter, and the name of the category as the second. {{temp|topic cat}} is rather conspicuous because it requires parameters called lang= and current= instead. Would anyone object if I modified the template so that it allows you to call it with numbered parameters as well, like other boiler templates? —[[User:CodeCat|CodeCa]][[User talk:CodeCat|t]] 16:20, 16 May 2011 (UTC)
:I've spotted this before; I'd say go for it. Obviously lang and current should still work, as they're so widely use. Looks like a good case where regular expressions could be used to simplify these templates using MglovesfunBot. [[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 21:12, 17 May 2011 (UTC)
:: I have made the change now, and a few categories now use this newer system. Would anyone object to running a bot that converts the old style to the new, or is that going overboard? —[[User:CodeCat|CodeCa]][[User talk:CodeCat|t]] 12:37, 22 May 2011 (UTC)
:::I '''support''' using a bot to do that. --[[User:Daniel.|Daniel.]] 12:44, 22 May 2011 (UTC)
:::Since it's thousands and thousands of edits, I think it's "going overboard" to do it without a vote. —[[User: Ruakh |Ruakh]]<sub ><small ><i >[[User talk: Ruakh |TALK]]</i ></small ></sub > 13:05, 22 May 2011 (UTC)
::::I don't see how the number of edits matter when they're all minor. It wouldn't change the readers interface at all - it would appear the same to readers (i.e. non-editors) a bit like changing {{temp|infl|fr|adverb}} to {{temp|fr-adv}}. Plus, the old system would still work - editors can still use it, just a bot may modify it later to do the same thing, just slightly simpler. [[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 13:08, 22 May 2011 (UTC)
:::::[[WT:BOT]] says "I will make sure that the task is so innocuous that no one could possibly object". That's not good wording, as it doesn't care why someone objects. In theory, even if nobody does object, someone could hypothetically object or hypothetically have objected, so no task would ever pass under this rule. Furthermore I could object just because I'm in a bad mood or I have a grudge against someone. Anyway, in upholding what I'd like to think is the spirit of this rule, there's no reasonable reason<!--horrible English, I apologize--> to object to this. So under the spirit of the law, this doesn't even require consultation, never mind a vote. [[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 13:14, 22 May 2011 (UTC)
:::::: The only reason I can think of for not doing this is if we prefer {{temp|topic cat|lang<nowiki>=</nowiki>fr|current<nowiki>=</nowiki>Something}} over {{temp|topic cat|fr|Something}} for 'canonical' reasons... But topic cat has always been a bit of an odd one out when it comes to the category structure. —[[User:CodeCat|CodeCa]][[User talk:CodeCat|t]] 13:28, 22 May 2011 (UTC)
== Orphaned appendix pages ==
Is there a way to find out which appendix pages do not have links to them? It would be useful to be able to see which of our reconstructed entries are not linked to from etymologies yet. —[[User:CodeCat|CodeCa]][[User talk:CodeCat|t]] 12:36, 22 May 2011 (UTC)
== Help with [[Template:syc-root-entry]] ==
So currently, [[Template:syc-root-entry]] is set up to include three (and only three) letters as the basis of the Syriac root. That covers the vast majority of Syriac roots, however, there are quite a few that don't follow this pattern. Some will have only ''two'' letters, others ''four'' or sometimes ''five''. Is it possible to set the template up in a way so that it includes all of those possibilities? I'm guessing it's an easy fix, maybe make ''two'' letters required and the rest optional with "#if:" or something. --[[User:334a|334a]] 20:41, 22 May 2011 (UTC)
:How's {{diff|13166488|10788274|this}}? --[[User:Yair rand|Yair rand]] 20:54, 22 May 2011 (UTC)
:: I've cleaned it up a bit by adding line breaks, and I changed the nested ifs to ifs appearing side by side, because there doesn't seem to be any difference. —[[User:CodeCat|CodeCa]][[User talk:CodeCat|t]] 21:10, 22 May 2011 (UTC)
:::With the ifs nested it wouldn't have to actually run the parserfunctions after the first blank parameter, I think. --[[User:Yair rand|Yair rand]] 21:15, 22 May 2011 (UTC)
::::That works beautifully! Many thanks to both of you. :) --[[User:334a|334a]] 21:43, 22 May 2011 (UTC)
:::::Or should that be... {{temp|syr-root-entry}}? See the discussion below (June 2011). --[[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 11:11, 16 June 2011 (UTC)
=="Sister projects==
Thought you might find this interesting:[[http://lists.wikimedia.org/pipermail/wikitech-l/2011-April/052603.html]][[User:Geofferybard|Geof Bard]] 04:11, 24 May 2011 (UTC)
== [[:Category:Requests for cleanup (Portuguese verb form)]] ==
These seem to be Dawnraybot edits, many of them. How do we fix them? --[[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 11:10, 24 May 2011 (UTC)
: Remove variables from templates. For example:
:''<nowiki># {{pt-verb form of|[[abandonar]]|ar|indicative|tense=preterite|number=plural|person=first-person|dialect=brazil}}</nowiki>''
:change into
:''<nowiki># {{pt-verb form of|[[abandonar]]|ar|indicative|preterite|plural|first|dialect=brazil}}</nowiki>''
:[[User:Ungoliant MMDCCLXIV|Ungoliant MMDCCLXIV]] 00:24, 8 June 2011 (UTC)