Modifiche

⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

Modulo:Headword/templates

242 byte aggiunti, 10:21, 8 mag 2017
trying to tag Mongolian-script titles
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.
 +
if data.sc and data.sc:getCode() == "Mong" then
 +
frame:callParserFunction{ "DISPLAYTITLE", '<span class="Mong">' .. data.heads or mw.title.getCurrentTitle().text .. '</span>' }
 
end
 
end
 
 
Utente anonimo

Menu di navigazione