모듈:한자: 두 판 사이의 차이

편집 요약 없음
편집 요약 없음
2번째 줄: 2번째 줄:


function p.notnul(frame)
function p.notnul(frame)
local args = frame.args[1]
local title = frame.args[1]
local text = frame.args[2]
local hanja = frame.args[2]
if args == '' then
if hanja == '' then
return ''
return ''
end
end
return text:gsub('~~', args)
return
'<div class="NavFrame collapsed" style="border:none;">'..
'<div class="NavHead">'..
title..
'</div>'..
'<div class="NavContent">'..
hanja..
'</div>'..
'</div>'
end
end


return p
return p

2021년 6월 28일 (월) 21:05 판

설명문서 [편집] [역사] [새로고침]
연습장이나 사용자 문서에서 틀의 사용이나 수정을 연습할 수 있습니다.
분류는 /설명문서에 넣어주세요.

local p = {}

function p.notnul(frame)
	local title = frame.args[1]
	local hanja = frame.args[2]
	if hanja == '' then
		return ''
	end
	return
	'<div class="NavFrame collapsed" style="border:none;">'..
		'<div class="NavHead">'..
			title..
		'</div>'..
		'<div class="NavContent">'..
			hanja..
		'</div>'..
	'</div>'
end

return p