https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ALoad_WikiProject_Modules%2Fsandbox
Module:Load WikiProject Modules/sandbox - Revision history
2025-06-01T23:31:00Z
Revision history for this page on the wiki
MediaWiki 1.45.0-wmf.3
https://en.wikipedia.org/w/index.php?title=Module:Load_WikiProject_Modules/sandbox&diff=1277328761&oldid=prev
Myotus at 00:49, 24 February 2025
2025-02-24T00:49:58Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 00:49, 24 February 2025</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 21:</td>
<td colspan="2" class="diff-lineno">Line 21:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> index['Maps'] = 'MapPin.svg'</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> index['Maps'] = 'MapPin.svg'</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> index['Metrics'] = 'ArticleCheck.svg'</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> index['Metrics'] = 'ArticleCheck.svg'</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> index['<del style="font-weight: bold; text-decoration: none;">Assessment</del>'] = 'ArticleCheck.svg'</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> index['<ins style="font-weight: bold; text-decoration: none;">Assessments</ins>'] = 'ArticleCheck.svg'</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> index['News'] = 'Calendar icon 2.svg'</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> index['News'] = 'Calendar icon 2.svg'</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> index['Offline App'] = 'Offline logo.svg'</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> index['Offline App'] = 'Offline logo.svg'</div></td>
</tr>
</table>
Myotus
https://en.wikipedia.org/w/index.php?title=Module:Load_WikiProject_Modules/sandbox&diff=1277327705&oldid=prev
Myotus: adding Assessment
2025-02-24T00:43:13Z
<p>adding Assessment</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 00:43, 24 February 2025</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 21:</td>
<td colspan="2" class="diff-lineno">Line 21:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> index['Maps'] = 'MapPin.svg'</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> index['Maps'] = 'MapPin.svg'</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> index['Metrics'] = 'ArticleCheck.svg'</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> index['Metrics'] = 'ArticleCheck.svg'</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div> index['Assessment'] = 'ArticleCheck.svg'</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> index['News'] = 'Calendar icon 2.svg'</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> index['News'] = 'Calendar icon 2.svg'</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> index['Offline App'] = 'Offline logo.svg'</div></td>
<td class="diff-marker"></td>
<td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> index['Offline App'] = 'Offline logo.svg'</div></td>
</tr>
</table>
Myotus
https://en.wikipedia.org/w/index.php?title=Module:Load_WikiProject_Modules/sandbox&diff=1001307838&oldid=prev
Pppery: Pppery moved page Module:Load WikiProject Modules/testcases to Module:Load WikiProject Modules/sandbox without leaving a redirect: Seems to be a sandbox, not testcases
2021-01-19T03:31:02Z
<p>Pppery moved page <a href="/w/index.php?title=Module:Load_WikiProject_Modules/testcases&action=edit&redlink=1" class="new" title="Module:Load WikiProject Modules/testcases (page does not exist)">Module:Load WikiProject Modules/testcases</a> to <a href="/wiki/Module:Load_WikiProject_Modules/sandbox" title="Module:Load WikiProject Modules/sandbox">Module:Load WikiProject Modules/sandbox</a> without leaving a redirect: Seems to be a sandbox, not testcases</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 03:31, 19 January 2021</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
Pppery
https://en.wikipedia.org/w/index.php?title=Module:Load_WikiProject_Modules/sandbox&diff=994131658&oldid=prev
Breadyornot: ←Created page with 'local p = {} function standardicon(modulename) index = {} -- Take modulename as input, returns corresponding icon filename -- Returns default icon if no icon...'
2020-12-14T06:16:15Z
<p><a href="/wiki/Wikipedia:AES" class="mw-redirect" title="Wikipedia:AES">←</a>Created page with 'local p = {} function standardicon(modulename) index = {} -- Take modulename as input, returns corresponding icon filename -- Returns default icon if no icon...'</p>
<p><b>New page</b></p><div>local p = {}<br />
<br />
function standardicon(modulename)<br />
index = {}<br />
-- Take modulename as input, returns corresponding icon filename<br />
-- Returns default icon if no icon is defined<br />
-- Grow the library! Add default icons as needed by adding this line below:<br />
-- index['MODULENAME'] = 'FILE NAME.ext'<br />
index['About'] = 'Information Noun 176431.svg'<br />
index['About us'] = 'Information Noun 176431.svg'<br />
index['Alerts'] = 'Bell icon.svg'<br />
index['Article alerts'] = 'Bell icon.svg'<br />
index['Article Alerts'] = 'Bell icon.svg'<br />
index['Partners'] = 'Handshake noun.svg'<br />
index['Partnerships'] = 'Handshake noun.svg'<br />
index['Discussions'] = 'Speechbubbles icon.svg'<br />
index['Events'] = 'Simpleicons Business calendar-with-a-clock-time-tools.svg' -- Is this PD-shapes?<br />
index['External Links'] = 'Link icon.svg'<br />
index['External links'] = 'Link icon.svg'<br />
index['Links'] = 'Link icon.svg'<br />
index['Maps'] = 'MapPin.svg'<br />
index['Metrics'] = 'ArticleCheck.svg'<br />
index['News'] = 'Calendar icon 2.svg'<br />
index['Offline App'] = 'Offline logo.svg'<br />
index['Press'] = 'Cite newspaper.svg'<br />
index['Recent changes'] = 'Clock icon.svg'<br />
index['Recent Changes'] = 'Clock icon.svg'<br />
index['Recognized content'] = 'RibbonPrize.svg'<br />
index['Recognized Content'] = 'RibbonPrize.svg'<br />
index['Related Projects'] = 'Contributions icon.svg' -- Not for use for the update bot, special use case, that expands the page <br />
index['Related WikiProjects'] = 'Contributions icon.svg'<br />
index['Requests'] = 'Quotes icon.svg'<br />
index['Research'] = 'Microscope icon (black OCL).svg'<br />
index['Resources'] = 'Cite book.svg'<br />
index['Showcase'] = 'RibbonPrize.svg'<br />
index['Tasks'] = 'ListBullet.svg'<br />
index['Tools'] = 'Octicons-tools-minor.svg'<br />
index['Translations'] = 'Translation icon.svg'<br />
index['Watchlist'] = 'OpenEye icon.svg'<br />
index['Worklists'] = 'ListBullet.svg'<br />
for t, fn in pairs(index) do<br />
if t == modulename then<br />
return fn<br />
end<br />
end<br />
return 'Beta icon.svg' -- default if nothing matches<br />
end<br />
<br />
function editlinktest(modulename)<br />
no_edit_links = {'Discussions', 'Alerts', 'Showcase', 'Related WikiProjects'} -- no edit link for these standard modules<br />
<br />
for _, l in pairs(no_edit_links) do<br />
if l == modulename then<br />
return 'no'<br />
end<br />
end<br />
return 'yes'<br />
end<br />
<br />
function p.build(frame)<br />
title = ''<br />
intro = ''<br />
image = ''<br />
color = '#6af' -- default value<br />
displaymode = 'normal' -- default value<br />
modules = {}<br />
for key, value in pairs(frame:getParent().args) do -- iterate through arguments, pick out values<br />
if key == 'title' then<br />
title = value<br />
elseif key == 'intro' then<br />
intro = value<br />
elseif key == 'image' then<br />
image = value<br />
elseif key == 'color' then<br />
color = value<br />
elseif key == 'displaymode' then<br />
displaymode = value<br />
elseif string.find(key, 'module') ~= nil then -- matches module1, module2, etc.<br />
id = string.gsub(key, 'module', '')<br />
id = tonumber(id)<br />
modules[id] = value<br />
end<br />
end<br />
<br />
-- Rendering table of contents and body<br />
toc_args = {width = 80, height = 55} -- passed into Image Array module<br />
toc_args['font-size'] = '100%'<br />
toc_args['margin'] = 0<br />
body = ""<br />
<br />
-- Load a Table of Contents entry, transclude module, for each named module<br />
counter = 0<br />
for _, module in pairs(modules) do<br />
counter = counter + 1<br />
toc_args['image' .. counter] = standardicon(module)<br />
toc_args['alt' .. counter] = module<br />
if displaymode == "writing" then<br />
if module == "Metrics" or module == "Showcase" or module == "About us" or module == "Press" or module == "Research" or module == "External links" then<br />
toc_args['link' .. counter] = "Wikipedia:WikiProject Writing/" .. module<br />
else<br />
toc_args['link' .. counter] = "#" .. module<br />
end<br />
else<br />
toc_args['link' .. counter] = "#" .. module<br />
end<br />
toc_args['caption' .. counter] = "[[" .. toc_args['link' .. counter] .. "|" .. module .. "]]"<br />
if module == "Related WikiProjects" then<br />
-- Load the appropriate subpage of [[Wikipedia:Related WikiProjects]]<br />
moduletitle = 'Related WikiProjects' .. '/' .. title<br />
moduletitle_encoded = string.gsub('Wikipedia:' .. moduletitle, ' ', '_')<br />
body = body .. "\n" .. frame:expandTemplate{ title = 'WPX header', args = { module, color = color, modulename = moduletitle_encoded, editlink = editlinktest(module) } }<br />
body = body .. "\n" .. frame:expandTemplate{ title = "Wikipedia:Related WikiProjects/" .. title, args = {color} }<br />
else<br />
if displaymode == "normal" or ( displaymode == "womeninred" and module ~= "Metrics" and module ~= "Showcase" and module ~= "About us" and module ~= "Press" and module ~= "Research" and module ~= "External links" ) then<br />
moduletitle = title .. '/' .. module<br />
moduletitle_encoded = string.gsub('Wikipedia:' .. moduletitle, ' ', '_')<br />
body = body .. "\n" .. frame:expandTemplate{ title = 'WPX header', args = { module, color = color, modulename = moduletitle_encoded, editlink = editlinktest(module) } }<br />
if mw.title.makeTitle('Wikipedia', moduletitle).exists == true then<br />
body = body .. "\n" .. frame:expandTemplate{ title = 'Wikipedia:' .. moduletitle, args = {color} } .. "\n<div style='clear:both;'></div>"<br />
else<br />
-- Is module in question a Standard Module? If so, load the template with corresponding editintro<br />
if mw.title.makeTitle('Template', 'WPX module/' .. module).exists == true then<br />
preload = '&preload=Template:WPX_module/' .. string.gsub(module, ' ', '_')<br />
editintro = '&editintro=Template:WPX_editintro/' .. string.gsub(module, ' ', '_')<br />
else<br />
preload = '' -- no preload<br />
editintro = '&editintro=Template:WPX_editintro/Generic' -- generic editintro<br />
end<br />
-- Create notice<br />
create_url = '//en.wikipedia.org/wiki/Wikipedia:' .. string.gsub(moduletitle, ' ', '_') .. '?action=edit' .. preload .. editintro<br />
create_button = frame:expandTemplate{ title = 'Template:Clickable button 2', args = {'Create Module', url = create_url, class = 'mw-ui-progressive' } }<br />
body = body .. '[[Wikipedia:' .. moduletitle .. ']] does not exist. ' .. create_button<br />
end<br />
end<br />
end<br />
<br />
end<br />
<br />
toc_args['perrow'] = counter -- sets length of image array to the number of icons<br />
toc = "<div style='margin-bottom:4em;'>" .. frame:expandTemplate{ title='Image_array', args = toc_args } .. "</div><div style='clear:both;'></div>"<br />
<br />
-- Adding header<br />
header = "__NOTOC__\n<div style='display: flex; display: -webkit-flex; flex-flow: row wrap; -webkit-flex-flow: row wrap;'>" -- top container<br />
if displaymode == "writing" then<br />
header = header .. "<div style='flex: 1 0; -webkit-flex: 1 0; border-top: solid .7em " .. color .. ";'>" -- intro<br />
else<br />
header = header .. "<div style='flex: 1 0; -webkit-flex: 1 0; padding-bottom: 3em; border-top: solid .7em " .. color .. ";'>" -- intro<br />
end<br />
-- Adding project icon<br />
header = header .. "<div class='nomobile' style='float:left; margin-top: 1em; margin-right: 2em; margin-bottom: 1em; text-align: center;'>"<br />
header = header .. image .. "</div>"<br />
-- Adding project title<br />
header = header .. "<div style='font-size: 120%; padding: 0;'>" -- header<br />
header = header .. "<h1 style='font-weight: bold; border-bottom: none; margin:0; padding-top:0.5em;'>" .. title .. "</h1></div>"<br />
if displaymode == "writing" then<br />
header = header .. toc<br />
end<br />
-- Adding intro blurb<br />
header = header .. "<div style='margin-top: 1em; font-size: 110%;'>"<br />
header = header .. intro .. "</div>"<br />
-- Adding announcement section<br />
if mw.title.makeTitle('Wikipedia', title .. "/" .. "Announcements").exists == true then<br />
header = header .. frame:expandTemplate{ title = 'Wikipedia:' .. title .. "/" .. "Announcements", args = { } }<br />
end<br />
header = header .. "</div>"<br />
-- Adding member box<br />
header = header .. "<div style='flex: 0 1; -webkit-flex: 0 20em;'>"<br />
header = header .. frame:expandTemplate{ title = 'WPX member box', args = { } }<br />
header = header .. "</div>"<br />
-- Closing off header<br />
header = header .. "</div></div>"<br />
<br />
-- Assembling parts<br />
if displaymode == "womeninred" then<br />
contents = header .. body<br />
else<br />
contents = header .. toc .. body<br />
end<br />
return contents<br />
end<br />
<br />
return p</div>
Breadyornot