モジュール:CustomLink
提供:ヘイグ - 総合ゲームメディア
このモジュールについての説明文ページを モジュール:CustomLink/doc に作成できます
local p = {}
function p.makeLink(frame)
local url = frame.args.url
local text = frame.args.text
local class = frame.args.class or "" -- クラスはオプション
if not url or not text then
return "リンク情報が不足しています"
end
return string.format('<htmltag tagname="a" href="%s" class="%s">%s</htmltag>', url, class, text)
end
return p