https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3AAnchor
Module:Anchor - Revision history
2025-05-28T20:34:42Z
Revision history for this page on the wiki
MediaWiki 1.45.0-wmf.2
https://en.wikipedia.org/w/index.php?title=Module:Anchor&diff=980153746&oldid=prev
Pppery: Add class per edit request
2020-09-24T22:32:51Z
<p>Add class per edit request</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 22:32, 24 September 2020</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 19:</td>
<td colspan="2" class="diff-lineno">Line 19:</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> local ret = {}</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> local ret = {}</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> for _, anchor in ipairs(anchors) do</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> for _, anchor in ipairs(anchors) do</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> ret[#ret + 1] = '<span id="' .. anchor .. '"></span>'</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> ret[#ret + 1] = '<span<ins style="font-weight: bold; text-decoration: none;"> class="anchor"</ins> id="' .. anchor .. '"></span>'</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> end</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> end</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> return table.concat(ret)</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> return table.concat(ret)</div></td>
</tr>
</table>
Pppery
https://en.wikipedia.org/w/index.php?title=Module:Anchor&diff=586910342&oldid=prev
Mr. Stradivarius: Protected Module:Anchor: High-risk Lua module: 20,000 transclusions ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))
2013-12-20T06:14:24Z
<p>Protected Module:Anchor: <a href="/wiki/Wikipedia:Lua/Modules" title="Wikipedia:Lua/Modules">High-risk Lua module</a>: 20,000 transclusions ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</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 06:14, 20 December 2013</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
Mr. Stradivarius
https://en.wikipedia.org/w/index.php?title=Module:Anchor&diff=586194472&oldid=prev
Mr. Stradivarius: implement Template:Anchor
2013-12-15T15:03:29Z
<p>implement <a href="/wiki/Template:Anchor" title="Template:Anchor">Template:Anchor</a></p>
<p><b>New page</b></p><div>-- This module implements {{anchor}}.<br />
<br />
local getArgs = require('Module:Arguments').getArgs<br />
local tableTools = require('Module:TableTools')<br />
<br />
local p = {}<br />
<br />
function p.main(frame)<br />
-- Get the positional arguments from #invoke, remove any nil values,<br />
-- and pass them to p._main.<br />
local args = getArgs(frame)<br />
local argArray = tableTools.compressSparseArray(args)<br />
return p._main(unpack(argArray))<br />
end<br />
<br />
function p._main(...)<br />
-- Generate the list of anchors.<br />
local anchors = {...}<br />
local ret = {}<br />
for _, anchor in ipairs(anchors) do<br />
ret[#ret + 1] = '<span id="' .. anchor .. '"></span>'<br />
end<br />
return table.concat(ret)<br />
end<br />
<br />
return p</div>
Mr. Stradivarius