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
處理爲維基連結,即將表中不包括[[]]
結構的項以[[]]
括上,之後返回序列表。