From LyricWiki
| Archives
| |
|---|---|
| SOTD
| |
Contents |
[edit] Uploading album art
In view of what happened with Lion King, could we not make the file link directly to the upload page by using Template:Clickpic on the album template? ♫♫Яєdxx ♪♫♪♫♪ Actions Words 13:27, 26 February 2009 (UTC)
This is why....
clickpic:
commented out because clickpic won't live much longer
Navimg:
same
♫♫Яєdxx ♪♫♪♫♪ Actions Words 03:07, 27 February 2009 (UTC)
- Ah. Yes, can't do that with divs (and can't do navimg without divs… yet). Which is also why {{wpi}} doesn't work properly :-) (Have you tried it inside a paragraph yet?) — 6x9 (Talk) 03:12, 27 February 2009 (UTC)
- I don't get the paragraph thing but I've done exactly what you did with User:Redxx/Sandbox/Wpi above..to no effect ♫♫Яєdxx ♪♫♪♫♪ Actions Words 14:26, 27 February 2009 (UTC)
- Trouble is, vertical-align doesn't work with <span> (at least, not inside a paragraph), so you'd need a <div>, but that will automatically start a new paragraph. The simplest solution would be to use an image that is small enough it never exceeds the font-height, even at the smallest font-size. Another would be to leave off the image entirely and mark the link by wrapping < and > around it. But then, you're hardly the type to use text-only when you can throw in images left and right… — 6x9 (Talk) 14:42, 27 February 2009 (UTC)
- Correction: [[Image:…]] allows for vertical alignment. (Believe it or not, the MediaWiki help is useful occasionally.) — 6x9 (Talk) 15:04, 27 February 2009 (UTC)
- Aye it is but I like this one better >>Metawiki ♫♫Яєdxx ♪♫♪♫♪ Actions Words 18:34, 27 February 2009 (UTC)
- I don't get the paragraph thing but I've done exactly what you did with User:Redxx/Sandbox/Wpi above..to no effect ♫♫Яєdxx ♪♫♪♫♪ Actions Words 14:26, 27 February 2009 (UTC)
[edit] Don't leave us for good :)
Hi, Aq. Sad news... Hope you aren't going to leave lw for good. And while you are here, can I ask you for a last favor? Could you, as well-known icon-maker, make a better icon for {{lrcDB}}?. tia and good luck in your new job, --Senvaikis (talk) 10:51, 27 March 2009 (UTC)
- Come back soon Aqua...Miss you already ♫♫Яєdxx ♪♫♪♫♪ Actions Words 17:59, 28 March 2009 (UTC)
[edit] SandBot
Hi Aqua, I hope you are well and not working too hard.
OK Category:Language/Македонски I wanted to do a replace of the language parameter on the 45 songs that were in this category, but pywikipedia didn't like this alphabet and just translated Македонски to lots of ???????.
So when you got a minute could you just tell me how to resolve this? I'm usually able to resolve these oddities from things you've told me in the past but not this one. Thanks! ♫♫Яєdxx ♪♫♪♫♪ Actions Words 00:13, 20 June 2009 (UTC)
- This is a battle I fought a while ago. Are you using
command.com, i.e., the DOS command prompt from Windows? --Aquatiki 04:37, 20 June 2009 (UTC)- I use "cmd" (Windows XP) via "Run" to get into DOS. I then navigate to the pywikipedia directory (then enter my argument). ♫♫Яєdxx ♪♫♪♫♪ Actions Words 08:14, 20 June 2009 (UTC) P.S. I used the command prompt via the start menu but was the same result.
- Right, those are the same thing. Type '
chcp' at the command prompt to show which code page you are using. Pywikipedia is expecting Unicode. I think you can switch to that by typing 'chcp 437' at the command prompt. [1] --Åqüã†ìкí ƒΔΣ ¶ 08:39, 20 June 2009 (UTC)- Seems already is. "Active code page: 437". ♫♫Яєdxx ♪♫♪♫♪ Actions Words 03:58, 21 June 2009 (UTC)
- My bad, you want 65001 --Åqüã†ìкí ƒΔΣ ¶ 04:11, 21 June 2009 (UTC)
- Part 1 - changing code
- Part 2 - changing directory
- Part 3 - COPYING from word document...
- Part 4 - results after pasting into DOS window, i.e. a variation on the ???? theme
- Part 5 - error message (connection wasn't down btw)
- Part 6 - error message (after retrying)
- So where is it falling down? When I copy and paste the word Македонски into DOS window from my Word document? I wouldn't know how to get Македонски into DOS any other way, other than by copying each letter individually from the Windows "character map" and forming the word Македонски in a Word document... ♫♫Яєdxx ♪♫♪♫♪ Actions Words 11:17, 21 June 2009 (UTC)
- My bad, you want 65001 --Åqüã†ìкí ƒΔΣ ¶ 04:11, 21 June 2009 (UTC)
- Seems already is. "Active code page: 437". ♫♫Яєdxx ♪♫♪♫♪ Actions Words 03:58, 21 June 2009 (UTC)
- Right, those are the same thing. Type '
- I use "cmd" (Windows XP) via "Run" to get into DOS. I then navigate to the pywikipedia directory (then enter my argument). ♫♫Яєdxx ♪♫♪♫♪ Actions Words 08:14, 20 June 2009 (UTC) P.S. I used the command prompt via the start menu but was the same result.
Ugh. What does your user-config.py say? [2]
console_encoding = 'utf-8' textfile_encoding = 'unicode_escape'
--Åqüã†ìкí ƒΔΣ ¶ 04:22, 22 June 2009 (UTC)
- Didn't work for me, I get 10 "H"s then. - Chris 09:59, 23 July 2009 (UTC)
[edit] Bot
You will be pleased to know that I'm gaining a little more confidence with this. However, can you just tell me the correct code for:
python replace.py -start:鄭秀文 "鄭秀文" "鄭秀文 (Sammi Cheng)"
I tried:
python replace.py -start:鄭秀文 -regex "\鄭\秀\文" "鄭秀文 (Sammi Cheng)"
but it just seems to want to start at the beginning of all pages, i.e. A.
I think it's got something to do with this textfile_encoding = 'unicode_escape' hasn't it?
Oh and my user-config.py:
mylang='en'
family = 'lyricwiki'
usernames['lyricwiki']['en']=u'SandBot'
console_encoding = 'iso-8859-1'
I changed console_encoding from UTF because UTF has some serious problems with accents, etc. and iso-8859-1 doesn't seem to (asides from Japanese ones of course -lol).
Thanks! ♫♫Яєdxx ♪♫♪♫♪ Actions Words 11:24, 26 July 2009 (UTC)
- And where am I gong wrong with this
python replace.py -start:"The_Broadways"-regex "-\{\{mergefrom\|(.*)(\}\}"
- ♫♫Яєdxx ♪♫♪♫♪ Actions Words 14:20, 26 July 2009 (UTC)
- P.S. If anyone reads this before Aqua and knows the solutions, I would appreciate the help :-) And yes, I will post in Bot Portal next time (lol)
python replace.py -start:"The_Broadways"-regex "-\{\{mergefrom\|(.*)(\}\}"- I don't know what you want to do, but those 2 characters (highlighted red ;)) look like typos. Furthermore I'd add a space in front of the
-regex-flag. And is the-start-page supposed to be in quotes? And last but not least: what do you want to replace the found pattern with? - Chris 15:09, 26 July 2009 (UTC)- Thanks Chris. I want to remove (hence the -) the {{mergefrom}} template from the Broadway's pages. I don't want to replace with anything. Duh! I think I just sussed part of the problems... ♫♫Яєdxx ♪♫♪♫♪ Actions Words 17:32, 26 July 2009 (UTC) P.S. re second red character
- The difference between your task and ES task is that ES pattern was constructed for all page text replacing (the second parentheses pair matches all text, subsequent to template), while you are going to remove only mergefrom template. So, you don't need this parentheses pair part; especially bad idea was to take only opening bracket ;). Shortly speaking, you should remove this opening bracket, rightly marked in red by Chris. Btw, ES sample isn't absolutelly correct in some cases too ;) --Senvaikis (talk) 19:32, 26 July 2009 (UTC)
- Hmm, if I wanted to remove something with replace I'd try it this way...
python replace.py -start:The_Broadways -regex "\{\{mergefrom\|.*\}\}" ""The brackets ( and ) are completely useless imo, why save the found pattern if you do not want to use it later? But I don't know replace.py as well as you (used it only twice so far). Does this "-" work? Because afaIk this is just the automatically created summary. See auto-summary here for this task - Chris 21:49, 26 July 2009 (UTC)
- Hmm, if I wanted to remove something with replace I'd try it this way...
If I hadn't seen what ES had done and I had been asked to write the code from scratch I would've got it right. Maybe I've learnt an important lesson here...
Now with regards to my other question. Any ideas on that? ♫♫Яєdxx ♪♫♪♫♪ Actions Words 02:10, 27 July 2009 (UTC)
[edit] Invite
- LyricWiki_talk:Administrators_Portal#The_Despised_and_Torturous_LW:PN Kiefer talk contribs admin 18:17, September 15, 2009 (UTC)
[edit] Δυνατά_(Homecoming)
Um... why did you revert this? I moved the translations here and here. Titaki 19:36, September 24, 2009 (UTC)
- I'm sorry, you're probably right. Is that how we're doing things now? I've been out of the loop for so long, I should just not tough anything. Sorry! --Aquatiki 20:04, September 24, 2009 (UTC)
- It's okay. It's hard to keep up with everything. I was just surprised. :) Titaki 20:07, September 24, 2009 (UTC)
