handle Self interwiki as local links
This commit is contained in:
parent
9244bcad91
commit
1411385a01
1 changed files with 2 additions and 0 deletions
|
@ -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 ']]'
|
||||||
|
|
Loading…
Reference in a new issue