Jump to content

Module:File link: Difference between revisions

when calling this from wikitext use a more readable error message for missing file parameters
(use yesno to test whether to add a border)
(when calling this from wikitext use a more readable error message for missing file parameters)
Line 84: Line 84:
wrappers = 'Template:File link'
wrappers = 'Template:File link'
})
})
if not origArgs.file then
error("'file' parameter missing from [[Template:File link]]", 0)
end
-- Copy the arguments that were passed to a new table to avoid looking up
-- Copy the arguments that were passed to a new table to avoid looking up
-- every possible parameter in the frame object.
-- every possible parameter in the frame object.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.