Модуль:Interwiki: различия между версиями

нет описания правки
(Новая страница: «-- This module provides functions and objects for dealing with interwiki links. local checkType = require('libraryUtil').checkType local interwikiData = mw.loadData('Module:Interwiki/data') -------------------------------------------------------------------------------- -- Prefix class -------------------------------------------------------------------------------- local Prefix = {} Prefix.__index = Prefix function Prefix.new(code) checkType('Prefix.new...»)
 
Нет описания правки
Строка 29: Строка 29:
-- as underscores), even if the site is not a wiki and underscores don't
-- as underscores), even if the site is not a wiki and underscores don't
-- make sense. So we do the same here.
-- make sense. So we do the same here.
page = mw.uri.encode(page, 'WIKI')
page = mw.uri.encode(page, 'W')
return mw.message.newRawMessage(self.url, page):plain()
return mw.message.newRawMessage(self.url, page):plain()
end
end