handle Self interwiki as local links

This commit is contained in:
Elan Ruusamäe 2012-09-22 15:35:50 +02:00
parent 9244bcad91
commit 1411385a01

View file

@ -66,6 +66,8 @@ class Formatter(FormatterBase):
def interwikilink(self, on, interwiki='', pagename='', **kw): def interwikilink(self, on, interwiki='', pagename='', **kw):
if on: if on:
if interwiki == 'Self':
return self.pagelink(on, pagename, **kw)
return '[[%s>%s|' % (interwiki, pagename) return '[[%s>%s|' % (interwiki, pagename)
else: else:
return ']]' return ']]'