Manual:Pywikibot/listpages.py/ja

listpages.py is a script used to print a list of pages, as defined by page generator parameters.

Optionally, it also prints page content to STDOUT or save it to a file in the current directory.

固有の引数
Custom format can be applied to the following items extrapolated from a page object:


 * pywikibot.Site(outputlang, self.site.family): obtained from page._link._site.
 * title: obtained from page._link._title.
 * loc_title: obtained from page._link.canonical_title.
 * can_title: obtained from page._link.ns_title(onsite=onsite). based either the canonical namespace name or on the namespace name in the language specified by the -trans param; a default value '******' will be used if no ns is found.
 * onsite: obtained from pywikibot.Site(outputlang, self.site.family).
 * trs_title: obtained from page._link.ns_title(onsite=onsite). If selected format requires trs_title, outputlang must be set.