https://projectmailer.net/index.php?title=Module:Icon&feed=atom&action=history
Module:Icon - Revision history
2024-03-29T10:06:57Z
Revision history for this page on the wiki
MediaWiki 1.39.0
https://projectmailer.net/index.php?title=Module:Icon&diff=473&oldid=prev
Grlucas: 1 revision imported
2018-11-26T22:46:17Z
<p>1 revision imported</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;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:46, 26 November 2018</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
Grlucas
https://projectmailer.net/index.php?title=Module:Icon&diff=472&oldid=prev
en>Mr. Stradivarius: Protected Module:Icon: High-risk Lua module ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))
2015-01-23T10:26:03Z
<p>Protected Module:Icon: <a href="/index.php?title=WP:High-risk_templates&action=edit&redlink=1" class="new" title="WP:High-risk templates (page does not exist)">High-risk Lua module</a> ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</p>
<p><b>New page</b></p><div>-- This module implements [[Template:Icon]].<br />
<br />
local data = mw.loadData('Module:Icon/data')<br />
<br />
local p = {}<br />
<br />
function p._main(args)<br />
local code = args.class or args[1]<br />
local iconData<br />
if code then<br />
code = code:match('^%s*(.-)%s*$'):lower() -- trim whitespace and put in lower case<br />
iconData = data[code]<br />
end<br />
if not iconData then<br />
iconData = data._DEFAULT<br />
end<br />
return string.format(<br />
'[[File:%s%s|%s|link=]]',<br />
iconData.image,<br />
iconData.tooltip and '|' .. iconData.tooltip or '',<br />
args.size or '16x16px'<br />
)<br />
end<br />
<br />
function p.main(frame)<br />
local args = {}<br />
for k, v in pairs(frame:getParent().args) do<br />
args[k] = v<br />
end<br />
return p._main(args)<br />
end<br />
<br />
return p</div>
en>Mr. Stradivarius