Zum Inhalt springen

Modul:File link: Unterschied zwischen den Versionen

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)
Zeile 84: Zeile 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.
Anonymer Benutzer