편집 요약 없음 |
편집 요약 없음 |
||
| 1번째 줄: | 1번째 줄: | ||
local | local hanjaInfo = {} | ||
local html = mw.html | local html = mw.html | ||
local title_ = mw.title | local title_ = mw.title | ||
| 6번째 줄: | 6번째 줄: | ||
local strokeOrder = require('Module:한자/획순').strokeOrder_ | local strokeOrder = require('Module:한자/획순').strokeOrder_ | ||
function | function hanjaInfo.test(frame) return 'asdf' end | ||
local function unicode(str) | local function unicode(str) | ||
| 37번째 줄: | 37번째 줄: | ||
end | end | ||
-- 메인 상자 | -- 메인 상자 | ||
function | function hanjaInfo:render(titleTable) | ||
local render = html.create("div"):addClass("libre hanja-info"):cssText('box-shadow: 0 0.5em 1em -0.125em rgb(10 10 10 / 10%), 0 0 0 1px rgb(10 10 10 / 2%); border-radius: .25rem;') | local render = html.create("div"):addClass("libre hanja-info"):cssText('box-shadow: 0 0.5em 1em -0.125em rgb(10 10 10 / 10%), 0 0 0 1px rgb(10 10 10 / 2%); border-radius: .25rem;') | ||
local libre_tab = html.create("div"):addClass("libre-tab") | local libre_tab = html.create("div"):addClass("libre-tab") | ||
| 61번째 줄: | 61번째 줄: | ||
end | end | ||
function | function hanjaInfo:japan() | ||
local render = html.create("table"):css("width", "100%") | local render = html.create("table"):css("width", "100%") | ||
| 91번째 줄: | 91번째 줄: | ||
end | end | ||
function | function hanjaInfo:simplified() | ||
local render = html.create("table"):css("width", "100%") | local render = html.create("table"):css("width", "100%") | ||
| 114번째 줄: | 114번째 줄: | ||
end | end | ||
function | function hanjaInfo:traditional() | ||
local render = html.create("table"):css("width", "100%") | local render = html.create("table"):css("width", "100%") | ||
local hanja_text = html.create("td"):attr("colspan", "2"):addClass("hanja"):css("text-align", "center") | local hanja_text = html.create("td"):attr("colspan", "2"):addClass("hanja"):css("text-align", "center") | ||
| 159번째 줄: | 159번째 줄: | ||
end | end | ||
function | function hanjaInfo.main(frame) return hanjaInfo:main_(frame) end | ||
function | function hanjaInfo:main(frame) | ||
local args = getArgs(frame) | local args = getArgs(frame) | ||
local css | local css | ||
| 306번째 줄: | 306번째 줄: | ||
end]] | end]] | ||
return | return hanjaInfo | ||