편집 요약 없음 |
편집 요약 없음 |
||
| 85번째 줄: | 85번째 줄: | ||
local curr = args[1] or args['기호'] or args['문자'] or nil | local curr = args[1] or args['기호'] or args['문자'] or nil | ||
local eng = args['영어이름'] or p.block(curr) | local eng = args['영어이름'] or p.block(curr) | ||
local prefix = args['경로'] | |||
local root = mw.html.create('table'):addClass(class..' unicodechar') | local root = mw.html.create('table'):addClass(class..' unicodechar') | ||
:cssText('margin: 0 auto ;max-width: ;width: ;float: right; text-align: center; clear:right') | :cssText('margin: 0 auto ;max-width: ;width: ;float: right; text-align: center; clear:right') | ||
| 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>←</div>]</div>', | prev = ustring.format('<div class="plainlinks">[https://librewiki.net/index.php?title=%s/%s&action=edit&preload=%s <div>%s<br>←</div>]</div>', | ||
mw.uri.encode(prevcode, "WIKI"), mw.uri.encode(args['템플릿'], "WIKI"), p.prevchar(curr)) | prefix, mw.uri.encode(prevcode, "WIKI"), mw.uri.encode(args['템플릿'], "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&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 <div>%s<br>→</div>]</div>', | ||
mw.uri.encode(nextcode, "WIKI"), mw.uri.encode(args['템플릿'], "WIKI"), p.nextchar(curr)) | prefix, mw.uri.encode(nextcode, "WIKI"), mw.uri.encode(args['템플릿'], "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&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 <div>%s<br>←</div>]</div>', | ||
prevchar, mw.uri.encode(args['템플릿'], "WIKI"), prevchar) | prefix, prevchar, mw.uri.encode(args['템플릿'], "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&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 <div>%s<br>→</div>]</div>', | ||
nextchar, mw.uri.encode(args['템플릿'], "WIKI"), nextchar) | prefix, nextchar, mw.uri.encode(args['템플릿'], "WIKI"), nextchar) | ||
else | else | ||
next = ustring.format('[[%s|<div>%s<br>→</div>]]', nextchar, nextchar) | next = ustring.format('[[%s|<div>%s<br>→</div>]]', nextchar, nextchar) | ||