View source for Module:Infobox
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
function p.infobox( f )
local args = require( 'Module:ProcessArgs' ).merge( true )
local title = args.title or mw.title.getCurrentTitle().baseText
local imageArea = args.imagearea
if not imageArea and imageArea ~= 'none' then
local images = {}
local invImages = {}
local defaultImageSize = args.defaultimagesize or '150px'
args.image1 = args.image1 or args.image or 'title'
args.image1size = args.image1size or args.imagesize
args.invimage1 = args.invimage1 or args.invimage or 'title'
local imgCount = {}
local invImgCount = {}
local grid
for k, v in pairs( args ) do
local image, num = k:match( '^(image)(%d+)$' )
local invImage, invNum = k:match( '^(invimage)(%d+)$' )
if image then
table.insert( imgCount, tonumber( num ) )
000
1:0
Templates used on this page:
- Template:Documentation header (view source)
- Template:Sandbox other (view source)
- Template:T (view source)
- Template:Template link (view source)
- Template:Yesno (view source)
- Module:Documentation (view source)
- Module:Infobox/doc (view source)
- Module:ProcessArgs (view source)
- Module:Static (view source)
- Module:TSLoader (view source)
Return to Module:Infobox.