%IMG{"foo.gif"}% instead
of using HTML syntax. It allows specification of the standard attributes
as well as an optional web=<web> and/or topic=<topic>.
Another small step in the eradication of html in TWiki!
| Argument | Meaning | Default | Required |
|---|---|---|---|
name | attachment name | none | yes |
web | web name of the attachment | current web | no |
topic | topic name of the attachment | current topic | no |
alt | alternate text tag | '' | no |
caption | caption to go with the image | none | no |
captionplacement | one of right, left, top, bottom | right | no |
%IMG{"foo.gif"}%
%IMG{"foo.gif" topic="ADifferentTopic"}%
%IMG{"foo.gif" align="right"}%
%<plugin>_<setting>%, i.e. %IMGPLUGIN_SHORTDESCRIPTION%
data/debug.txt) ImgPlugin.zip in your twiki installation directory. Content: | File: | Description: |
|---|---|
data/TWiki/ImgPlugin.txt | Plugin topic |
data/TWiki/ImgPlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/ImgPlugin.pm | Plugin Perl module |
| Plugin Author: | TWiki:Main.MeredithLesly |
| Copyright: | © 2006, TWiki:Main.MeredithLesly |
| License: | GPL (GNU General Public License) |
| Plugin Version: | 21 Feb 2006 (V1.000) |
| Change History: | |
| 21 Feb 2006: | Initial version |
| TWiki Dependency: | $TWiki::Plugins::VERSION 1.1 |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.005 |
| Benchmarks: | GoodStyle nn%, FormattedSearch nn%, ImgPlugin nn% |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/ImgPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/ImgPluginDev |
| Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/ImgPluginAppraisal |
| I | Attachment | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|
| | ImgPlugin.md5 | manage | 0.2 K | 15 Jun 2006 - 21:54 | MeredithLesly | md5 checksums |
| | ImgPlugin.tgz | manage | 10.2 K | 15 Jun 2006 - 21:54 | MeredithLesly | Untar and run the installer script, if there is one |
| | ImgPlugin.zip | manage | 11.4 K | 15 Jun 2006 - 21:54 | MeredithLesly | unzip, correct the permissions, and run the installer script, if there is one |