Fandom

Forcepedia

모듈:Main

1,261총 문서
개 보유
Add New Page
토론0
-- This module implements [[Template:Main]].
 
local p = {}
 
function p._main(args)
	args[1] = args[1] or '{{{1}}}'
	local links = {}
	for i, v in ipairs(args) do
		links[i] = string.format(
			'[[%s|%s]]',
			v,
			args['l' .. i] or v:gsub("/레전드", "")
		)
	end
	local prefix
	if #links > 1 then
		prefix = '해당 문서'
	else
		prefix = '해당 문서'
	end
	links = mw.text.listToText(links)
	return string.format(
		'<div class="noprint rellink">[[File:Blue Glass Arrow.svg|20px|link=]] %s: %s</div>',
		prefix, links
	)
end
 
function p.main(frame)
	local args = {}
	for k, v in pairs(frame:getParent().args) do
		v = v:match('^%s*(.-)%s*$') -- trim whitespace
		if v ~= '' then
			args[k] = v
		end
	end
	return p._main(args)
end
 
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.