Table of Contents
See ContributedPlugins
Overview#
Inspired by DailyComicPlugin
A plugin that pulls in a comic strip from GoComic
.| Written by | David Vittor |
|---|---|
| Date | 20-Aug-2014 |
| Plugin Version | 0.2 |
| Wiki Versions | 2.10.1+ |
| Demo | http://digitalspider.com.au/JSPWiki/Wiki.jsp?page=GoComicsPluginDemo![]() |
| Details | http://digitalspider.com.au/JSPWiki/Wiki.jsp?page=GoComicsPlugin![]() |
| Issues | https://github.com/digitalspider/jspwiki-plugins/issues![]() |
| Plugin | GoComicsPlugin-0.2.jar![]() |
| Dependencies | None |
Usage#
- Place the jar file into your <tomcatDir>/webapps/JSPWiki/WEB-INF/lib/ directory
- Restart your tomcat
- Add the following to your page:
[{GoComicsPlugin comic=random width=900 height=250 class=mycomic timeout=1}]
- This generates:
<div class="mycomic"><img width="900" height="250" alt="http://assets.amuniversal.com/31e9ace004b501329124005056a9545d" src="http://assets.amuniversal.com/31e9ace004b501329124005056a9545d"></div>
Parameters#
| Param | Description | Default |
|---|---|---|
| comic | select the basic comic name from GoComics e.g. dilbert-classics, calvinandhobbes, peanuts or "random" | random |
| width | set the width | 600 |
| height | set the height | 200 |
| class | set the class of the div around the image. Used for css styles | comic |
| timeout | set the timeout (in seconds) how long to wait for the URL connection to load | 10 |
| date | set the custom exact date for the comic you want. Format=yyyyMMdd | <today> |
Properties#
| Property | Description | Default |
|---|---|---|
| gocomicplugin.baseurl | the base url of where to pull images from | http://www.gocomics.com/ |
| gocomicplugin.srcpath | the CDN source path of the images to find | http://assets.amuniversal.com |
Category.Plugins


);
background-repeat:no-repeat;
background-position:top;
background-size:48px;
text-align:center;
}