"모듈:Z"의 두 판 사이의 차이

 
(같은 사용자의 중간 판 10개는 보이지 않습니다)
1번째 줄: 1번째 줄:
local p = {}
local p = {}
function p.ord(frame)
function p.ucode(frame)
    return utf8.codepoint(frame.args[1])
return string.format("%X",mw.ustring.codepoint(frame.args[1]))
end
function p.ucode2(frame)
return string.format("%x",mw.ustring.codepoint(frame.args[1]))
end
end
return p
return p

2020년 1월 5일 (일) 18:14 기준 최신판

이 모듈에 대한 설명문서는 모듈:Z/설명문서에서 만들 수 있습니다

local p = {}
function p.ucode(frame)
	return string.format("%X",mw.ustring.codepoint(frame.args[1]))
end
function p.ucode2(frame)
	return string.format("%x",mw.ustring.codepoint(frame.args[1]))
end
return p
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}