Difference between revisions of "Module:Infobox"

Jump to navigation Jump to search
1 byte added ,  17:20, 11 August 2022
no edit summary
(Created page with "local com = require('Module:Common') local a = require('Module:Arguments') local p = {} local function mainBox(title) local result = mw.html.create('div') result:addClass('infobox') :tag('div') :class('infobox-title') :wikitext(com.modulePagename(title)) :done() return result end local function infoboxImage(image, defaultImage, caption, defaultCaption) local result = mw.html.create('div') result:addClass('infobox-image') if image or defaultImage then...")
 
Line 18: Line 18:
if image or defaultImage then
if image or defaultImage then
local file = '%[%File:'
local file = '%[%[File:'
if image then
if image then
file = file .. image
file = file .. image

Navigation menu