//Edit via InPageEdit
SkyEye FAST(讨论 | 贡献) (//Edit via InPageEdit) |
SkyEye FAST(讨论 | 贡献) (//Edit via InPageEdit) |
||
第1行:
local p = {}
p.zhchar = function( f )▼
local args = f▼
if f == mw.getCurrentFrame() then▼
args = f:getParent().args▼
end▼
local zhchar = {}▼
for _, key in ipairs( args ) do▼
key = mw.text.trim( key )▼
if key ~= '+' and key:find( '%+' ) then▼
local combozhchar = {}▼
for comboKey in mw.text.gsplit( key, '%s*%+%s*' ) do▼
table.insert( combozhchar, p.key( comboKey ) )▼
end▼
table.insert( zhchar, table.concat( combozhchar, ' + ' ) )▼
table.insert( zhchar, p.key( key ) )▼
end▼
end▼
return table.concat( zhchar )▼
p.
if key == '' then▼
return ''▼
local symbols = mw.loadData( 'Module:Zhchar/Symbols' )▼
end
else
end
end
return mw.text.unstrip(symbols[key] or key)
return p
|