މޮޑިއުލް:Faruma title
Appearance
| You might want to create a documentation page for this Scribunto module. Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this module. |
local p = {}
function p.main(frame)
local title = mw.title.getCurrentTitle()
-- Apply Faruma font to the title
local result = '<span class="faruma-font">' .. mw.text.nowiki(title.text) .. '</span>'
-- Add the namespace if we're not in mainspace.
if title.namespace ~= 0 then
result = mw.site.namespaces[title.namespace].name .. ':' .. result
end
-- Call displaytitle with the text we generated.
return mw.getCurrentFrame():callParserFunction('DISPLAYTITLE', result)
end
return p