Module:form of/templates: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 195: Line 195:
if not term and not args["alt"] and not args["tr"] and not args["ts"] then
if not term and not args["alt"] and not args["tr"] and not args["ts"] then
if mw.title.getCurrentTitle().nsText == "Template" then
if mw.title.getCurrentTitle().nsText == "Template" then
term = "bold"
term = "term"
else
else
error("No linked-to term specified; either specify term, alt, translit or transcription")
error("No linked-to term specified; either specify term, alt, translit or transcription")
Line 415: Line 415:
function(lang, terminfo)
function(lang, terminfo)
return m_form_of.format_form_of {text = text, terminfo = terminfo,
return m_form_of.format_form_of {text = text, terminfo = terminfo,
terminfo_face = "bold", posttext = iargs["posttext"]}, {}
terminfo_face = "term", posttext = iargs["posttext"]}, {}
end
end
)
)
Line 440: Line 440:
tags = tags,
tags = tags,
terminfo = terminfo,
terminfo = terminfo,
terminfo_face = "bold",
terminfo_face = "term",
notext = args["notext"],
notext = args["notext"],
capfirst = args["cap"] or iargs["withcap"] and not args["nocap"],
capfirst = args["cap"] or iargs["withcap"] and not args["nocap"],