Module:File/doc
From Neodyland Wiki
More actions
This is the documentation page for Module:File
Scope
File title and file information. If the code here grows beyond a border line, this should be converted to an interface and the processing code should be outsourced.
Usage
From Wikitext
Search (Template:Key press) for @exports.
- Example:
{{#invoke:File|extension|file=File:Test.jpg}}→jpg
From Lua
local file = require('Module:File')
local fileObj = file.File("Foo.bar.svg")
local withoutExtension = fileObj.woExtension()