WikiBuilder
329
次編輯
無編輯摘要 |
小 (Small Patch) |
||
第119行: | 第119行: | ||
['ChapterTitle'] = {-- CT | ['ChapterTitle'] = {-- CT | ||
WriteLine = function(self,txt,_) | WriteLine = function(self,txt,_) | ||
self.curCNode = self.curNode:wikitext(txt); | local a,b = string.match(txt,'(.*)|(.*)'); | ||
if a and b then | |||
self.curNode:tag('div'):addClass('subTitle'):wikitext(a); | |||
self.curCNode = self.curNode:tag('div'):addClass('Title'):wikitext(b); | |||
else self.curCNode = self.curNode:tag('div'):addClass('onlyTitle'):wikitext(txt); | |||
end | |||
return self; | return self; | ||
end; | end; |