User:Framawiki/sandbox

= Play with Pywikibot =

1. Get into PAWS
Pywikibot is a Python library and collection of scripts that automate work on MediaWiki sites. Originally designed for Wikipedia, it is now used throughout the Wikimedia Foundation's projects and on many other wikis.

In this task you'll do your first edit using PAWS and Pywikibot. Please post a link to the created page in comment of this task.
 * 1) Read https://www.mediawiki.org/wiki/Manual:Pywikibot/Overview to discover the library
 * 2)  Get started with PAWS : Follow Create a Wikimedia account, Sign into a notebook, and Start a terminal sections of https://www.mediawiki.org/wiki/Manual:Pywikibot/PAWS guide page.
 * 3) Create a subpage on testwiki : run   command in the terminal. Don't forgot to replace   by your Wikimedia username, and be careful with the upper letters. As usual, follow the steeps that the script ask to you, until it ends.
 * 4) Verify on testwiki that a contribution was done with your account. Go to https://test.wikipedia.org/w/index.php?title=Special:MyCOntributions and look up the content of the newly created page (click on "Modify" tab that is present on it).

2. Replace a template
In this task you'll learn how to edit a page and to replace a part of it by another content.
 * 1) Get a look at the Sandbox page on testwiki. https://test.wikipedia.org/w/index.php?title=Wikipedia:Sandbox It's a page that you can edit without consequences. You'll find by open the History tab that a bot account regularly reset the page content if it was changed. Finally, see the page content using the Edit tab, to learn that a   template is it it.
 * 2) First, start a terminal in PAWS as sen in the previous task.
 * 3) Replace this template by something else : run  . Again, follow the steeps of the script, and look-up your contributions log on-wiki.