Module:Sandbox/Ave/ReferenceText
跳到导航
跳到搜索
-- 初始化模块 local refer = {} -- 主函数 function refer.text(note) local symbol = note.args["符号"] local color = note.args["颜色"] local size = note.args["大小"] local mark = note.args["角标"] local cursor = note.args["鼠标"] local ref = note.args["注释"] if mark == "否" then return "<span title=<nowiki>" .. ref .. '</nowiki> style="color:' .. color .. ";cursor:" .. cursor .. ';">{{font|size=' .. size .."|" .. symbol .. "}}</span>" else return "<span title=<nowiki>" .. ref .. '</nowiki> style="color:' .. color .. ";cursor:" .. cursor .. ';"><sup>{{font|size=' .. size .. "|" .. symbol .. "}}</sup></span>" end end return refer