(새 문서: p = {} function tr(th, td) return "\n|-\n! " .. th .. "\n| " .. td end function p.main(frame) result = "" for s in frame.args[1]:gmatch("[^\r\n]+") do if (frame:getParent().args[s] and frame:getParent().args[s] ~= "") then result = result .. tr(s, frame:getParent().args[s]) end end return "{| class='infobox'" .. result .. "\n|}" end return p)
 
편집 요약 없음
 
12번째 줄: 12번째 줄:
end
end
end
end
return "{| class='infobox'" ..  result .. "\n|}"
return "{| class='infobox' style='width: 24em;'" ..  result .. "\n|}"
end
end


return p
return p

2022년 8월 1일 (월) 21:32 기준 최신판

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

p = {} 

function tr(th, td)
	return "\n|-\n! " .. th .. "\n| " .. td
end

function p.main(frame)
	result = ""
	for s in frame.args[1]:gmatch("[^\r\n]+") do
		if (frame:getParent().args[s] and frame:getParent().args[s] ~= "") then
			result = result .. tr(s, frame:getParent().args[s])
		end
	end
	return "{| class='infobox' style='width: 24em;'" ..  result .. "\n|}"
end

return p