Modifiche

⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

Modulo:Headword/templates

288 byte aggiunti, 13:10, 8 mag 2017
trying once again
Riga 68: Riga 68:  
else
 
else
 
data.sc = (args["sc"] and (require("Module:scripts").getByCode(args["sc"]) or error("The script code \"" .. args["sc"] .. "\" is not valid.")) or nil)
 
data.sc = (args["sc"] and (require("Module:scripts").getByCode(args["sc"]) or error("The script code \"" .. args["sc"] .. "\" is not valid.")) or nil)
 +
end
 +
 +
-- Script-tags the header in Mongolian-script entries.
 +
local display_title = ""
 +
 +
if data.sc and data.sc:getCode() == "Mong" then
 +
display_title = frame:callParserFunction("DISPLAYTITLE:", '<span class="Mong">' .. mw.title.getCurrentTitle().text .. '</span>')
 
end
 
end
 
 
Riga 147: Riga 154:  
end
 
end
 
 
return require("Module:headword").full_headword(data)
+
return require("Module:headword").full_headword(data) .. display_title
 
end
 
end
    
return export
 
return export
Utente anonimo

Menu di navigazione