正式使用时注意方括号前后不要有空格。
1、列出指定相册中的图集,并显示图集的说明文字。
[ album id=x template=extend ]
2、列出指定相册中的图集,不显示图集的说明文字。
[ album id=x template=compact ]
3、列出指定图集中的图片
[ nggallery id=x ]
4、幻灯片播放指定图集中的图片,需要flash支持。
[ slideshow id=x w=width h=height ]
5、使用图片浏览器播放
[ imagebrowser id=x ]
6、使用图片浏览器播放时输出exif信息
[ imagebrowser id=28 template=exif ]
7、显示指定单张图片
[ singlepic id=x ]
[ singlepic id=x w=width h=height mode=web20|watermark float=left|right ]
- id : this is the image id
- width : max. width (the resize method work propotional)
- height : max. height
- mode (optional) : “web20” 添加web2.0的社会关系效果; “watermark” 添加水印
- float (optional) :左、右对齐。
[ singlepic id=x h=height w=weight mode=web20 ]
[ singlepic id=1 w=320 h=240 mode=watermark ]
8、输出指定标签的相册,并按标签排序
[ nggtags album=WordPress,Cologne,Irland ]
9、输出指定标签的图集,并按标签排序
[ nggtags gallery=cologne,wordpress,... ]
10、列出标签云
[ tagcloud ]