Modul:Partai politik: Perbedaan antara revisi

9 bita ditambahkan ,  2 tahun yang lalu
tidak ada ringkasan suntingan
Tidak ada ringkasan suntingan
Tidak ada ringkasan suntingan
Baris 88: Baris 88:
if out_type == 'warna' then
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 == 'singkatan' then
if party_info.shortname ~= "" then
if party_info.shortname ~= "" then
return party_info.shortname
return party_info.shortname
Baris 95: Baris 95:
end
end
elseif out_type == 'shortname' then
elseif out_type == 'shortname' then
if party_info.abbrev ~= "" then
if party_info.singkatan ~= "" then
return party_info.abbrev
return party_info.singkatan
else
else
return party
return party