편집 요약 없음 |
|||
| 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&action=edit&preload=%s <div>%s<br> | prev = ustring.format('<div class="plainlinks">[https://librewiki.net/index.php?title=%s&action=edit&preload=%s <div>%s<br>←</div>]</div>', | ||
mw.uri.encode(prevcode, "WIKI"), mw.uri.encode(args['템플릿'], "WIKI"), p.prevchar(curr)) | mw.uri.encode(prevcode, "WIKI"), mw.uri.encode(args['템플릿'], "WIKI"), p.prevchar(curr)) | ||
else | else | ||
| 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&action=edit&preload=%s <div>%s<br> | prev = ustring.format('<div class="plainlinks">[https://librewiki.net/index.php?title=%s&action=edit&preload=%s <div>%s<br>←</div>]</div>', | ||
prevchar, mw.uri.encode(args['템플릿'], "WIKI"), prevchar) | prevchar, mw.uri.encode(args['템플릿'], "WIKI"), prevchar) | ||
else | else | ||