Extension:WIGO

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg
WIGO

Release status:Extension status beta

ImplementationTemplate:Extension#type User interface
DescriptionTemplate:Extension#description Add and vote for news links.
Author(s)Template:Extension#username Martin Tournoij (Carpetsmokertalk)
Latest versionTemplate:Extension#version 1.0 (2015-02-13)
MediaWikiTemplate:Extension#mediawiki 1.25+
PHPTemplate:Extension#php 5.4+
TablesTemplate:Extension#table1 WIGO_entries
WIGO_pages
WIGO_votes
LicenseTemplate:Extension#license MIT License
Download
TagsTemplate:Extension#tags
listwigo, addwigo, wigorefs, wigo
Hooks usedTemplate:Extension#hook
LoadExtensionSchemaUpdatesManual:Hooks/LoadExtensionSchemaUpdates
BeforePageDisplayManual:Hooks/BeforePageDisplay
ParserFirstCallInitManual:Hooks/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');