[Pywikipedia-l] [ pywikipediabot-Bugs-2011362 ] featured.py: Add 'Link FA' again for hi and yi
SourceForge.net
noreply at sourceforge.net
Fri Jul 11 05:51:54 UTC 2008
Bugs item #2011362, was opened at 2008-07-05 20:07
Message generated for change (Comment added) made by melancholie
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2011362&group_id=93107
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Melancholie (melancholie)
Assigned to: Nobody/Anonymous (nobody)
Summary: featured.py: Add 'Link FA' again for hi and yi
Initial Comment:
Both, hiwiki and yiwiki do use Template:Link_FA, the pages hi:Template:Lien AdQ and yi:Template: are only redirects.
By re-adding 'Link FA' to the langs arrays, Template:Link_FA will be used by the bot (otherewise those redirects).
----------------------------------------------------------------------
>Comment By: Melancholie (melancholie)
Date: 2008-07-11 07:51
Message:
Logged In: YES
user_id=2089773
Originator: YES
Maybe I was a little bit too imprecise ;-)
Here is what I mean:
templatelist = template['_default']
try:
templatelist += template[tosite.lang]
+ (u" {{%s|%s}}" % (templatelist[0],
fromsite.lang))
templatelist[0] is 'Link FA', but the localized templates used are
templatelist[1]. If there is a localized template (with Link_FA being only
a redirect) it should be used for edit. So it might be good to change the
order (make 'try:' first, add _default with +=)
For hi, yi the easiest way might be to just comment out the localized
template names, as they are only redirects to Link_FA.
----------------------------------------------------------------------
Comment By: Melancholie (melancholie)
Date: 2008-07-10 11:59
Message:
Logged In: YES
user_id=2089773
Originator: YES
So {{Link FA}} is always the first choice?
Or does _default actually follow redirects?
----------------------------------------------------------------------
Comment By: NicDumZ Nicolas Dumazet (nicdumz)
Date: 2008-07-10 10:41
Message:
Logged In: YES
user_id=1963242
Originator: NO
I'm not sure melancholie :)
I added {{Leam VdC}} in r5707, however, since r5669 (
https://fisheye.toolserver.org/browse/pywikipedia/trunk/pywikipedia/featured.py?r1=5637&r2=5669#seg13
) it uses the '_default' entry (Link FA) AND the locale entry. The list for
hi: is for example ['Link Fa', 'Lien AdQ']
----------------------------------------------------------------------
Comment By: Melancholie (melancholie)
Date: 2008-07-10 10:28
Message:
Logged In: YES
user_id=2089773
Originator: YES
Furthermore, add http://fur.wikipedia.org/wiki/Model:Leam_VdC
[I wish I were able to do this things myself, but *still* no account yet]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2011362&group_id=93107
More information about the Pywikipedia-l
mailing list