Module:File link: Difference between revisions

Content deleted Content added
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:
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
-- every possible parameter in the frame object.