Module:File link: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(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. |