|
|
| 第43行: |
第43行: |
| function z.shortDesc(frame) | | function z.shortDesc(frame) |
| return shortDesc(frame, frame.args[1]) | | return shortDesc(frame, frame.args[1]) |
| end
| |
|
| |
| function z.reasons(frame)
| |
| wt = {}
| |
| for i, item in ipairs(data) do
| |
| if item['code'] == 'G8' then
| |
| -- 在提示選單隱藏G8
| |
| else
| |
| allnames = extractAliases(item)
| |
| table.insert(wt, '<tr><td>' .. mw.text.listToText(allnames, '、', '或') .. '<td title="' .. extractShortDesc(item) .. '">' .. item['criteria'] .. '</td>')
| |
| end
| |
| end
| |
| return '<table class="wikitable">' .. table.concat(wt) .. '</table>'
| |
| end | | end |
|
| |
|