Manual:Pywikibot/category.py/tr

Sözdizimi
Sözdizimi: python pwb.py category action [-option]

where action can be one of these: * add         - mass-add a category to a list of pages * remove      - remove category tag from all pages in a category * move        - move all pages in a category to another category * tidy        - tidy up a category by moving its articles into subcategories * tree        - show a tree of subcategories of a given category * listify     - make a list of all of the articles that are in a category

ve seçenek şunlardan biri olabilir:

"add" işlemi için seçenekler:

* -person     - sort persons by their last name * -create     - If a page doesn't exist, do not skip it, create it instead * -redirect   - Follow redirects

İşlem "add" ise, aşağıdaki seçenekler desteklenir:

"listify" işlemi için seçenekler:

* -overwrite  - This overwrites the current page with the list even if                  something is already there. * -showimages - This displays images rather than linking them in the list. * -talkpages  - This outputs the links to talk pages of the pages to be                  listified in addition to the pages themselves. "remove" işlemi için seçenekler:

* -nodelsum   - This specifies not to use the custom edit summary as the deletion reason. Instead, it uses the default deletion reason for the language, which is "Category was disbanded" in                 English.

"move" işlemi için seçenekler:

* -hist       - Creates a nice wikitable on the talk page of target category that contains detailed page history of the source category. * -nodelete   - Don't delete the old category after move * -nowb       - Don't update the wikibase repository * -allowsplit - If that option is not set, it only moves the talk and main page together. * -mvtogether - Only move the pages/subcategories of a category, if the target page (and talk page, if -allowsplit is not set) doesn't exist. * -keepsortkey - Use sortKey of the old category also for the new category. If not specified, sortKey is removed. An alternative method to keep sortKey is to use -inplace option.

"tidy" işlemi için seçenekler:

* -namespaces   Filter the arcitles in the specified namespaces. Separate -namespace    multiple namespace numbers or names with commas. Examples: -ns           -ns:0,2,4 -ns:Help,MediaWiki

"$1" işlemi için seçenekler:

* -rebuild    - reset the database * -from:      - The category to move from (for the move option) Also, the category to remove from in the remove option Also, the category to make a list of in the listify option * -to:        - The category to move to (for the move option) - Also, the name of the list to make in the listify option NOTE: If the category names have spaces in them you may need to use a special syntax in your shell so that the names aren't treated as        separate parameters. For instance, in BASH, use single quotes, e.g. -from:'Polar bears' * -batch      - Don't prompt to delete emptied categories (do it                  automatically). * -summary:   - Pick a custom edit summary for the bot. * -inplace    - Use this flag to change categories in place rather than rearranging them. * -recurse    - Recurse through all subcategories of categories. * -pagesonly  - While removing pages from a category, keep the subpage links and do not remove them * -match      - Only work on pages whose titles match the given regex (for                  move and remove actions). * -depth:     - The max depth limit beyond which no subcategories will be                  listed.

Düzenli ve ağaçlı eylemler için bot, kategori yapısını yerel olarak  olarak saklayacaktır. Bu, zamandan ve sunucu yükünden tasarruf sağlar, ancak bu verileri daha sonra kullanırsa güncelliğini yitirebilir; bu durumda  parametresini kullanın. Örneğin, bir kişi listesinden yeni bir kategori oluşturmak için şunu yazın:

python pwb.py category add -person

ve ekrandaki talimatları izleyin.

Veya hepsini komut satırından yapmak için aşağıdaki sözdizimini kullanın:

python pwb.py category move -from:US -to:"United States"

Bu, US kategorisindeki tüm sayfaları United States kategorisine taşıyacaktır.

Ayrıca bakınız

 * fr:Aide:Pywikipedia/category.py