Utilisateur:Cabot/Outils
Apparence
Pages à supprimer (réservé aux administrateurs)
category.py
[modifier]category.py move -from: -to:
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
and option can be one of these :
* -person - sort persons by their last name (for action 'add') * -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. * -delsum - An option for remove, this specifies to use the custom edit summary as the deletion reason (rather than a canned deletion reason) * -overwrite - An option for listify, this overwrites the current page with the list even if something is already there. * -showimages - An option for listify, this displas images rather than linking them in the list.
For the actions tidy and tree, the bot will store the category structure locally in category.dump. This saves time and server load, but if it uses these data later, they may be outdated; use the -rebuild parameter in this case.
For example, to create a new category from a list of persons, type :
python category.py add -person
and follow the on-screen instructions.
pagefromfile.py
[modifier]Voir la page meta
pagefromfile.py -notitle -start:{début} -end:{fin} -file:fichier.txt
-file:xxx Give the filename we are getting our material from -start:xxx Specify the text that is the beginning of a page -end:xxx Specify the text that is the end of a page -include The beginning and end text should be included in the page. -titlestart:xxx Use xxx in place of §§ for identifying the beginning of page title -titleend:xxx Use xxx in place of §§ for identifying the end of page title -notitle do not include the title line in the page -summary:xxx Use xxx as the summary for the upload If the page to be uploaded already exists: -force overwrite the existing page -appendtop add the text to the top of it -appendbottom add the text to the bottom of it -safe do nothing (default)
replace.py
[modifier]replace.py -page:titre "Expression1" "Expression2"
Pages et catégorie pour les essais
[modifier]- EssaiBot
- Essai page 1
- Essai page 2
- Essai page 3
- Page:EssaiBot
- Index:EssaiBot
- Catégorie:Essai de catégorie
Expressions de pagination (Word)
[modifier]<noinclude></div></noinclude>^l{fin}^m{début}^l§§Page:***.djvu/§§^l<noinclude><div class="pagetext"></noinclude>^l