Modul:List: Perbedaan antara revisi

Loncat ke navigasi Loncat ke pencarian
17 bita dihapus ,  2 tahun yang lalu
tidak ada ringkasan suntingan
(←Membuat halaman berisi 'local libUtil = require('libraryUtil') local checkType = libUtil.checkType local mTableTools = require('Module:TableTools') local p = {} local listTypes = { ['bulleted'] = true, ['unbulleted'] = true, ['horizontal'] = true, ['ordered'] = true, ['horizontal_ordered'] = true } function p.makeListData(listType, args) -- Constructs a data table to be passed to p.renderList. local data = {} -- Classes and TemplateStyles data.classes = {} data.templatesty...')
Tidak ada ringkasan suntingan
Tag: Dikembalikan
Baris 162: Baris 162:
local ret = ''
local ret = ''
if isDeprecated then
if isDeprecated then
ret = ret .. '[[Kategori:Daftar templat dengan parameter yang tidak digunakan]]'
ret = ret .. '[[Category:List templates with deprecated parameters]]'
end
end
return ret
return ret
Baris 170: Baris 170:
if not listType or not listTypes[listType] then
if not listType or not listTypes[listType] then
error(string.format(
error(string.format(
"Argumen buruk #1 di 'makeList' ('%s' bukanlah tipe list yang valid)",
"bad argument #1 to 'makeList' ('%s' is not a valid list type)",
tostring(listType)
tostring(listType)
), 2)
), 2)

Menu navigasi