Skip to content

kolzchut/mediawiki-extensions-WRNewArticles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WikiRights New Articles extension for MediaWiki

This MediaWiki extension adds a special page that shows new articles as defined for the Kol-Zchut website: pages moved from NS_WR_DRAFTS to NS_MAIN.

Roadmap

  • Add a feed

Changelog

1.0.0, 2016-11-22

  • Handle old-style log entries as well as newer ones (serialized params, log_page)
  • If a page was renamed since being released, it will link to the current page but also show the original name as it was upon release.
  • If the WikiRights ArticleType extension is installed, Portals will be shown in bold and marked as such, to make new portals stand out more.

0.1.0a, 2015-06-23

First version ever.

Debugging

For debugging purposes, this is almost the SQL equivalent to the log's query:

SELECT * FROM logging
WHERE
	log_type = 'move'
    AND log_namespace = '116'
    AND log_params REGEXP '"4::target";s:[0-9]+:"([^:"]*)"'
    AND log_timestamp > '20200601000000' AND log_timestamp < '20200701000000'    
ORDER BY log_timestamp DESC

Please note:

  • 116 = NS_WR_DRAFTS
  • The log_params regex makes sure pages were only moved to NS_MAIN (no colon in the title)

About

MediaWiki extension that adds a special page and feed for new articles as defined for the Kol-Zchut website: pages moved from NS_WR_DRAFTS to NS_MAIN

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages