Installation:
-
Copy the SpoilerFree directory into the mediawiki extensions folder or add a symbolic link pointing to it.
-
Go into your mediawiki LocalSettings.php and add the following line to bottom:
require_once("$IP/extensions/SpoilerFree/SpoilerFree.php");
-
Also in LocalSettings.php the following configuration variables need to be set like so in the following example:
$wgSpoilerFreeSeasonCount = 5; // Represents the amount of seasons in a show.
$wgSpoilerFreeEpisodeCounts = array(1, 2, 3, 4, 5); // Represents the amount of episodes for each season.
Usage:
-
Login into a mediawiki account.
-
Open the Special:SeasonsSelection in mediawiki.
-
Set seasons and episodes options. Submit when finished.
-
All season tags should render based on the season and episode options set by the user.
i.e. <season id="1" episode="1">Snape kills Dumbledore</season>