11.314
suntingan
Tidak ada ringkasan suntingan |
Tidak ada ringkasan suntingan |
||
| Baris 46: | Baris 46: | ||
local out_type = stripToNil(args[2]) | local out_type = stripToNil(args[2]) | ||
-- if out_type == 'colour' then | -- if out_type == 'colour' then | ||
-- out_type = ' | -- out_type = 'warna' | ||
-- end | -- end | ||
if out_type == 'colour' then | if out_type == 'colour' then | ||
out_type = ' | out_type = 'warna' | ||
end | end | ||
local index = getFirstLetter(party) | local index = getFirstLetter(party) | ||
| Baris 77: | Baris 77: | ||
if not party_info then | if not party_info then | ||
-- if out_type == 'color' then | -- if out_type == 'color' then | ||
if out_type == ' | if out_type == 'warna' then | ||
return args.error or default_color | return args.error or default_color | ||
else | else | ||
| Baris 86: | Baris 86: | ||
if return_value == "" then | if return_value == "" then | ||
-- if out_type == 'color' then | -- if out_type == 'color' then | ||
if out_type == ' | if out_type == 'warna' then | ||
return args.error or create_error("Value not in template. Please request that it be added.") | return args.error or create_error("Value not in template. Please request that it be added.") | ||
elseif out_type == 'abbrev' then | elseif out_type == 'abbrev' then | ||
| Baris 106: | Baris 106: | ||
-- if out_type == 'color' and string.find(return_value, '#') then | -- if out_type == 'color' and string.find(return_value, '#') then | ||
if out_type == ' | if out_type == 'warna' and string.find(return_value, '#') then | ||
return_value = string.gsub(return_value, '#', '#') | return_value = string.gsub(return_value, '#', '#') | ||
end | end | ||