Module:Lang: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) corrections |
No edit summary |
||
| Line 203: | Line 203: | ||
local frame | local frame | ||
if type(key) == "table" and key.args then | if type(key) == "table" and key.args then | ||
frame = key | frame = type(key.preprocess) == "function" and key or mw.getCurrentFrame() | ||
key = | |||
lang_code_override = | local args = key.args | ||
fallback_str = | key = args[1] | ||
remove_var_index = | lang_code_override = args["lang_code_override"] | ||
item_name = | fallback_str = args["fallback_str"] | ||
remove_var_index = args["remove_var_index"] | |||
item_name = args["item_name"] | |||
else | else | ||
frame = mw.getCurrentFrame() | frame = mw.getCurrentFrame() | ||