ImageLink
这个宏用于生成图片链接,图片以URL或者附件形式给出,链接可以指向URL或者维基网页。图片大小也可以调整。如果没有给定链接目标,则图片链接指向图片自身。
语法
[[ImageLink(image,target[,width=width[,height=height]][,alt=alttag])]]
参数
image: 图片附件名或者图片URL地址 target: 链接目标,可以是维基网页或者URL (可选)
关键字参数
width: 图像显示宽度 (可选) height: 图像显示高度 (可选) alt: alt文字 (可选)
示例
[[ImageLink(München.png,München,height=100)]] [[ImageLink(Images/München.png,München,height=100)]] [[ImageLink(http://webcam.portalmuc.de/images/webcam/webcam_marienplatz.jpg,München Marienplatz)]] [[ImageLink(plot.png,width=200)]] [[ImageLink(plot.png,height=200)]] [[ImageLink(plot.png)]] [[ImageLink(http://webcam.portalmuc.de/images/webcam/webcam_marienplatz.jpg,http://www.muenchen.de,width=150)]] [[ImageLink(münchen.png,http://www.muenchen.de,width=50)]] [[ImageLink(http://webcam.portalmuc.de/images/webcam/webcam_marienplatz.jpg)]] [[ImageLink(example.png,alt=whateveryouwant(üöä))]]
显示
[[ImageLink(http://moinmaster.wikiwikiweb.de:8000/wiki/common/moindude.png,FrontPage,width=200,alt=Welcome)]]

