https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3AKey Module:Key - Revision history 2025-05-31T01:40:14Z Revision history for this page on the wiki MediaWiki 1.45.0-wmf.3 https://en.wikipedia.org/w/index.php?title=Module:Key&diff=1071502366&oldid=prev The wub: convert to use TemplateStyles - Template:Key press/styles.css 2022-02-13T00:06:54Z <p>convert to use TemplateStyles - <a href="/wiki/Template:Key_press/styles.css" title="Template:Key press/styles.css">Template:Key press/styles.css</a></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:06, 13 February 2022</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 1:</td> <td colspan="2" class="diff-lineno">Line 1:</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>-- This module implements {{key press}}.</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>-- This module implements {{key press}}.</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;"><br /></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;"><br /></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 kbdPrefix =</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 kbdPrefix =<ins style="font-weight: bold; text-decoration: none;"> '&lt;kbd class="keyboard-key nowrap"&gt;'</ins></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> '&lt;kbd class=' ..</div></td> <td colspan="2" class="diff-empty diff-side-added"></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> '"keyboard-key nowrap" ' ..</div></td> <td colspan="2" class="diff-empty diff-side-added"></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> 'style="border: 1px solid #aaa; ' ..</div></td> <td colspan="2" class="diff-empty diff-side-added"></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> -- The following is an expansion of {{border-radius|0.2em}}</div></td> <td colspan="2" class="diff-empty diff-side-added"></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> 'border-radius: 0.2em; ' ..</div></td> <td colspan="2" class="diff-empty diff-side-added"></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> -- The following is an expansion of {{box-shadow|0.1em|0.1em|0.2em|rgba(0,0,0,0.1)}}</div></td> <td colspan="2" class="diff-empty diff-side-added"></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> 'box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); ' ..</div></td> <td colspan="2" class="diff-empty diff-side-added"></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> 'background-color: #f9f9f9; ' ..</div></td> <td colspan="2" class="diff-empty diff-side-added"></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> -- The following is an expansion of {{linear-gradient|top|#eee, #f9f9f9, #eee}}</div></td> <td colspan="2" class="diff-empty diff-side-added"></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> 'background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee); ' ..</div></td> <td colspan="2" class="diff-empty diff-side-added"></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> -- Force black color to fix [[phab:T200258]]</div></td> <td colspan="2" class="diff-empty diff-side-added"></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> 'color: #000; ' ..</div></td> <td colspan="2" class="diff-empty diff-side-added"></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> 'padding: 0.1em 0.3em; ' ..</div></td> <td colspan="2" class="diff-empty diff-side-added"></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> 'font-family: inherit; ' ..</div></td> <td colspan="2" class="diff-empty diff-side-added"></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> 'font-size: 0.85em;"&gt;'</div></td> <td colspan="2" class="diff-empty diff-side-added"></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;"><br /></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;"><br /></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 kbdSuffix = '&lt;/kbd&gt;'</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 kbdSuffix = '&lt;/kbd&gt;'</div></td> </tr> <tr> <td colspan="2" class="diff-lineno">Line 182:</td> <td colspan="2" class="diff-lineno">Line 167:</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> result:add(kbdPrefix .. text .. kbdSuffix)</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> result:add(kbdPrefix .. text .. kbdSuffix)</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" 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> return <del style="font-weight: bold; text-decoration: none;">result:join</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> return <ins style="font-weight: bold; text-decoration: none;">mw.getCurrentFrame</ins>()<ins style="font-weight: bold; text-decoration: none;">:extensionTag{</ins></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> name = 'templatestyles', args = { src = 'Template:Key press/styles.css'} </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> } .. result:join()</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;"><br /></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;"><br /></td> </tr> </table> The wub https://en.wikipedia.org/w/index.php?title=Module:Key&diff=997617859&oldid=prev WOSlinker: remove moz, o and webkit as standard now well supported 2021-01-01T12:13:44Z <p>remove moz, o and webkit as standard now well supported</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 12:13, 1 January 2021</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 6:</td> <td colspan="2" class="diff-lineno">Line 6:</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> 'style="border: 1px solid #aaa; ' ..</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> 'style="border: 1px solid #aaa; ' ..</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> -- The following is an expansion of {{border-radius|0.2em}}</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> -- The following is an expansion of {{border-radius|0.2em}}</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> '<del style="font-weight: bold; text-decoration: none;">-moz-border-radius: 0.2em; -webkit-border-radius: 0.2em; </del>border-radius: 0.2em; ' ..</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> 'border-radius: 0.2em; ' ..</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> -- The following is an expansion of {{box-shadow|0.1em|0.1em|0.2em|rgba(0,0,0,0.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> -- The following is an expansion of {{box-shadow|0.1em|0.1em|0.2em|rgba(0,0,0,0.1)}}</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> '<del style="font-weight: bold; text-decoration: none;">-moz-box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); -webkit-box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); </del>box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); ' ..</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> 'box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.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> 'background-color: #f9f9f9; ' ..</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> 'background-color: #f9f9f9; ' ..</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> -- The following is an expansion of {{linear-gradient|top|#eee, #f9f9f9, #eee}}</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> -- The following is an expansion of {{linear-gradient|top|#eee, #f9f9f9, #eee}}</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> '<del style="font-weight: bold; text-decoration: none;">background-image: -moz-linear-gradient(top, #eee, #f9f9f9, #eee); background-image: -o-linear-gradient(top, #eee, #f9f9f9, #eee); background-image: -webkit-linear-gradient(top, #eee, #f9f9f9, #eee); </del>background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee); ' ..</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> 'background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee); ' ..</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> -- Force black color to fix [[phab:T200258]]</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> -- Force black color to fix [[phab:T200258]]</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> 'color: #000; ' ..</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> 'color: #000; ' ..</div></td> </tr> </table> WOSlinker https://en.wikipedia.org/w/index.php?title=Module:Key&diff=853767235&oldid=prev The wub: Force black color to fix phab:T200258 2018-08-06T21:40:46Z <p>Force black color to fix <a href="https://phabricator.wikimedia.org/T200258" class="extiw" title="phab:T200258">phab:T200258</a></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 21:40, 6 August 2018</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 12:</td> <td colspan="2" class="diff-lineno">Line 12:</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> -- The following is an expansion of {{linear-gradient|top|#eee, #f9f9f9, #eee}}</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> -- The following is an expansion of {{linear-gradient|top|#eee, #f9f9f9, #eee}}</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> 'background-image: -moz-linear-gradient(top, #eee, #f9f9f9, #eee); background-image: -o-linear-gradient(top, #eee, #f9f9f9, #eee); background-image: -webkit-linear-gradient(top, #eee, #f9f9f9, #eee); background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee); ' ..</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> 'background-image: -moz-linear-gradient(top, #eee, #f9f9f9, #eee); background-image: -o-linear-gradient(top, #eee, #f9f9f9, #eee); background-image: -webkit-linear-gradient(top, #eee, #f9f9f9, #eee); background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee); ' ..</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> -- Force black color to fix [[phab:T200258]]</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> 'color: #000; ' ..</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> 'padding: 0.1em 0.3em; ' ..</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> 'padding: 0.1em 0.3em; ' ..</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> 'font-family: inherit; ' ..</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> 'font-family: inherit; ' ..</div></td> </tr> </table> The wub https://en.wikipedia.org/w/index.php?title=Module:Key&diff=772153021&oldid=prev Wbm1058: Protected "Module:Key": Highly visible template ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) 2017-03-25T16:46:55Z <p>Protected &quot;<a href="/wiki/Module:Key" title="Module:Key">Module:Key</a>&quot;: <a href="/wiki/Wikipedia:High-risk_templates" title="Wikipedia:High-risk templates">Highly visible template</a> ([Edit=Require template editor access] (indefinite) [Move=Require template editor 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 16:46, 25 March 2017</td> </tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div> </td></tr></table> Wbm1058 https://en.wikipedia.org/w/index.php?title=Module:Key&diff=770047083&oldid=prev Johnuniq: implement Template:Key press to reduce post‐expand include size using {{#invoke:key|press|...}} 2017-03-13T03:33:59Z <p>implement <a href="/wiki/Template:Key_press" title="Template:Key press">Template:Key press</a> to reduce post‐expand include size using {{#invoke:key|press|...}}</p> <p><b>New page</b></p><div>-- This module implements {{key press}}.<br /> <br /> local kbdPrefix =<br /> &#039;&lt;kbd class=&#039; ..<br /> &#039;&quot;keyboard-key nowrap&quot; &#039; ..<br /> &#039;style=&quot;border: 1px solid #aaa; &#039; ..<br /> -- The following is an expansion of {{border-radius|0.2em}}<br /> &#039;-moz-border-radius: 0.2em; -webkit-border-radius: 0.2em; border-radius: 0.2em; &#039; ..<br /> -- The following is an expansion of {{box-shadow|0.1em|0.1em|0.2em|rgba(0,0,0,0.1)}}<br /> &#039;-moz-box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); -webkit-box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); &#039; ..<br /> &#039;background-color: #f9f9f9; &#039; ..<br /> -- The following is an expansion of {{linear-gradient|top|#eee, #f9f9f9, #eee}}<br /> &#039;background-image: -moz-linear-gradient(top, #eee, #f9f9f9, #eee); background-image: -o-linear-gradient(top, #eee, #f9f9f9, #eee); background-image: -webkit-linear-gradient(top, #eee, #f9f9f9, #eee); background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee); &#039; ..<br /> &#039;padding: 0.1em 0.3em; &#039; ..<br /> &#039;font-family: inherit; &#039; ..<br /> &#039;font-size: 0.85em;&quot;&gt;&#039;<br /> <br /> local kbdSuffix = &#039;&lt;/kbd&gt;&#039;<br /> <br /> local keyText = {<br /> [&#039;caps lock&#039;] = &#039;⇪ Caps Lock&#039;,<br /> [&#039;[[caps lock]]&#039;] = &#039;⇪ [[Caps Lock]]&#039;,<br /> [&#039;shift&#039;] = &#039;⇧ Shift&#039;,<br /> [&#039;[[shift key|shift]]&#039;] = &#039;⇧ [[Shift key|Shift]]&#039;,<br /> [&#039;enter&#039;] = &#039;↵ Enter&#039;,<br /> [&#039;[[enter key|enter]]&#039;] = &#039;↵ [[Enter key|Enter]]&#039;,<br /> [&#039;cmd&#039;] = &#039;⌘ Cmd&#039;,<br /> [&#039;[[command key|cmd]]&#039;] = &#039;⌘ [[Command key|Cmd]]&#039;,<br /> [&#039;command&#039;] = &#039;⌘ Command&#039;,<br /> [&#039;[[command key|command]]&#039;] = &#039;⌘ [[Command key|Command]]&#039;,<br /> [&#039;opt&#039;] = &#039;⌥ Opt&#039;,<br /> [&#039;[[option key|opt]]&#039;] = &#039;⌥ [[Option key|Opt]]&#039;,<br /> [&#039;option&#039;] = &#039;⌥ Option&#039;,<br /> [&#039;[[option key|option]]&#039;] = &#039;⌥ [[Option key|Option]]&#039;,<br /> [&#039;tab&#039;] = &#039;Tab ↹&#039;,<br /> [&#039;[[tab key|tab]]&#039;] = &#039;[[Tab key|Tab]] ↹&#039;,<br /> [&#039;backspace&#039;] = &#039;← Backspace&#039;,<br /> [&#039;[[backspace]]&#039;] = &#039;← [[Backspace]]&#039;,<br /> [&#039;win&#039;] = &#039;⊞ Win&#039;,<br /> [&#039;[[windows key|win]]&#039;] = &#039;⊞ [[Windows key|Win]]&#039;,<br /> [&#039;menu&#039;] = &#039;≣ Menu&#039;,<br /> [&#039;[[menu key|menu]]&#039;] = &#039;≣ [[Menu key|Menu]]&#039;,<br /> [&#039;up&#039;] = &#039;↑&#039;,<br /> [&#039;[[arrow keys|up]]&#039;] = &#039;[[Arrow keys|↑]]&#039;,<br /> [&#039;down&#039;] = &#039;↓&#039;,<br /> [&#039;[[arrow keys|down]]&#039;] = &#039;[[Arrow keys|↓]]&#039;,<br /> [&#039;left&#039;] = &#039;←&#039;,<br /> [&#039;[[arrow keys|left]]&#039;] = &#039;[[Arrow keys|←]]&#039;,<br /> [&#039;right&#039;] = &#039;→&#039;,<br /> [&#039;[[arrow keys|right]]&#039;] = &#039;[[Arrow keys|→]]&#039;,<br /> [&#039;asterisk&#039;] = &#039;&amp;#42;&#039;,<br /> [&#039;hash&#039;] = &#039;&amp;#35;&#039;,<br /> [&#039;[[#]]&#039;] = &#039;[[Number sign|#]]&#039;,<br /> [&#039;colon&#039;] = &#039;&amp;#58;&#039;,<br /> [&#039;[[:]]&#039;] = &#039;[[Colon (punctuation)|:]]&#039;,<br /> [&#039;pipe&#039;] = &#039;&amp;#124;&#039;,<br /> [&#039;[[|]]&#039;] = &#039;[[Pipe symbol|&amp;#124;]]&#039;,<br /> [&#039;semicolon&#039;] = &#039;&amp;#59;&#039;,<br /> [&#039;[[;]]&#039;] = &#039;[[Semi-colon|&amp;#59;]]&#039;,<br /> [&#039;equals&#039;] = &#039;&amp;#61;&#039;,<br /> <br /> -- Left &amp; right analog sticks.<br /> [&#039;l up&#039;] = &#039;L↑&#039;,<br /> [&#039;l down&#039;] = &#039;L↓&#039;,<br /> [&#039;l left&#039;] = &#039;L←&#039;,<br /> [&#039;l right&#039;] = &#039;L→&#039;,<br /> [&#039;l ne&#039;] = &#039;L↗&#039;,<br /> [&#039;l se&#039;] = &#039;L↘&#039;,<br /> [&#039;l nw&#039;] = &#039;L↖&#039;,<br /> [&#039;l sw&#039;] = &#039;L↙&#039;,<br /> <br /> [&#039;r up&#039;] = &#039;R↑&#039;,<br /> [&#039;r down&#039;] = &#039;R↓&#039;,<br /> [&#039;r left&#039;] = &#039;R←&#039;,<br /> [&#039;r right&#039;] = &#039;R→&#039;,<br /> [&#039;r ne&#039;] = &#039;R↗&#039;,<br /> [&#039;r se&#039;] = &#039;R↘&#039;,<br /> [&#039;r nw&#039;] = &#039;R↖&#039;,<br /> [&#039;r sw&#039;] = &#039;R↙&#039;,<br /> <br /> -- PlayStation.<br /> [&#039;ex&#039;] = &#039;×&#039;,<br /> [&#039;circle&#039;] = &#039;○&#039;,<br /> [&#039;square&#039;] = &#039;□&#039;,<br /> [&#039;triangle&#039;] = &#039;△&#039;,<br /> <br /> -- Nintendo 64 and GameCube.<br /> [&#039;c up&#039;] = &#039;C↑&#039;,<br /> [&#039;c down&#039;] = &#039;C↓&#039;,<br /> [&#039;c left&#039;] = &#039;C←&#039;,<br /> [&#039;c right&#039;] = &#039;C→&#039;,<br /> [&#039;c ne&#039;] = &#039;C↗&#039;,<br /> [&#039;c se&#039;] = &#039;C↘&#039;,<br /> [&#039;c nw&#039;] = &#039;C↖&#039;,<br /> [&#039;c sw&#039;] = &#039;C↙&#039;,<br /> }<br /> <br /> local keyAlias = {<br /> -- [&#039;alternate name for key (alias)&#039;] = &#039;name for key used in key table&#039;<br /> [&#039;[[cmd key|cmd]]&#039;] = &#039;[[command key|cmd]]&#039;,<br /> [&#039;[[cmd key|command]]&#039;] = &#039;[[command key|command]]&#039;,<br /> [&#039;[[opt key|opt]]&#039;] = &#039;[[option key|opt]]&#039;,<br /> [&#039;[[option key]]&#039;] = &#039;[[option key|option]]&#039;,<br /> [&#039;[[opt key|option]]&#039;] = &#039;[[option key|option]]&#039;,<br /> [&#039;[[win key|win]]&#039;] = &#039;[[windows key|win]]&#039;,<br /> [&#039;*&#039;] = &#039;asterisk&#039;,<br /> [&#039;#&#039;] = &#039;hash&#039;,<br /> [&#039;:&#039;] = &#039;colon&#039;,<br /> [&#039;;&#039;] = &#039;semicolon&#039;,<br /> [&#039;l-up&#039;] = &#039;l up&#039;,<br /> [&#039;l-down&#039;] = &#039;l down&#039;,<br /> [&#039;l-left&#039;] = &#039;l left&#039;,<br /> [&#039;l-right&#039;] = &#039;l right&#039;,<br /> [&#039;l-ne&#039;] = &#039;l ne&#039;,<br /> [&#039;l-se&#039;] = &#039;l se&#039;,<br /> [&#039;l-nw&#039;] = &#039;l nw&#039;,<br /> [&#039;l-sw&#039;] = &#039;l sw&#039;,<br /> [&#039;r-up&#039;] = &#039;r up&#039;,<br /> [&#039;r-down&#039;] = &#039;r down&#039;,<br /> [&#039;r-left&#039;] = &#039;r left&#039;,<br /> [&#039;r-right&#039;] = &#039;r right&#039;,<br /> [&#039;r-ne&#039;] = &#039;r ne&#039;,<br /> [&#039;r-se&#039;] = &#039;r se&#039;,<br /> [&#039;r-nw&#039;] = &#039;r nw&#039;,<br /> [&#039;r-sw&#039;] = &#039;r sw&#039;,<br /> [&#039;ps x&#039;] = &#039;ex&#039;,<br /> [&#039;ps c&#039;] = &#039;circle&#039;,<br /> [&#039;ps s&#039;] = &#039;square&#039;,<br /> [&#039;ps t&#039;] = &#039;triangle&#039;,<br /> [&#039;c-up&#039;] = &#039;c up&#039;,<br /> [&#039;c-down&#039;] = &#039;c down&#039;,<br /> [&#039;c-left&#039;] = &#039;c left&#039;,<br /> [&#039;c-right&#039;] = &#039;c right&#039;,<br /> [&#039;c-ne&#039;] = &#039;c ne&#039;,<br /> [&#039;c-se&#039;] = &#039;c se&#039;,<br /> [&#039;c-nw&#039;] = &#039;c nw&#039;,<br /> [&#039;c-sw&#039;] = &#039;c sw&#039;,<br /> }<br /> <br /> local Collection = {}<br /> Collection.__index = Collection<br /> do<br /> function Collection:add(item)<br /> if item ~= nil then<br /> self.n = self.n + 1<br /> self[self.n] = item<br /> end<br /> end<br /> function Collection:join(sep)<br /> return table.concat(self, sep)<br /> end<br /> function Collection:sort(comp)<br /> table.sort(self, comp)<br /> end<br /> function Collection.new()<br /> return setmetatable({n = 0}, Collection)<br /> end<br /> end<br /> <br /> local function keyPress(args)<br /> local chainNames = {<br /> &#039;chain first&#039;,<br /> &#039;chain second&#039;,<br /> &#039;chain third&#039;,<br /> &#039;chain fourth&#039;,<br /> &#039;chain fifth&#039;,<br /> &#039;chain sixth&#039;,<br /> &#039;chain seventh&#039;,<br /> &#039;chain eighth&#039;,<br /> &#039;chain ninth&#039;,<br /> }<br /> local result = Collection.new()<br /> local chainDefault = args.chain or &#039;+&#039;<br /> for i, id in ipairs(args) do<br /> if i &gt; 1 then<br /> result:add(args[chainNames[i - 1]] or chainDefault)<br /> end<br /> local lc = id:lower()<br /> local text = keyText[lc] or keyText[keyAlias[lc]] or id<br /> result:add(kbdPrefix .. text .. kbdSuffix)<br /> end<br /> return result:join()<br /> end<br /> <br /> local function keypress(frame)<br /> -- Called by &quot;{{key press|...}}&quot;.<br /> -- Using the template doubles the post‐expand include size.<br /> return keyPress(frame:getParent().args)<br /> end<br /> <br /> local function press(frame)<br /> -- Called by &quot;{{#invoke:key|press|...}}&quot;.<br /> return keyPress(frame.args)<br /> end<br /> <br /> return {<br /> keypress = keypress,<br /> press = press,<br /> }</div> Johnuniq