User:Esby-mw-bot/command log/helper/test
Jump to navigation
Jump to search
- The template will categorize in Category:Monuments historiques in Sarlat-la-Canéda - Covered by Wikimedia France which should contain:
{{Supported by Wikimedia France}}
__HIDDENCAT__
{{cat see also|Monuments historiques in Sarlat-la-Canéda}}
Add the following line to Category:Monuments historiques in Sarlat-la-Canéda:
{{cat see also|Monuments historiques in Sarlat-la-Canéda - Covered by Wikimedia France}}
Shell roadmap:
cd ~/commons-mw-bot
rm *.wiki
mw pull_commandat "Category:Monuments historiques in Sarlat-la-Canéda"
mw pull_commandat "Category:Ancien évêché (Sarlat-la-Canéda)"
mw pull_commandat "Category:Cathédrale Saint-Sacerdos de Sarlat"
mw pull_commandat "Category:Château de Temniac"
mw pull_commandat "Category:Cimetière Saint-Benoît (Sarlat)"
mw pull_commandat "Category:Couvent Sainte-Claire (Sarlat-la-Canéda)"
mw pull_commandat "Category:Église de La Canéda"
mw pull_commandat "Category:Église Notre-Dame de la Nativité de Temniac"
mw pull_commandat "Category:Église Sainte-Marie (Sarlat)"
mw pull_commandat "Category:Hôtel de Vienne (Sarlat)"
mw pull_commandat "Category:Hôtel de Gisson (Sarlat-la-Canéda)"
mw pull_commandat "Category:Hôtel de Grézel (Sarlat-la-Canéda)"
mw pull_commandat "Category:Hôtel de Génis (Sarlat-la-Canéda)"
mw pull_commandat "Category:Hôtel de Plamon (Sarlat-la-Canéda)"
mw pull_commandat "Category:Hôtel de Royère (Sarlat-la-Canéda)"
mw pull_commandat "Category:Hôtel de Saint-Clar (Sarlat-la-Canéda)"
mw pull_commandat "Category:Hôtel de Vassal (Sarlat-la-Canéda)"
mw pull_commandat "Category:Hôtel de ville de Sarlat-la-Canéda"
mw pull_commandat "Category:Hôtel Monméja (Sarlat-la-Canéda)"
mw pull_commandat "Category:Maison Anne de Dautrery (Sarlat-la-Canéda)"
mw pull_commandat "Category:Maison de La Boétie (Sarlat)"
mw pull_commandat "Category:Maison, 6 rue du Siège (Sarlat-la-Canéda)"
mw pull_commandat "Category:Monastère des Récollets (Sarlat-la-Canéda)"
mw pull_commandat "Category:Église des Récollets (Sarlat)"
ls| wc # outputs
# verifications
grep -li '{{Supported by Wikimedia France}}' *.wiki | wc #
grep -Li '{{Supported by Wikimedia France}}' *.wiki | wc #
grep -li '{{Wikimedia France - CANON.70-200mm.f2.8.IS.USM.II}}' *.wiki | wc #
grep -li '{{Wikimedia France - CANON.SX230}}' *.wiki | wc #
mw.getauthor #
# end of verification
# replacement - use those two if there are files concerned by the templates
perl -p -i -e "s/\{\{Wikimedia France - CANON.SX230}}/\{\{Supported by Wikimedia France\}\}\n\{\{Wikimedia France - CANON.SX230\}\}/g" *
perl -p -i -e "s/\{\{Wikimedia France - CANON.70-200mm.f2.8.IS.USM.II}}/\{\{Supported by Wikimedia France\}\}\n\{\{Wikimedia France - CANON.70-200mm.f2.8.IS.USM.II\}\}/g" *
# always use this one in every case
perl -p -i -e "s/\{\{Supported by Wikimedia France}}/\{\{Supported by Wikimedia France\|Monuments historiques in Sarlat-la-Canéda - Covered by Wikimedia France\}\}/g" *
# check
mw st| wc #
mw diff| more #
# end of check
# commit
mw commit --b --m='french_chapter_related_maintenance_-_[[User:Esby-mw-bot/command_log#00113]]'
# end of commit