https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3AFlexbox Module:Flexbox - Revision history 2025-06-01T09:21:55Z Revision history for this page on the wiki MediaWiki 1.45.0-wmf.3 https://en.wikipedia.org/w/index.php?title=Module:Flexbox&diff=1276107869&oldid=prev SilverLocust: fix increment 2025-02-16T22:41:34Z <p>fix increment</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:41, 16 February 2025</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 11:</td> <td colspan="2" class="diff-lineno">Line 11:</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 n = 1</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 n = 1</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> while args[n] 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> while args[n] 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 .. '&lt;div style="flex:1 1 0; min-width:'..minwidth..'; max-width:'..maxwidth..'; padding:'..padding..';"&gt;'..args[<del style="font-weight: bold; text-decoration: none;">1</del>]..'&lt;/div&gt;'</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 .. '&lt;div style="flex:1 1 0; min-width:'..minwidth..'; max-width:'..maxwidth..'; padding:'..padding..';"&gt;'..args[<ins style="font-weight: bold; text-decoration: none;">n</ins>]..'&lt;/div&gt;'</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> n = n + 1</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> n = n + 1</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> SilverLocust https://en.wikipedia.org/w/index.php?title=Module:Flexbox&diff=1276107498&oldid=prev SilverLocust: Convert Template:Flexbox to Lua 2025-02-16T22:38:30Z <p>Convert <a href="/wiki/Template:Flexbox" title="Template:Flexbox">Template:Flexbox</a> to Lua</p> <p><b>New page</b></p><div>local getArgs = require(&#039;Module:Arguments&#039;).getArgs<br /> local p = {}<br /> <br /> function p.main(frame)<br /> local args = getArgs(frame)<br /> local style = args[&quot;style&quot;] or &quot;&quot;<br /> local minwidth = args[&quot;min-width&quot;] or &quot;&quot;<br /> local maxwidth = args[&quot;max-width&quot;] or &quot;&quot;<br /> local padding = args[&quot;padding&quot;] or &quot;&quot;<br /> local ret = &#039;&lt;div style=&quot;display:flex; flex-wrap:wrap; &#039;..style..&#039;&quot;&gt;&#039;<br /> local n = 1<br /> while args[n] do<br /> ret = ret .. &#039;&lt;div style=&quot;flex:1 1 0; min-width:&#039;..minwidth..&#039;; max-width:&#039;..maxwidth..&#039;; padding:&#039;..padding..&#039;;&quot;&gt;&#039;..args[1]..&#039;&lt;/div&gt;&#039;<br /> n = n + 1<br /> end<br /> ret = ret .. &#039;&lt;/div&gt;&#039;<br /> return ret<br /> end<br /> <br /> return p</div> SilverLocust