Ninovolador added a comment.
@Xqt I thought I already gave an example, so I will copy the one from the
description.
Suppose I want to create a bunch of <pages> tags. Maybe I want to create all
the subpages of a very complex work with many chapters. So I want to do it via
script and not manually. In order to make sure I comply with the correct
format of a <pages> tag, I want to use PagesTagParser. So I create an instance
of PagesTagParser, and give it the attributes programmatically. The snippet of
code below will normally go inside a loop and the expressions will be another
variables or come from a list or a dictionary:
tag = PagesTagParser()
tag.index = 'Sample index with more than two words.pdf'
tag.ffrom = 5
tag.to = "6"
tag.fromsection = '"chapter XVI"'
print(tag)
TASK DETAIL
https://phabricator.wikimedia.org/T383506
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Ninovolador
Cc: Xqt, Mpaa, Aklapper, pywikibot-bugs-list, Ninovolador, mevo, PotsdamLamb,
Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Aram, Viztor,
Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis,
Hannolans, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]