https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3AMain_if_exists Module:Main if exists - Revision history 2025-06-14T02:56:41Z Revision history for this page on the wiki MediaWiki 1.45.0-wmf.5 https://en.wikipedia.org/w/index.php?title=Module:Main_if_exists&diff=1233363963&oldid=prev MusikBot II: Protected "Module:Main if exists": High-risk template or module: 251 transclusions (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite)) 2024-07-08T18:00:31Z <p>Protected &quot;<a href="/wiki/Module:Main_if_exists" title="Module:Main if exists">Module:Main if exists</a>&quot;: <a href="/wiki/Wikipedia:High-risk_templates" title="Wikipedia:High-risk templates">High-risk template or module</a>: 251 transclusions (<a href="/wiki/User:MusikBot_II/TemplateProtector" title="User:MusikBot II/TemplateProtector">more info</a>) ([Edit=Require autoconfirmed or confirmed access] (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 18:00, 8 July 2024</td> </tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div> </td></tr></table> MusikBot II https://en.wikipedia.org/w/index.php?title=Module:Main_if_exists&diff=1072452455&oldid=prev Lallint at 20:41, 17 February 2022 2022-02-17T20:41:52Z <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 20:41, 17 February 2022</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 33:</td> <td colspan="2" class="diff-lineno">Line 33:</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> local mLabelledList = require('Module:Labelled list hatnote')</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 mLabelledList = require('Module:Labelled list hatnote')</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> local pages = mLabelledList._labelledList(rawpages, "<del style="font-weight: bold; text-decoration: none;">See also</del>", "")</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> local pages = mLabelledList._labelledList(rawpages, "<ins style="font-weight: bold; text-decoration: none;">Main</ins>", "")</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 pages</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 pages</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> </table> Lallint https://en.wikipedia.org/w/index.php?title=Module:Main_if_exists&diff=1072452339&oldid=prev Lallint: ←Created page with '-- v1.0 local p = {} local yesno = require("Module:yesno") function p.main(frame) local rawpages = {} local nvalid = 0 local namespace = frame.args.ns for i, v in ipairs(frame:getParent().args) do if (v ~= nil) then local thisArg = mw.text.trim(v) if (thisArg ~= "") then local title = mw.title.new(thisArg, namespace) if title ~= nil and title.exists then table.insert(rawpages, title.fullText) nvalid = nvalid + 1 end...' 2022-02-17T20:41:03Z <p><a href="/wiki/Wikipedia:AES" class="mw-redirect" title="Wikipedia:AES">←</a>Created page with &#039;--<a href="/w/index.php?title=V1.0&amp;action=edit&amp;redlink=1" class="new" title="V1.0 (page does not exist)">v1.0 </a> local p = {} local yesno = require(&quot;Module:yesno&quot;) function p.main(frame) local rawpages = {} local nvalid = 0 local namespace = frame.args.ns for i, v in ipairs(frame:getParent().args) do if (v ~= nil) then local thisArg = mw.text.trim(v) if (thisArg ~= &quot;&quot;) then local title = mw.title.new(thisArg, namespace) if title ~= nil and title.exists then table.insert(rawpages, title.fullText) nvalid = nvalid + 1 end...&#039;</p> <p><b>New page</b></p><div>--[[ v1.0<br /> ]]<br /> local p = {}<br /> local yesno = require(&quot;Module:yesno&quot;)<br /> <br /> function p.main(frame)<br /> local rawpages = {}<br /> local nvalid = 0<br /> local namespace = frame.args.ns<br /> for i, v in ipairs(frame:getParent().args) do<br /> if (v ~= nil) then<br /> local thisArg = mw.text.trim(v)<br /> if (thisArg ~= &quot;&quot;) then<br /> local title = mw.title.new(thisArg, namespace)<br /> if title ~= nil and title.exists then<br /> table.insert(rawpages, title.fullText)<br /> nvalid = nvalid + 1<br /> end<br /> end<br /> end<br /> end<br /> if (nvalid == 0) then<br /> if yesno(frame.args.warning) then<br /> if namespace == nil then<br /> namespace = &quot;page&quot;<br /> elseif namespace:sub(-1) == &quot;y&quot; then<br /> namespace = namespace:sub(0, -2) .. &quot;ie&quot;<br /> end<br /> mw.addWarning(string.format(&quot;&#039;&#039;&#039;[[%s]] — no output, because none of the %ss currently exist.&#039;&#039;&#039;&quot;,<br /> frame:getParent():getTitle(),namespace))<br /> end<br /> return &quot;&quot;<br /> end<br /> local mLabelledList = require(&#039;Module:Labelled list hatnote&#039;)<br /> local pages = mLabelledList._labelledList(rawpages, &quot;See also&quot;, &quot;&quot;)<br /> return pages<br /> end<br /> <br /> return p</div> Lallint