恪別𡧲版𢯢𢷮𧵑「模庉:Tree chart」
Keepout2010 (討論 | 㨂𢵰) 造張㵋貝內容「require('Module:No globals') local p = {} local cells = mw.loadData('Module:Tree chart/data') function p._main(cell_args) local ret = mw.html.create() local top = ret:tag('tr') :css{ height = '1px', ['text-align'] = 'center' } local bottom = ret:tag('tr') :css{ height = '1px', ['text-align'] = 'center' } for _, v in ipairs(cell_args) do if type(v) == 'string' then top:wikitext(cells[v].t) bottom:wikitext(cells[v].b) else…」 |
Keepout2010 (討論 | 㨂𢵰) 空固縿略𢯢𢷮 |
||
| 𣳔1: | 𣳔1: | ||
require(' | require('模庉:No globals') | ||
local p = {} | local p = {} | ||
local cells = mw.loadData(' | local cells = mw.loadData('模庉:Tree chart/data') | ||
function p._main(cell_args) | function p._main(cell_args) | ||
| 𣳔31: | 𣳔31: | ||
function p.main(frame) | function p.main(frame) | ||
local args = require(' | local args = require('模庉:Arguments').getArgs(frame, {wrappers = '板㑄:Biểu đồ cây', trim = false, removeBlanks = false}) | ||
local cell_args = { | local cell_args = { | ||
colspan = args.colspan, | colspan = args.colspan, | ||