Manual:Pywikibot/user-config.py/id

Konfigurasi
Sebelum anda menjalankan salah satu program, Anda perlu membuat berkas bernama  di direktori   anda. You create it in either of two ways:


 * 1) Buat berkasnya secara manual. It needs at least two or three variables configured, and placed in the correct location.
 * 1) 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.

Lokasi
Pywikibot looks for  in the following locations, in order:


 * 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)

(Lihat pula: .)

Below are instructions for manually editing this file.

Untuk Proyek Wikimedia
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

di baris pertama.

Tambahkan kode berikut ke :

Lalu simpan  lagi.

EksempelBot di no.wikipedia
mylang = 'no' usernames['wikipedia']['no'] = 'EksempelBot'

console_encoding = 'utf-8' use_api_login = True

ExampleBot di Commons
mylang = 'commons' family = 'commons' usernames['commons']['commons'] = 'ExampleBot'

console_encoding = 'utf-8' use_api_login = True

ExampleBot di Wikidata
mylang = 'wikidata' family = 'wikidata' usernames['wikidata']['wikidata'] = 'ExampleBot'

console_encoding = 'utf-8' use_api_login = True

ExampleBot di Test wiki
mylang = 'test' family = 'test' usernames['test']['test'] = 'ExampleBot'

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

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

console_encoding = 'utf-8' use_api_login = True

Untuk wiki yng non-Wikimedia

 * See main page Pywikibot/Use on third-party wikis

Lihat juga

 * config.py (the source code of the module that loads and interpretes user-config.py)