Module:Infobox: Difference between revisions
Merge step 2, remove references to separate settings/IDs modules |
See if anyone is using this |
||
| Line 4: | Line 4: | ||
local titleObject = mw.title.getCurrentTitle() | local titleObject = mw.title.getCurrentTitle() | ||
local title = args.title or titleObject.baseText | local title = args.title or titleObject.baseText | ||
local category = '' | |||
local imageArea = args.imagearea | local imageArea = args.imagearea | ||
| Line 71: | Line 72: | ||
local imageTitle = mw.title.new( 'File:Grid ' .. title .. '.png' ) | local imageTitle = mw.title.new( 'File:Grid ' .. title .. '.png' ) | ||
imageExists = imageTitle and imageTitle.exists | imageExists = imageTitle and imageTitle.exists | ||
if imageExists then | |||
category = '[[Category:Fixme]]' | |||
end | |||
end | end | ||
if imageExists then | if imageExists then | ||
| Line 127: | Line 131: | ||
} | } | ||
return table.concat( html, '\n' ) | return table.concat( html, '\n' ), category | ||
end | end | ||
return p | return p | ||