틀이 끝나면 반드시 {{-}}를 붙이세요.
설명이 없습니다.
변수 | 설명 | 형식 | 상태 | |
---|---|---|---|---|
한자 | 한자 | 한자를 입력합니다.
| 문자열 | 제안 |
제목없음 | 제목없음 | 설명 없음
| 부울식 | 제안 |
local p = {}
function p.main(frame)
local args = require('Module:Arguments').getArgs(frame)
local self = p
local css = {
['display'] = 'flex',
['flex-wrap'] = 'wrap',
['text-align'] = 'center'
}
local root = mw.html.create('div'):css(css):addClass('hanja-forms')
function self.makefilelink(filename, caption)
return mw.html.create('div')
:wikitext('<div class="hanja-forms-image" style="height: 70px;">[[파일:', filename, '|100x100px]]</div><div class="hanja-forms-caption" style="line-height: 1.3em;">', caption, '</div>')
end
do
local i = 1
while args[i] and i < 30 do
root:node(self.makefilelink(args[i], args[i + 1]))
i = i + 2
end
end
return root
end
return p