Module:Chapter displaytitle
From A Wiki of Ice and Fire
Documentation for this module may be created at Module:Chapter displaytitle/doc
local p = {}
function p.main()
local title = mw.title.getCurrentTitle().text
local book, chapter = title:match("^(.*)-(Chapter %d+|Summary|Prologue|Epilogue|Appendix)$")
if not book then
return title
end
return "''" .. book .. "''-" .. chapter
end
return p