<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="nl">
		<id>http://wiki.vuilnisbak.xyz/index.php?action=history&amp;feed=atom&amp;title=Module%3APortal_bar</id>
		<title>Module:Portal bar - Bewerkingsoverzicht</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.vuilnisbak.xyz/index.php?action=history&amp;feed=atom&amp;title=Module%3APortal_bar"/>
		<link rel="alternate" type="text/html" href="http://wiki.vuilnisbak.xyz/index.php?title=Module:Portal_bar&amp;action=history"/>
		<updated>2026-05-06T15:54:57Z</updated>
		<subtitle>Bewerkingsoverzicht voor deze pagina op de wiki</subtitle>
		<generator>MediaWiki 1.25.1</generator>

	<entry>
		<id>http://wiki.vuilnisbak.xyz/index.php?title=Module:Portal_bar&amp;diff=1063&amp;oldid=prev</id>
		<title>Admin: 1 versie geïmporteerd</title>
		<link rel="alternate" type="text/html" href="http://wiki.vuilnisbak.xyz/index.php?title=Module:Portal_bar&amp;diff=1063&amp;oldid=prev"/>
				<updated>2015-06-03T15:41:27Z</updated>
		
		<summary type="html">&lt;p&gt;1 versie geïmporteerd&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nieuwe pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements {{portal bar}}.&lt;br /&gt;
&lt;br /&gt;
require('Module:No globals')&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local buildNavbox = require( 'Module:Navbox' )._navbox&lt;br /&gt;
local getImageName = require( 'Module:Portal' ).image&lt;br /&gt;
local yesno = require( 'Module:Yesno' )&lt;br /&gt;
&lt;br /&gt;
-- Builds the portal bar used by {{portal bar}}.&lt;br /&gt;
function p._main( portals, args )&lt;br /&gt;
	if #portals &amp;lt; 1 then return '' end -- Don't display a blank navbox if no portals were specified.&lt;br /&gt;
	local list = mw.html.create( 'ul' )&lt;br /&gt;
	for _, portal in ipairs( portals ) do&lt;br /&gt;
		list&lt;br /&gt;
			:tag( 'li' )&lt;br /&gt;
				:css( 'display', 'inline' )&lt;br /&gt;
				:css( 'white-space', 'nowrap' )&lt;br /&gt;
				:tag( 'span' )&lt;br /&gt;
					:css( 'margin', 'auto 0.5em' )&lt;br /&gt;
					:wikitext( string.format( '[[File:%s|24x21px]]', getImageName{ portal } ) )&lt;br /&gt;
					:done()&lt;br /&gt;
				:tag( 'span' )&lt;br /&gt;
					:css( 'font-weight', 'bold' )&lt;br /&gt;
					:wikitext( string.format( '[[Portal:%s|%s portal]]', portal, portal ) )&lt;br /&gt;
	end&lt;br /&gt;
	if yesno( args.border ) == false then -- Don't display a border if args.border is &amp;quot;no&amp;quot;, &amp;quot;n&amp;quot;, &amp;quot;false&amp;quot;, 0 or false.&lt;br /&gt;
		return tostring(&lt;br /&gt;
			mw.html.create( 'div' )&lt;br /&gt;
				:addClass( 'noprint metadata' )&lt;br /&gt;
				:css( 'width', '100%' )&lt;br /&gt;
				:css( 'text-align', 'center' )&lt;br /&gt;
				:css( 'padding', '1px' )&lt;br /&gt;
				:css( 'font-size', '88%' )&lt;br /&gt;
				:node( list )&lt;br /&gt;
		)&lt;br /&gt;
	else&lt;br /&gt;
		return buildNavbox{&lt;br /&gt;
			navbar = 'off',&lt;br /&gt;
			bodyclass = 'noprint',&lt;br /&gt;
			list1 = tostring( list )&lt;br /&gt;
		}&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Processes external arguments and sends them to the other functions.&lt;br /&gt;
function p.main( frame )&lt;br /&gt;
	-- If called via #invoke, use the args passed into the invoking&lt;br /&gt;
	-- template, or the args passed to #invoke if any exist. Otherwise&lt;br /&gt;
	-- assume args are being passed directly in from the debug console&lt;br /&gt;
	-- or from another Lua module.&lt;br /&gt;
	local origArgs&lt;br /&gt;
	if type( frame.getParent ) == 'function' then&lt;br /&gt;
		origArgs = frame:getParent().args&lt;br /&gt;
		for k, v in pairs( frame.args ) do&lt;br /&gt;
			origArgs = frame.args&lt;br /&gt;
			break&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		origArgs = frame&lt;br /&gt;
	end&lt;br /&gt;
	-- Process the args to make an array of portal names that can be used with ipairs. We need to use ipairs because we want to list&lt;br /&gt;
	-- all the portals in the order they were passed to the template, but we also want to be able to deal with positional arguments&lt;br /&gt;
	-- passed explicitly, for example {{portal|2=Politics}}. The behaviour of ipairs is undefined if nil values are present, so we&lt;br /&gt;
	-- need to make sure they are all removed.&lt;br /&gt;
	local portals, args = {}, {}&lt;br /&gt;
	for k, v in pairs( origArgs ) do&lt;br /&gt;
		if type( k ) == 'number' and type( v ) == 'string' then -- Make sure we have no non-string portal names.&lt;br /&gt;
			if mw.ustring.find( v, '%S' ) then -- Remove blank values.&lt;br /&gt;
				table.insert( portals, k )&lt;br /&gt;
			end&lt;br /&gt;
		elseif type( k ) ~= 'number' then -- Separate named arguments from portals.&lt;br /&gt;
			if type( v ) == 'string' then&lt;br /&gt;
				v = mw.text.trim( v )&lt;br /&gt;
			end&lt;br /&gt;
			args[ k ] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	table.sort( portals )&lt;br /&gt;
	for i, v in ipairs( portals ) do&lt;br /&gt;
		portals[ i ] = mw.text.trim( origArgs[ v ] ) -- Swap keys with values, trimming whitespace.&lt;br /&gt;
	end&lt;br /&gt;
	return p._main( portals, args )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>