Module:File link: Difference between revisions
use yesno to test whether to add a border
(make this a lot simpler - the original module was overkill for what it was trying to do) |
(use yesno to test whether to add a border) |
||
Line 1: | Line 1: | ||
-- This module provides a library for formatting file wikilinks. | -- This module provides a library for formatting file wikilinks. | ||
local yesno = require('Module:Yesno') | |||
local checkType = require('libraryUtil').checkType | local checkType = require('libraryUtil').checkType | ||
Line 57: | Line 58: | ||
end | end | ||
-- Border | |||
if yesno(args.border) then | |||
ret[#ret + 1] = 'border' | |||
end | |||
addPositional('location') | addPositional('location') | ||
addPositional('alignment') | addPositional('alignment') |