Module:顶注/文档
跳转到导航
跳转到搜索
这是Module:頂註的文档页面
本模组用于顶注模板,用法见各模板文档。
模组内容
hatnote
本模组的返回值。
hatnote.main(frame)
- 对应{{顶注}}。
hatnote.about(frame)
hatnote._about(args)
- 对应{{关于}}。
hatnote.forabout(frame)
hatnote._for(args)
- 对应{{见}}。
hatnote.notabout(frame)
hatnote._not(args)
- 对应{{不是}}。
hatnote.redirect(frame)
hatnote._redirect(args)
- 对应{{重定向}}。
hatnote.catmore(frame)
hatnote._catmore(args)
- 对应{{分类信息}}。
hatnote.generator(content, prefix, main, image)
- 产生“关于……见……”部分。
hatnote.wrapper(content, image)
- 接收内容表
content
和图片资料表image
,返回顶注结果。 hatnote.image(light, dark, size)
- 处理图片。
hatnote.getArgs(frame)
- 从框架对象
frame
取得参数并直接加入参数表中,而不使用元表。返回参数表。 hatnote.formatLinks(links)
- 将连结序列表
links
处理为维基连结,即将表中不包括[[]]
结构的项以[[]]
括上,之后返回序列表。