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