Project:Procedure: Difference between revisions
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
** Download HTML source code of the relevant Ms or Ts and substitute single quotes | ** Download HTML source code of the relevant Ms or Ts and substitute single quotes | ||
** Create file <code>descriptions.txt</code> by running custom script <code>process.php</code> on local machine | ** Create file <code>descriptions.txt</code> by running custom script <code>process.php</code> on local machine | ||
* Add description pages using [[mw:Manual:Pywikibot/pagefromfile.py|pagefromfile.py]]: in <code>~/Documents/pywikibot/</code> run <code>sudo pwb pagefromfile -notitle -showdiff -force -file:/home/michele/Documents/Nachlass\ Graphics\ website/Description\ files/ | * Add description pages using [[mw:Manual:Pywikibot/pagefromfile.py|pagefromfile.py]]: in <code>~/Documents/pywikibot/</code> run <code>sudo pwb pagefromfile -notitle -showdiff -force -file:/home/michele/Documents/Nachlass\ Graphics\ website/Description\ files/pages.txt</code> | ||
== Notes == | == Notes == | ||
<references/> | <references/> |
Revision as of 10:19, 3 March 2024
One-time
- Remove subdirectories of directory
images
(see $wgHashedUploadDirectory) Done - Configure User:Nachlass Graphics Bot[1] Done
For each Ms or Ts
- Upload files (PNGs and SVGs) using importImages.php: in wiki root directory run
sudo php maintenance/importImages.php import --comment="{{Graphic}}" --summary="{{Graphic}}" --user="MLavazza" --limit=1
- Generate description pages:
- Download HTML source code of the relevant Ms or Ts and substitute single quotes
- Create file
descriptions.txt
by running custom scriptprocess.php
on local machine
- Add description pages using pagefromfile.py: in
~/Documents/pywikibot/
runsudo pwb pagefromfile -notitle -showdiff -force -file:/home/michele/Documents/Nachlass\ Graphics\ website/Description\ files/pages.txt
Notes
- ↑ pywikibot installed in
/home/michele/.local/bin