Module:Gallery: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(removed non-semantic dl dd elements (invalid HTML5))
(use if preview, move to module version (someone bug me about hist merging the template namespace templatestyles page)
Line 3: Line 3:
local p = {}
local p = {}


local templatestyles = 'Template:Gallery/styles.css'
local templatestyles = 'Module:Gallery/styles.css'
local yesno = require('Module:Yesno')
local yesno = require('Module:Yesno')


Line 121: Line 121:


local trackstr = (#tracking > 0) and table.concat(tracking, '') or ''
local trackstr = (#tracking > 0) and table.concat(tracking, '') or ''
if #preview > 0 and frame:preprocess( "{{REVISIONID}}" ) == "" then
if #preview > 0 then
trackstr = tostring(mw.html.create('div')
trackstr = require('Module:If preview')._warning({
'Unknown parameters ' .. table.concat(preview, '; ') .. '.'
:addClass('hatnote')
}) .. trackstr
:css('color','red')
:tag('strong'):wikitext('Warning:'):done()
:wikitext('Unknown parameters: ' .. table.concat(preview, '; ')))
end
end