<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.agency/index.php?action=history&amp;feed=atom&amp;title=Module%3ATeam_roster_navbox</id>
		<title>Module:Team roster navbox - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.agency/index.php?action=history&amp;feed=atom&amp;title=Module%3ATeam_roster_navbox"/>
		<link rel="alternate" type="text/html" href="https://wiki.agency/index.php?title=Module:Team_roster_navbox&amp;action=history"/>
		<updated>2026-04-28T10:52:20Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.1</generator>

	<entry>
		<id>https://wiki.agency/index.php?title=Module:Team_roster_navbox&amp;diff=688&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.agency/index.php?title=Module:Team_roster_navbox&amp;diff=688&amp;oldid=prev"/>
				<updated>2018-10-24T22:40:59Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 22:40, 24 October 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;en&quot;&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>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.agency/index.php?title=Module:Team_roster_navbox&amp;diff=687&amp;oldid=prev</id>
		<title>Frietjes: move up to allow override</title>
		<link rel="alternate" type="text/html" href="https://wiki.agency/index.php?title=Module:Team_roster_navbox&amp;diff=687&amp;oldid=prev"/>
				<updated>2018-07-10T14:27:18Z</updated>
		
		<summary type="html">&lt;p&gt;move up to allow override&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements {{team roster navbox}}&lt;br /&gt;
local me = { }&lt;br /&gt;
&lt;br /&gt;
local Navbox = require(&amp;#039;Module:Navbox&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local getArgs -- lazily initialized&lt;br /&gt;
&lt;br /&gt;
local function colorlinks(v, s)&lt;br /&gt;
	if v and v ~= &amp;#039;&amp;#039; and s and s ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		if not mw.ustring.match(v, &amp;#039;&amp;lt;span style&amp;#039;) then&lt;br /&gt;
			v = mw.ustring.gsub(v, &amp;#039;%[%[([^%[%]|]*)%]%]&amp;#039;, &lt;br /&gt;
				&amp;#039;[[%1|&amp;lt;span style=&amp;quot;&amp;#039; .. s .. &amp;#039;&amp;gt;%1&amp;lt;/span&amp;gt;]]&amp;#039;)&lt;br /&gt;
			v = mw.ustring.gsub(v, &amp;#039;%[%[([^%[%]|]*)|([^%[%]|]*)%]%]&amp;#039;, &lt;br /&gt;
				&amp;#039;[[%1|&amp;lt;span style=&amp;quot;&amp;#039; .. s .. &amp;#039;&amp;gt;%2&amp;lt;/span&amp;gt;]]&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return v&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function extractstyle(v)&lt;br /&gt;
	local r = &amp;#039;&amp;#039;&lt;br /&gt;
	local slist = mw.text.split(mw.ustring.gsub(mw.ustring.gsub(v or &amp;#039;&amp;#039;, &amp;#039;&amp;amp;#[Xx]23;&amp;#039;, &amp;#039;#&amp;#039;), &amp;#039;&amp;amp;#35;&amp;#039;, &amp;#039;#&amp;#039;), &amp;#039;;&amp;#039;)&lt;br /&gt;
	for k = 1,#slist do&lt;br /&gt;
		local s = slist[k]&lt;br /&gt;
		if s:match(&amp;#039;^[%s]*background&amp;#039;) or s:match(&amp;#039;^[%s]*color&amp;#039;) then&lt;br /&gt;
			r = r .. s .. &amp;#039;;&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return r&lt;br /&gt;
end	&lt;br /&gt;
&lt;br /&gt;
function me.generateRosterNavbox(frame)&lt;br /&gt;
	if not getArgs then&lt;br /&gt;
		getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
	end&lt;br /&gt;
    local args = { }&lt;br /&gt;
    local parentArgs = getArgs(frame)&lt;br /&gt;
    &lt;br /&gt;
    -- Default is to nowrap items&lt;br /&gt;
    args[&amp;#039;nowrapitems&amp;#039;] = &amp;#039;yes&amp;#039;&lt;br /&gt;
&lt;br /&gt;
    -- Massage the styles for coloring the links&lt;br /&gt;
    local basestyle  = extractstyle(parentArgs[&amp;#039;basestyle&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
    local titlestyle = extractstyle(parentArgs[&amp;#039;titlestyle&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
    local abovestyle = extractstyle(parentArgs[&amp;#039;abovestyle&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
    local groupstyle = extractstyle(parentArgs[&amp;#039;groupstyle&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
    local belowstyle = extractstyle(parentArgs[&amp;#039;belowstyle&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
    &lt;br /&gt;
    if basestyle ~= &amp;#039;&amp;#039; then&lt;br /&gt;
    	titlestyle = basestyle .. &amp;#039;;&amp;#039; .. titlestyle&lt;br /&gt;
    	abovestyle = basestyle .. &amp;#039;;&amp;#039; .. abovestyle&lt;br /&gt;
    	groupstyle = basestyle .. &amp;#039;;&amp;#039; .. groupstyle&lt;br /&gt;
    	belowstyle = basestyle .. &amp;#039;;&amp;#039; .. belowstyle&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    -- Color links before passing them to the Navbox helper function&lt;br /&gt;
    for argName, value in pairs(parentArgs) do&lt;br /&gt;
        if value ~= &amp;#039;&amp;#039; then&lt;br /&gt;
            if type(argName) == &amp;#039;string&amp;#039; then&lt;br /&gt;
                if argName == &amp;#039;title&amp;#039; then&lt;br /&gt;
                    value = colorlinks(value, titlestyle)&lt;br /&gt;
                elseif argName == &amp;#039;above&amp;#039; then&lt;br /&gt;
                    value = colorlinks(value, abovestyle)&lt;br /&gt;
                elseif mw.ustring.find(argName, &amp;#039;^group[0-9]&amp;#039;) then&lt;br /&gt;
                    value = colorlinks(value, groupstyle)&lt;br /&gt;
                elseif argName == &amp;#039;below&amp;#039; then&lt;br /&gt;
                    value = colorlinks(value, belowstyle)&lt;br /&gt;
                end&lt;br /&gt;
                args[argName] = value&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    -- Note Navbox.navbox() has a kludge to order the parent frame&amp;#039;s args&lt;br /&gt;
    -- into a specific order. For now, this is omitted from this module.&lt;br /&gt;
&lt;br /&gt;
    return Navbox._navbox(args)&lt;br /&gt;
&lt;br /&gt;
end  -- function me.generateRosterNavbox&lt;br /&gt;
&lt;br /&gt;
return me&lt;/div&gt;</summary>
		<author><name>Frietjes</name></author>	</entry>

	</feed>