Modul:Italic title: Unterschied zwischen den Versionen
(try with callParserFunction instead) |
(try without the frame stuff) |
||
Zeile 10: | Zeile 10: | ||
result = "''" .. title.text .. "''" | result = "''" .. title.text .. "''" | ||
end | end | ||
return | return result | ||
end | end | ||
return p | return p |
Version vom 17. Juni 2013, 09:00 Uhr
Die Dokumentation für dieses Modul kann unter Modul:Italic title/doc erstellt werden
local p = {} function p.main() local title = mw.title.getCurrentTitle() local prefix, brackets = mw.ustring.match(title.text, '(.+) (%([^%(%)]+%))$') local result if prefix and brackets then result = "''" .. prefix .. "'' " .. brackets else result = "''" .. title.text .. "''" end return result end return p