[prev in list] [next in list] [prev in thread] [next in thread]
List: pywikipediabot-users
Subject: Re: [pywikibot] Transcluding templates in a category
From: Bináris <wikiposta () gmail ! com>
Date: 2016-08-22 16:19:37
Message-ID: CAD0L+c9mVHyE6tDz54UR54bW4jPiA0NMpJj7f+ivFcowYbOObQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
2016-08-22 16:12 GMT+02:00 Bináris <wikiposta@gmail.com>:
> Hi,
> https://hu.wikipedia.org/wiki/Kateg%C3%B3ria:Telep%C3%BCl%
> C3%A9sek_infoboxsablonjai
> this category contains infobox templates of settlements.
>
> How can I run replace.py on articles that transclude any of these
> templates?
>
>
> I did an ugly workaround: listed the templates from category to a file
using -cat, then made global replacements in Notepad++ to get batch-like
lines from template names, sauch as
replace.py -"transcludes:Település infobox" pozició pozíció -save:poz.txt
-always
then I changed line endings to Windows-style, and pasted the whole stuff to
command line. (A normal batch file didn't work due to character encoding
problems.)
This way in a few hours I will get the final list of pages to work on.
Let's say, a budget solution.
--
Bináris
[Attachment #5 (text/html)]
<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-08-22 \
16:12 GMT+02:00 Bináris <span dir="ltr"><<a href="mailto:wikiposta@gmail.com" \
target="_blank">wikiposta@gmail.com</a>></span>:<br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hi,<br><a \
href="https://hu.wikipedia.org/wiki/Kateg%C3%B3ria:Telep%C3%BCl%C3%A9sek_infoboxsablonjai" \
target="_blank">https://hu.wikipedia.org/wiki/<wbr>Kateg%C3%B3ria:Telep%C3%BCl%<wbr>C3%A9sek_infoboxsablonjai</a><br></div>this \
category contains infobox templates of settlements.<br><br></div>How can I run \
replace.py on articles that transclude any of these templates?<span class=""><font \
color="#888888"><br clear="all"><div><div><div><br><br></div></div></div></font></span></div></blockquote><div>I \
did an ugly workaround: listed the templates from category to a file using -cat, then \
made global replacements in Notepad++ to get batch-like lines from template names, \
sauch as<br><span style="font-family:monospace,monospace">replace.py \
-"transcludes:Település infobox" pozició pozíció -save:poz.txt \
-always</span><br></div><div>then I changed line endings to Windows-style, and pasted \
the whole stuff to command line. (A normal batch file didn't work due to \
character encoding problems.)<br></div></div>This way in a few hours I will get the \
final list of pages to work on. <br></div><div class="gmail_extra">Let's say, a \
budget solution.<br></div><div class="gmail_extra"><br clear="all"><br>-- <br><div \
class="gmail_signature" data-smartmail="gmail_signature">Bináris</div> </div></div>
[Attachment #6 (text/plain)]
_______________________________________________
pywikibot mailing list
pywikibot@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic