Modul:List: Perbedaan antara revisi
Tampilan
Mediawiki>Paine Ellsworth xfer from sandbox per edit request on talk page |
k 1 revisi diimpor |
||
| Baris 4: | Baris 4: | ||
local libUtil = require('libraryUtil') | local libUtil = require('libraryUtil') | ||
local checkType = libUtil.checkType | local checkType = libUtil.checkType | ||
local mTableTools = require(' | local mTableTools = require('Modul:TableTools') | ||
local p = {} | local p = {} | ||
| Baris 158: | Baris 158: | ||
local ret = '' | local ret = '' | ||
if isDeprecated then | if isDeprecated then | ||
ret = ret .. '[[ | ret = ret .. '[[Kategori:Daftar templat dengan parameter yang tidak digunakan]]' | ||
end | end | ||
return ret | return ret | ||
| Baris 166: | Baris 166: | ||
if not listType or not listTypes[listType] then | if not listType or not listTypes[listType] then | ||
error(string.format( | error(string.format( | ||
"bad argument #1 to 'makeList' ('%s' | "bad argument #1 to 'makeList' ('%s' bukan jenis daftar yang valid)", | ||
tostring(listType) | tostring(listType) | ||
), 2) | ), 2) | ||
| Baris 179: | Baris 179: | ||
for listType in pairs(listTypes) do | for listType in pairs(listTypes) do | ||
p[listType] = function (frame) | p[listType] = function (frame) | ||
local mArguments = require(' | local mArguments = require('Modul:Arguments') | ||
local origArgs = mArguments.getArgs(frame | local origArgs = mArguments.getArgs(frame) | ||
-- Copy all the arguments to a new table, for faster indexing. | -- Copy all the arguments to a new table, for faster indexing. | ||
local args = {} | local args = {} | ||