Actions

Template

Get farm from URL

From WikiApiary, monitoring the MediaWiki universe

This template is used to automatically add wikis to a farm based on a pattern in the URL. It is best to pass the API URL for a given wiki into this template.

Example:

  • {{Get farm from URL|http://sourceforge.net/apps/mediawiki/amos/api.php}} → SourceForge
  • {{Get farm from URL|http://itlaw.wikia.com/wiki/The_IT_Law_Wiki}} → Wikia
  • {{Get farm from URL|http://wikiapiary.com/}} →

More farm patterns can easily be added with additional conditionals in this template.