<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.ssdcougars.tv/index.php?action=history&amp;feed=atom&amp;title=Module%3APortal_bar</id>
		<title>Module:Portal bar - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.ssdcougars.tv/index.php?action=history&amp;feed=atom&amp;title=Module%3APortal_bar"/>
		<link rel="alternate" type="text/html" href="http://wiki.ssdcougars.tv/index.php?title=Module:Portal_bar&amp;action=history"/>
		<updated>2026-04-30T10:54:29Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.0</generator>

	<entry>
		<id>http://wiki.ssdcougars.tv/index.php?title=Module:Portal_bar&amp;diff=934&amp;oldid=prev</id>
		<title>Setvadmin: 1 revision imported: Added some new pages and a Help:Cheatsheet</title>
		<link rel="alternate" type="text/html" href="http://wiki.ssdcougars.tv/index.php?title=Module:Portal_bar&amp;diff=934&amp;oldid=prev"/>
				<updated>2016-08-21T23:39:25Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision imported: Added some new pages and a Help:Cheatsheet&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 23:39, 21 August 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Setvadmin</name></author>	</entry>

	<entry>
		<id>http://wiki.ssdcougars.tv/index.php?title=Module:Portal_bar&amp;diff=933&amp;oldid=prev</id>
		<title>Matt Fitzpatrick: div sted nested tables (css now supports .navbox margins on non-tables), keep icons out of mediaviewer, remove extra left margin, prevent wrap between icon and link, fix IE8 overflow</title>
		<link rel="alternate" type="text/html" href="http://wiki.ssdcougars.tv/index.php?title=Module:Portal_bar&amp;diff=933&amp;oldid=prev"/>
				<updated>2016-07-15T23:48:54Z</updated>
		
		<summary type="html">&lt;p&gt;div sted nested tables (css now supports .navbox margins on non-tables), keep icons out of mediaviewer, remove extra left margin, prevent wrap between icon and link, fix IE8 overflow&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&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 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;
	&lt;br /&gt;
	local nav = mw.html.create( 'div' )&lt;br /&gt;
		:addClass( 'noprint metadata' )&lt;br /&gt;
		:attr( 'role', 'navigation' )&lt;br /&gt;
		:attr( 'aria-label' , 'Portals' )&lt;br /&gt;
		:css( 'font-weight', 'bold' )&lt;br /&gt;
	if yesno( args.border ) == false then&lt;br /&gt;
		nav&lt;br /&gt;
			:css( 'padding', '0.3em 1.7em 0.1em' )&lt;br /&gt;
			:css( 'font-size', '88%' )&lt;br /&gt;
			:css( 'text-align', 'center' )&lt;br /&gt;
	else&lt;br /&gt;
		nav&lt;br /&gt;
			:addClass( 'navbox' )&lt;br /&gt;
			:css( 'padding', '0.4em 2em' )&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local list = mw.html.create( 'ul' )&lt;br /&gt;
		:css( 'margin', '0.1em 0 0' )&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;
				:tag( 'span' ) -- Inline-block on inner span for IE6-7 compatibility.&lt;br /&gt;
					:css( 'display', 'inline-block' )&lt;br /&gt;
					:css( 'white-space', 'nowrap' )&lt;br /&gt;
					:tag( 'span' )&lt;br /&gt;
						:css( 'margin', '0 0.5em' )&lt;br /&gt;
						:wikitext( string.format( '[[File:%s|24x21px]]', getImageName{ portal } ) )&lt;br /&gt;
						:done()&lt;br /&gt;
					:wikitext( string.format( '[[Portal:%s|%s portal]]', portal, portal ) )&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	nav&lt;br /&gt;
		:node( list )&lt;br /&gt;
	&lt;br /&gt;
	return tostring( nav )&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>Matt Fitzpatrick</name></author>	</entry>

	</feed>