User:JJMC89 bot/Wikinews importer

This task imports certain dynamically-generated Wikinews pages into pages that use a  subpage. Lists on Wikinews are rendered dynamically, so the items are extracted from the resulting HTML.

Example: Portal:Film/Film news/Wikinews gets fed with n:User:Wikinews Importer Bot/Film.

These imports are accomplished by implementing the setup steps described below. The bot checks for updates on an hourly basis and only updates if there has been a change.

Portals
1. Create a subpage at Wikinews using the DynamicPageList function, e.g., n:User:Wikinews Importer Bot/Film. Insert code similar to the following. (See n:Wikinews:DynamicPageList for more info on DynamicPageList syntax.)  category=Published category= notcategory=No publish notcategory=Disputed stablepages=only count=5 namespace=0 addfirstcategorydate=true 

Note: This page is used to update the Wikipedia Portal news.

2. Create a sub-subpage at a portal news section, e.g., Portal:Film/Film news/Wikinews, and insert the following code.

Remember, the bot checks for updates on an hourly basis and only updates if there has been a change. You can wait for the first update or manually copy over the original links from the source page. Insert code similar to the following for an initial manual copy of Wikinews items.
 * 
 * 
 * etc.

Optional parameter: A custom indentation string can be passed using the indent parameter (which defaults to * if not specified). See example below.

3. Transclude the above page to the news section page, e.g., Portal:Film/Film news. Insert code similar to the following. Wikinews

User pages
Wikinews table can be added to user pages for selected Wikinews topics. For example, the following parameters will display film Wikinews as shown.