Manual:Pywikibot/user-config.py/nan

Phòe-tì
Tī lí cháu jīm-hô thêng-sek chìn-chêng, lí ài tī bo̍k-lio̍k  lāi kiàn-li̍p tóng-àn. Lí ū nn̄g chióng hong-sek kiàn-li̍p:


 * 1) Chhiú-tōng kiàn-li̍p tóng-àn. It needs at least two or three variables configured, and placed in the correct location.
 * 2) Run the script   by entering python pwb.py generate_user_files.py in a command shell, which will interactively generate the file in an interactive "wizard" style, and store it in the default configuration location.

Ūi-tì
Pywikibot ē chiàu sūn-sī tī ē-kha ê ūi-tì chhōe :


 * Specified via the  argument (for example:  )
 * The content of the environment variable
 * The directory in which the  file is
 * In core it checks the  directory in the application data directory (Windows) or home directory (that directory gets automatically created)

(Chham-oa̍t: )

Ē-kha sī chhiú-tōng pian-chi̍p tóng-àn ê chí-ín.

For Wikimedia projects
Open a text editor (e.g. Notepad in Windows) and save the text file as  in the   folder.

If your language uses non-ASCII characters, you should use a Unicode-aware editor such as Notepad++ and save your user-config with Unicode encoding without BOM marks. Don't forget to insert as the first line.

Ka-thiam ē-kha kúi chōa khì tī :

Now save  again.

EksempelBot on no.wikipedia
mylang = 'no' usernames['wikipedia']['no'] = u'EksempelBot'

console_encoding = 'utf-8' use_api_login = True

ExampleBot on Commons
mylang = 'commons' family = 'commons' usernames['commons']['commons'] = u'ExampleBot'

console_encoding = 'utf-8' use_api_login = True

ExampleBot on Wikidata
mylang = 'wikidata' family = 'wikidata' usernames['wikidata']['wikidata'] = u'ExampleBot'

console_encoding = 'utf-8' use_api_login = True

ExampleBot on Test wiki
mylang = 'test' family = 'test' usernames['test']['test'] = u'ExampleBot'

ExampleBot on Test2 wiki
mylang = 'test2' family = 'wikipedia' usernames['wikipedia']['test2'] = u'ExampleBot'

BeispielBot on de.wikipedia and de.wikibooks, with de.wikipedia as main wiki
mylang = 'de' usernames['wikipedia']['de'] = u'BeispielBot' usernames['wikibooks']['de'] = u'BeispielBot'

console_encoding = 'utf-8' use_api_login = True

For non-Wikimedia wikis

 * Main Page: Manual:Pywikibot/Use on third-party wikis