11.314
suntingan
Tidak ada ringkasan suntingan Tag: Dikembalikan |
Tidak ada ringkasan suntingan Tag: Pengembalian manual |
||
Baris 1: | Baris 1: | ||
-- This module provides a library for formatting file wikilinks. | -- This module provides a library for formatting file wikilinks. | ||
local yesno = require(' | local yesno = require('Modul:Yesno') | ||
local checkType = require('libraryUtil').checkType | local checkType = require('libraryUtil').checkType | ||
Baris 14: | Baris 14: | ||
if type(val) ~= 'string' then | if type(val) ~= 'string' then | ||
error(string.format( | error(string.format( | ||
" | "galat pada '%s' parameter '_main' (expected string, hasil %s)", | ||
key, type(val) | key, type(val) | ||
), level) | ), level) | ||
Baris 81: | Baris 81: | ||
function p.main(frame) | function p.main(frame) | ||
local origArgs = require(' | local origArgs = require('Modul:Arguments').getArgs(frame, { | ||
wrappers = ' | wrappers = 'Templat:File link' | ||
}) | }) | ||
if not origArgs.file then | if not origArgs.file then | ||
error("'file' | error("parameter 'file' hilang dari [[Templat:File link]]", 0) | ||
end | end | ||