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