Extension:WIGO

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
WIGO
Release status: beta
Implementation User interface
Description Add and vote for news links.
Author(s) Martin Tournoij (Carpetsmokertalk)
Latest version 1.0 (2015-02-13)
MediaWiki 1.25+
PHP 5.4+
Tables WIGO_entries
WIGO_pages
WIGO_votes
License MIT License
Download
Tags
listwigo, addwigo, wigorefs, wigo
Hooks used
LoadExtensionSchemaUpdates
BeforePageDisplay
ParserFirstCallInit
Translate the WIGO extension if it is available at translatewiki.net
Check usage and version matrix.

This is a "What's going on" extension to easily add links which can be upvoted or downvoted. It's also possible to add these links on a page.

Tags:

  • <listwigo group=".." num=".."/> − List num WIGO entries for the group
  • group.
  • <wigorefs/> − Show all WIGO entries which link to the current page.
  • <addwigo group=".."/> − Show a form to add a new entry to group.
  • <wigo id=".."/> − Show WIGO entry for WIGO id.

Groups are dynamic; so just adding a new <addwigo/> tag is enough.

It was inspired by the wigo3 extension at RationalWiki, but it's a complete rewrite and doesn't share any code.

Installation[edit]

  • Download and place the files in a directory called WIGO in your extensions/ directory.
  • Add the following code at the bottom of your LocalSettings.php:
 wfLoadExtension('WIGO');