Adam
Новая страница: «local p = {} function p.main(frame) local title = mw.title.getCurrentTitle().text -- frame:getTitle() local pattern = '' for k, v in pairs(frame.args) do pattern = '^' .. v .. '%s+«?(.-)»?([^»]-)$' -- mw.log('pattern = "' .. pattern .. '"') local key = mw.ustring.gsub(title, pattern, '%1%2', 1) if key ~= title then frame:callParserFunction{ name = 'DEFAULTSORT', args = { key, 'noreplace', }, }; -- mw.log('key =...»