Modul:Italic title: Unterschied zwischen den Versionen
(try without the frame stuff) |
(forgot the namespace text) |
||
Zeile 10: | Zeile 10: | ||
result = "''" .. title.text .. "''" | result = "''" .. title.text .. "''" | ||
end | end | ||
return result | return title.nsText .. result | ||
end | end | ||
return p | return p |
Version vom 17. Juni 2013, 09:03 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 title.nsText .. result end return p