Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Thank you all for participating in the 2025 reader survey! We will publish the results soon in the Essays space.

We have one more question for you:
How many daily visits do you think ProleWiki gets?

Module:Main article

From ProleWiki, the proletarian encyclopedia
local p = {}

function wikilink(name)
	if name:sub(1,2) == '[[' and name:sub(-2) == ']]' then
		name = name:sub(3,-3)
	end
	return '[[' .. name .. ']]'
end

function p.main(frame)
	local args = frame:getParent().args
	local blockquote = mw.html.create():tag('blockquote')
	
	local String = ''
	local counter = 1
	for k,v in pairs(args) do
		if k == 1 then
			String = String .. wikilink(v)
			else
				counter = counter+1
				String = String .. ', ' .. wikilink(v)
		end
	end
	if counter>1 then
		blockquote:wikitext("''See main articles: " .. String .. "''")
		else
			blockquote:wikitext("''See main article: " .. String .. "''")
	end
	return tostring(blockquote)
end
return p