Content deleted Content added
use require('strict') instead of require('Module:No globals') |
Support imageclass parameter |
||
Line 10:
require('strict');
local data = mw.loadData ('Module:Infobox multi-lingual name/data
local lang_mod = require ('Module:Lang'); -- for various functions and templates provided by Module:Lang
local getArgs = require ('Module:Arguments').getArgs;
Line 636:
if show then
if any_set ({args.mr, args.rr
infobox_args['data' .. i] = transcriptions (frame, args, 'ko'); -- needs frame so that it can frame:expandTemplate()
end
Line 642:
i = add_label_data_pair (infobox_args, '[[Revised Romanization of Korean|Revised Romanization]]', is_set (args.rr) and lang_mod._transl ({'ko', 'rr', args.rr}) or nil, i)
i = add_label_data_pair (infobox_args, '[[McCune–Reischauer]]', is_set (args.mr) and lang_mod._transl ({'ko', 'mr', args.mr}) or nil, i)
i = add_label_data_pair (infobox_args, '[[Help:IPA/Korean|IPA]]', is_set (args.koreanipa) and args.koreanipa or nil, i)
end
Line 962 ⟶ 961:
'InfoboxImage',
image = args.pic,
imageclass = args.imageclass,
sizedefault = 'frameless',
size = args.picsize,
Line 1,302:
['rr'] = args.rr,
['mr'] = args.mr,
['northkorea'] = args.northkorea,
['lk'] = args.lk,
Line 1,319 ⟶ 1,318:
['rr'] = args['rr'..i],
['mr'] = args['mr'..i],
['northkorea'] = args['northkorea'..i],
['lk'] = args['lk'..i],
|