<% Image.gallery %>
macro renders the name of the gallery this image belongs to

Sourcecode in Image/macros.js:
1:   function gallery_macro(param) {
2:      if (!this.topic)
3:         return;
4:      if (!param.as || param.as == "text")
5:         res.write(this.topic);
6:      else if (param.as == "link") {
7:         Html.link({href: path.Site.images.topics.href(this.topic)},
8:                   param.text ? param.text : this.topic);
9:      } else if (param.as == "image") {
10:        if (!param.imgprefix)
11:           param.imgprefix = "topic_";
12:        var img = getPoolObj(param.imgprefix + this.topic, "images");
13:        if (!img)
14:           return;
15:        Html.openLink({href: path.Site.topics.href(this.topic)});
16:        renderImage(img.obj, param)
17:        Html.closeLink();
18:     }
19:     return;
20:  }