wowGuildNews playground

HTML

<script src="http://static.wowhead.com/widgets/power.js"></script>
<link rel="stylesheet" href="http://Unrepentant.github.com/wowGuildNews/css/wowguildnews.css">
<script src="http://Unrepentant.github.com/wowGuildNews/js/jquery.wowGuildNews.js"></script>
<div id="wrapper">
    <div class="guildnews"></div>
</div>

CSS

body {
    background: #000;
    color: #ddd;
}
a:link, a:visited {
    color: #c90;
    text-decoration: none;
}
a:hover {
    color: #fff;
    text-decoration: none;
}
a:active {
    color: #cc0;
    text-decoration: none;
}
#wrapper {
    width: 500px;
    margin: 30px auto;
}

JavaScript

jQuery(function ($) {
  $('.guildnews').wowGuildNews({

    // **************************
    // ** REQUIRED Guild Info ***
    // **************************
    // battlenet domain - "us", "eu", "kr", "tw" or "sea"; use "cn" for china
    region: "us",
    // locale - "en", "es", "pt", "en", "fr", "ru", "de", "it", "ko" or "zh"
    locale: "en",
    // game server name; include spaces and apostrophes
    server: "Durotan",
    // guild name; include spaces and apostrophes
    guild: "The Disreputable Dogs",

    // **************************
    // *** OPTIONAL SETTINGS  ***
    // **************************
    // ** Appearance **
    // number of news items to show; 25 max
    show: 25,
    // small icon size ( true = 18x18; false = 56x56 )
    // 18x18 and 56x56 are the actual icon image sizes, adjust as desired in the css
    small: true,

    // *** Language ***
    text: {
      // guild info
      "guildinfo": "(Level {level} {faction} Guild, {server})",
      "faction": ["Alliance", "Horde"],

      // news listing
      // [icon] Fred purchased [Foo]. 1 hour ago.
      // [icon] Barney crafted [Bar]. Yesterday.
      // [icon] Dino earned the achievement [Bark] for 10 points. 45 minutes ago.
      // [icon] The guild earned the acheivement [Super Foo] for 10 points. Just now.
      "item": "{icon} {player} {action} {item}. {time}",
      "achv": "{icon} {player} earned the achievement {ach} for {points} points. {time}",

      // item actions; replaces {action} above
      "obtained": "obtained",
      "crafted": "crafted",
      "purchased": "purchased",

      // guild achievement
      // (replaces {player} for guild achievements) "The guild earned..."
      "guild": "The guild",

      // time
      "future": "in",
      "past": "ago",
      // recent is shown if time is in the future - issues w/Blizzard timestamp
      "recent": "Recently",
      "now": "Just now",
      "min": "1 minute",
      "mins": "minutes",
      "hour": "1 hour",
     ...