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. I chì-chió su-iàu nn̄g chì saⁿ ê piàn-sò͘ phòe-tì, mā ài hē tī chèng-khak ê ūi-tì.
 * 2) Tī command shell su-ji̍p python pwb.py generate_user_files.py lâi cháu kiàn-pún , che ē hām lí hō͘-tōng pēng sán-seng tóng-àn, pēng chûn tī ī-siat ê phòe-tì ūi-tì.

Ū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.

Hō͘ Wikimedia kang-sū
Phah-khui chi̍t ê bûn-pún pian-chi̍p-khì (pí-lūn Windows ê Notepad), kā bûn-pún tóng-àn  pó-chûn tī   chu-liāu-kiap lāi-té.

Nā-sī lí-ê gí-giân sú-iōng tio̍h hui-ASCII ê bûn-jī, lí tio̍h-ài ēng chhin-chhiūⁿ Notepad++ ê Unicode pian-chi̍p-khì, chiah pó-chûn lí-ê user-config (bô BOM hû-hō ê Unicode kái-má). M̄-thang bōe-kì-tit su-ji̍p chò-ûi tē-it chōa.

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