Modifiche
⧼vector-jumptonavigation⧽
⧼vector-jumptosearch⧽
Riga 70:
Riga 70:
− +
Riga 81:
Riga 81:
− +
− +
+
+
+
+
allow headers belonging to other scripts to be tagged by simply adding them to a table
end
end
-- Script-tags the header in Mongolian-script entries.
-- Script-tags the topmost header.
local display_title = ""
local display_title = ""
mw.log("script of first head = " .. data.sc:getCode())
mw.log("script of first head = " .. data.sc:getCode())
if data.sc and data.sc:getCode() == "Mong" then
local to_be_tagged = {
display_title = frame:callParserFunction("DISPLAYTITLE", '<span class="Mong">' .. pagename .. '</span>')
["Mong"] = true,
}
if data.sc and to_be_tagged[data.sc:getCode()] then
display_title = frame:callParserFunction("DISPLAYTITLE", '<span class="' .. data.sc:getCode() .. '">' .. pagename .. '</span>')
end
end