편집 요약 없음
편집 요약 없음
106번째 줄: 106번째 줄:
local prevcode = p.prevcode(curr);
local prevcode = p.prevcode(curr);
if args['템플릿'] and mw.title.new(prevcode).exists == false then
if args['템플릿'] and mw.title.new(prevcode).exists == false then
                    prev = ustring.format('<div class="plainlinks">[https://librewiki.net/index.php?title=%s%s&action=edit&preload=%s&editintro=%s <div>%s<br>←</div>]</div>',
prev = '<div class="plainlinks">[https://librewiki.net/index.php?'..
                    prefix, mw.uri.encode(prevcode, "WIKI"), mw.uri.encode(args['템플릿'], "WIKI"), mw.uri.encode(args['editintro'], "WIKI"), p.prevchar(curr))
mw.uri.buildQueryString {
else  
preload = mw.uri.encode(args['템플릿'], "WIKI"),
prev = ustring.format('[[%s|<div>%s<br>←</div>]]', prevcode, p.prevchar(curr))
editintro = mw.uri.encode(args['editintro'], "WIKI"),
action='edit',
title= prefix..mw.uri.encode(prevcode, "WIKI")}..
' <div>'..p.prevchar(curr)..'<br>←</div>]</div>'
else
                  prev = ustring.format('[[%s|<div>%s<br>←</div>]]', prevcode, p.prevchar(curr))
end
end
end
end