https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ATemplate_link_with_magic%2Fsandbox Module:Template link with magic/sandbox - Revision history 2025-06-07T05:43:46Z Revision history for this page on the wiki MediaWiki 1.45.0-wmf.4 https://en.wikipedia.org/w/index.php?title=Module:Template_link_with_magic/sandbox&diff=1226760074&oldid=prev HouseBlaster: HouseBlaster moved page Module:Tlm/sandbox to Module:Template link with magic/sandbox: match with Template:template link with magic 2024-06-01T17:13:28Z <p>HouseBlaster moved page <a href="/wiki/Module:Tlm/sandbox" class="mw-redirect" title="Module:Tlm/sandbox">Module:Tlm/sandbox</a> to <a href="/wiki/Module:Template_link_with_magic/sandbox" title="Module:Template link with magic/sandbox">Module:Template link with magic/sandbox</a>: match with <a href="/wiki/Template:Template_link_with_magic" title="Template:Template link with magic">Template:template link with magic</a></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 17:13, 1 June 2024</td> </tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div> </td></tr></table> HouseBlaster https://en.wikipedia.org/w/index.php?title=Module:Template_link_with_magic/sandbox&diff=1063017882&oldid=prev 50.53.12.84: consolidate wikidata property hooks 2021-12-31T19:49:39Z <p>consolidate wikidata property hooks</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 19:49, 31 December 2021</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 237:</td> <td colspan="2" class="diff-lineno">Line 237:</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 page</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 page</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 colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker"><a class="mw-diff-movedpara-right" title="Paragraph was moved. Click to jump to old location." href="#movedpara_6_4_lhs">&#x26AB;</a></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><a name="movedpara_1_0_rhs"></a>end</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;"><br /></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>local function hook_wdprop(name)</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker"><a class="mw-diff-movedpara-right" title="Paragraph was moved. Click to jump to old location." href="#movedpara_5_0_lhs">&#x26AB;</a></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><a name="movedpara_1_3_rhs"></a><ins style="font-weight: bold; text-decoration: none;"> </ins>if mw.wikibase.resolvePropertyId(name) then</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker"><a class="mw-diff-movedpara-right" title="Paragraph was moved. Click to jump to old location." href="#movedpara_6_0_lhs">&#x26AB;</a></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><a name="movedpara_1_4_rhs"></a> return ("[[:d:Special:EntityPage/%s|%s]]"):format(mw.wikibase.resolvePropertyId(name), name)</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker"><a class="mw-diff-movedpara-right" title="Paragraph was moved. Click to jump to old location." href="#movedpara_6_1_lhs">&#x26AB;</a></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><a name="movedpara_1_5_rhs"></a><ins style="font-weight: bold; text-decoration: none;"> </ins>else</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker"><a class="mw-diff-movedpara-right" title="Paragraph was moved. Click to jump to old location." href="#movedpara_6_2_lhs">&#x26AB;</a></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><a name="movedpara_1_6_rhs"></a> return name</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker"><a class="mw-diff-movedpara-right" title="Paragraph was moved. Click to jump to old location." href="#movedpara_6_11_lhs">&#x26AB;</a></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><a name="movedpara_1_7_rhs"></a> end<ins style="font-weight: bold; text-decoration: none;"> </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>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> <tr> <td colspan="2" class="diff-lineno">Line 276:</td> <td colspan="2" class="diff-lineno">Line 284:</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> </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> </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> ["#property"] = <del style="font-weight: bold; text-decoration: none;">function (name)</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> ["#property"] = <ins style="font-weight: bold; text-decoration: none;">hook_wdprop;</ins></div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker"><a class="mw-diff-movedpara-right" title="Paragraph was moved. Click to jump to old location." href="#movedpara_6_5_lhs">&#x26AB;</a></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><a name="movedpara_4_0_rhs"></a> ["#statements"] = <ins style="font-weight: bold; text-decoration: none;">hook_wdprop;</ins></div></td> </tr> <tr> <td class="diff-marker"><a class="mw-diff-movedpara-left" title="Paragraph was moved. Click to jump to new location." href="#movedpara_1_3_rhs">&#x26AB;</a></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><a name="movedpara_5_0_lhs"></a><del style="font-weight: bold; text-decoration: none;"> </del>if mw.wikibase.resolvePropertyId(name) then</div></td> <td colspan="2" class="diff-empty diff-side-added"></td> </tr> <tr> <td class="diff-marker"><a class="mw-diff-movedpara-left" title="Paragraph was moved. Click to jump to new location." href="#movedpara_1_4_rhs">&#x26AB;</a></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><a name="movedpara_6_0_lhs"></a><del style="font-weight: bold; text-decoration: none;"> </del> return ("[[:d:Special:EntityPage/%s|%s]]"):format(mw.wikibase.resolvePropertyId(name), name)</div></td> <td colspan="2" class="diff-empty diff-side-added"></td> </tr> <tr> <td class="diff-marker"><a class="mw-diff-movedpara-left" title="Paragraph was moved. Click to jump to new location." href="#movedpara_1_5_rhs">&#x26AB;</a></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><a name="movedpara_6_1_lhs"></a><del style="font-weight: bold; text-decoration: none;"> </del>else</div></td> <td colspan="2" class="diff-empty diff-side-added"></td> </tr> <tr> <td class="diff-marker"><a class="mw-diff-movedpara-left" title="Paragraph was moved. Click to jump to new location." href="#movedpara_1_6_rhs">&#x26AB;</a></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><a name="movedpara_6_2_lhs"></a><del style="font-weight: bold; text-decoration: none;"> </del> return name</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> end </div></td> <td colspan="2" class="diff-empty diff-side-added"></td> </tr> <tr> <td class="diff-marker"><a class="mw-diff-movedpara-left" title="Paragraph was moved. Click to jump to new location." href="#movedpara_1_0_rhs">&#x26AB;</a></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><a name="movedpara_6_4_lhs"></a><del style="font-weight: bold; text-decoration: none;"> </del>end<del style="font-weight: bold; text-decoration: none;">;</del></div></td> <td colspan="2" class="diff-empty diff-side-added"></td> </tr> <tr> <td class="diff-marker"><a class="mw-diff-movedpara-left" title="Paragraph was moved. Click to jump to new location." href="#movedpara_4_0_rhs">&#x26AB;</a></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><a name="movedpara_6_5_lhs"></a> ["#statements"] = <del style="font-weight: bold; text-decoration: none;">function (name)</del></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> if mw.wikibase.resolvePropertyId(name) then</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> return ("[[:d:Special:EntityPage/%s|%s]]"):format(mw.wikibase.resolvePropertyId(name), name)</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> else</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> return name</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> end </div></td> <td colspan="2" class="diff-empty diff-side-added"></td> </tr> <tr> <td class="diff-marker"><a class="mw-diff-movedpara-left" title="Paragraph was moved. Click to jump to new location." href="#movedpara_1_7_rhs">&#x26AB;</a></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><a name="movedpara_6_11_lhs"></a> end<del style="font-weight: bold; text-decoration: none;">;</del></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;"><div>}</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>}</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> 50.53.12.84 https://en.wikipedia.org/w/index.php?title=Module:Template_link_with_magic/sandbox&diff=1063016911&oldid=prev 50.53.12.84: +#statements parser_function_hooks 2021-12-31T19:42:11Z <p>+#statements parser_function_hooks</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 19:42, 31 December 2021</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 277:</td> <td colspan="2" class="diff-lineno">Line 277:</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> </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> </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> ["#property"] = function (name)</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> ["#property"] = function (name)</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> if <del style="font-weight: bold; text-decoration: none;">is_valid_pagename</del>(name) then</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> if <ins style="font-weight: bold; text-decoration: none;">mw.wikibase.resolvePropertyId</ins>(name) then</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 ("[[:d:<del style="font-weight: bold; text-decoration: none;">Property</del>:%s|%s]]"):format(name, name)</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 ("[[:d:<ins style="font-weight: bold; text-decoration: none;">Special</ins>:<ins style="font-weight: bold; text-decoration: none;">EntityPage/</ins>%s|%s]]"):format<ins style="font-weight: bold; text-decoration: none;">(mw.wikibase.resolvePropertyId</ins>(name<ins style="font-weight: bold; text-decoration: none;">)</ins>, name)</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> else</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> return name</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> end </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> end;</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> ["#statements"] = function (name)</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> if mw.wikibase.resolvePropertyId(name) then</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> return ("[[:d:Special:EntityPage/%s|%s]]"):format(mw.wikibase.resolvePropertyId(name), name)</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> else</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> else</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 name</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 name</div></td> </tr> </table> 50.53.12.84 https://en.wikipedia.org/w/index.php?title=Module:Template_link_with_magic/sandbox&diff=1063013776&oldid=prev 50.53.12.84: +#statements from mw:Extension:Wikibase Client 2021-12-31T19:19:37Z <p>+#statements from <a href="https://www.mediawiki.org/wiki/Extension:Wikibase_Client" class="extiw" title="mw:Extension:Wikibase Client">mw:Extension:Wikibase Client</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 19:19, 31 December 2021</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 216:</td> <td colspan="2" class="diff-lineno">Line 216:</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> ["#lsth"] = "mw:Extension:Labeled Section Transclusion#How it works"; -- not available, it seems</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> ["#lsth"] = "mw:Extension:Labeled Section Transclusion#How it works"; -- not available, it seems</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> ["#lstx"] = "mw:Extension:Labeled Section Transclusion#How it works";</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> ["#lstx"] = "mw:Extension:Labeled Section Transclusion#How it works";</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> ["noexternallanglinks"] = "mw:Extension:Wikibase Client<del style="font-weight: bold; text-decoration: none;">#noexternallanglinks</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> ["noexternallanglinks"] = "mw:Extension:Wikibase Client";</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> ["pendingchangelevel"] = "mw:Extension:FlaggedRevs"; -- not documented yet</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> ["pendingchangelevel"] = "mw:Extension:FlaggedRevs"; -- not documented yet</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> ["#property"] = "mw:Extension:Wikibase Client<del style="font-weight: bold; text-decoration: none;">#Data transclusion</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> ["#property"] = "mw:Extension:Wikibase Client";</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> ["#statements"] = "mw:Extension:Wikibase Client";</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> ["#target"] = "mw:Extension:MassMessage"; -- not documented yet</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> ["#target"] = "mw:Extension:MassMessage"; -- not documented yet</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>}</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>}</div></td> </tr> </table> 50.53.12.84 https://en.wikipedia.org/w/index.php?title=Module:Template_link_with_magic/sandbox&diff=1063012177&oldid=prev 50.53.12.84: +numberofwikis from mw:Extension:SiteMatrix 2021-12-31T19:08:24Z <p>+numberofwikis from <a href="https://www.mediawiki.org/wiki/Extension:SiteMatrix" class="extiw" title="mw:Extension:SiteMatrix">mw:Extension:SiteMatrix</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 19:08, 31 December 2021</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 101:</td> <td colspan="2" class="diff-lineno">Line 101:</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> ["noexternallanglinks"] = "mw:Extension:Wikibase Client";</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> ["noexternallanglinks"] = "mw:Extension:Wikibase Client";</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> ["pendingchangelevel"] = "mw:Extension:FlaggedRevs"; -- not documented yet</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> ["pendingchangelevel"] = "mw:Extension:FlaggedRevs"; -- not documented yet</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> ["numberofwikis"] = "mw:Extension:SiteMatrix";</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>}</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>}</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> 50.53.12.84 https://en.wikipedia.org/w/index.php?title=Module:Template_link_with_magic/sandbox&diff=1018348770&oldid=prev Krinkle at 16:10, 17 April 2021 2021-04-17T16:10:27Z <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 16:10, 17 April 2021</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 100:</td> <td colspan="2" class="diff-lineno">Line 100:</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> -- case-insensitive!</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> -- case-insensitive!</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> ["noexternallanglinks"] = "mw:Extension:Wikibase Client";</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> ["noexternallanglinks"] = "mw:Extension:Wikibase Client";</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker"><a class="mw-diff-movedpara-right" title="Paragraph was moved. Click to jump to old location." href="#movedpara_3_0_lhs">&#x26AB;</a></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><a name="movedpara_1_0_rhs"></a> ["<ins style="font-weight: bold; text-decoration: none;">pendingchangelevel</ins>"] = "mw:Extension:FlaggedRevs"; -- not documented yet</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>}</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>}</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 colspan="2" class="diff-lineno">Line 215:</td> <td colspan="2" class="diff-lineno">Line 216:</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> ["#lstx"] = "mw:Extension:Labeled Section Transclusion#How it works";</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> ["#lstx"] = "mw:Extension:Labeled Section Transclusion#How it works";</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> ["noexternallanglinks"] = "mw:Extension:Wikibase Client#noexternallanglinks";</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> ["noexternallanglinks"] = "mw:Extension:Wikibase Client#noexternallanglinks";</div></td> </tr> <tr> <td class="diff-marker"><a class="mw-diff-movedpara-left" title="Paragraph was moved. Click to jump to new location." href="#movedpara_1_0_rhs">&#x26AB;</a></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><a name="movedpara_3_0_lhs"></a> ["<del style="font-weight: bold; text-decoration: none;">#pagesusingpendingchanges</del>"] = "mw:Extension:FlaggedRevs"; -- not documented yet</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;"><div> ["pendingchangelevel"] = "mw:Extension:FlaggedRevs"; -- not documented yet</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> ["pendingchangelevel"] = "mw:Extension:FlaggedRevs"; -- not documented yet</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> ["#property"] = "mw:Extension:Wikibase Client#Data transclusion";</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> ["#property"] = "mw:Extension:Wikibase Client#Data transclusion";</div></td> </tr> </table> Krinkle https://en.wikipedia.org/w/index.php?title=Module:Template_link_with_magic/sandbox&diff=1018348677&oldid=prev Krinkle: sync 2021-04-17T16:09:46Z <p>sync</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 16:09, 17 April 2021</td> </tr><tr> <td colspan="2" class="diff-lineno">Line 100:</td> <td colspan="2" class="diff-lineno">Line 100:</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> -- case-insensitive!</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> -- case-insensitive!</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> ["noexternallanglinks"] = "mw:Extension:Wikibase Client";</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> ["noexternallanglinks"] = "mw:Extension:Wikibase Client";</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> ["pendingchangelevel"] = "mw:Extension:FlaggedRevs"; -- not documented yet</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;"><div>}</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>}</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> Krinkle https://en.wikipedia.org/w/index.php?title=Module:Template_link_with_magic/sandbox&diff=893688545&oldid=prev Pppery: Pppery moved page Module:Template link/sandbox to Module:Tlm/sandbox without leaving a redirect 2019-04-22T23:52:52Z <p>Pppery moved page <a href="/w/index.php?title=Module:Template_link/sandbox&amp;action=edit&amp;redlink=1" class="new" title="Module:Template link/sandbox (page does not exist)">Module:Template link/sandbox</a> to <a href="/wiki/Module:Tlm/sandbox" class="mw-redirect" title="Module:Tlm/sandbox">Module:Tlm/sandbox</a> without leaving a redirect</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 23:52, 22 April 2019</td> </tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div> </td></tr></table> Pppery https://en.wikipedia.org/w/index.php?title=Module:Template_link_with_magic/sandbox&diff=866050921&oldid=prev BrandonXLF: Create sandbox version of Module:Template link 2018-10-27T23:03:56Z <p>Create sandbox version of <a href="/w/index.php?title=Module:Template_link&amp;action=edit&amp;redlink=1" class="new" title="Module:Template link (page does not exist)">Module:Template link</a></p> <p><b>New page</b></p><div>local export = {}<br /> <br /> local variables_nullary = {<br /> [&quot;CURRENTYEAR&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;CURRENTMONTH&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;CURRENTMONTH1&quot;] = &quot;mw:Help:Magic words#Date and time&quot;; -- undocumented<br /> [&quot;CURRENTMONTH2&quot;] = &quot;mw:Help:Magic words#Date and time&quot;; -- undocumented<br /> [&quot;CURRENTMONTHNAME&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;CURRENTMONTHNAMEGEN&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;CURRENTMONTHABBREV&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;CURRENTDAY&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;CURRENTDAY2&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;CURRENTDOW&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;CURRENTDAYNAME&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;CURRENTTIME&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;CURRENTHOUR&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;CURRENTWEEK&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;CURRENTTIMESTAMP&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> <br /> [&quot;LOCALYEAR&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;LOCALMONTH&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;LOCALMONTH1&quot;] = &quot;mw:Help:Magic words#Date and time&quot;; -- undocumented<br /> [&quot;LOCALMONTH2&quot;] = &quot;mw:Help:Magic words#Date and time&quot;; -- undocumented<br /> [&quot;LOCALMONTHNAME&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;LOCALMONTHNAMEGEN&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;LOCALMONTHABBREV&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;LOCALDAY&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;LOCALDAY2&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;LOCALDOW&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;LOCALDAYNAME&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;LOCALTIME&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;LOCALHOUR&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;LOCALWEEK&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> [&quot;LOCALTIMESTAMP&quot;] = &quot;mw:Help:Magic words#Date and time&quot;;<br /> <br /> [&quot;SITENAME&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;SERVER&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;SERVERNAME&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;DIRMARK&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;DIRECTIONMARK&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;ARTICLEPATH&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;; -- undocumented<br /> [&quot;SCRIPTPATH&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;STYLEPATH&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;CURRENTVERSION&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;CONTENTLANGUAGE&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;CONTENTLANG&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> <br /> [&quot;PAGEID&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;CASCADINGSOURCES&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> <br /> [&quot;REVISIONID&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;REVISIONDAY&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;REVISIONDAY2&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;REVISIONMONTH&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;REVISIONMONTH1&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;REVISIONYEAR&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;REVISIONTIMESTAMP&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;REVISIONUSER&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;REVISIONSIZE&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> <br /> [&quot;NUMBEROFPAGES&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;NUMBEROFARTICLES&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;NUMBEROFFILES&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;NUMBEROFEDITS&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;NUMBEROFVIEWS&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;NUMBEROFUSERS&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;NUMBEROFADMINS&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;NUMBEROFACTIVEUSERS&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> <br /> [&quot;FULLPAGENAME&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;PAGENAME&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;BASEPAGENAME&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;SUBPAGENAME&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;SUBJECTPAGENAME&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;ARTICLEPAGENAME&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;TALKPAGENAME&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;ROOTPAGENAME&quot;] = &quot;mw:Help:Magic words#Page names&quot;; -- undocumented<br /> <br /> [&quot;FULLPAGENAMEE&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;PAGENAMEE&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;BASEPAGENAMEE&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;SUBPAGENAMEE&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;SUBJECTPAGENAMEE&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;ARTICLEPAGENAMEE&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;TALKPAGENAMEE&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;ROOTPAGENAMEE&quot;] = &quot;mw:Help:Magic words#Page names&quot;; -- undocumented<br /> <br /> [&quot;NAMESPACE&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> [&quot;NAMESPACENUMBER&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> [&quot;SUBJECTSPACE&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> [&quot;ARTICLESPACE&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> [&quot;TALKSPACE&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> <br /> [&quot;NAMESPACEE&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> [&quot;SUBJECTSPACEE&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> [&quot;TALKSPACEE&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> <br /> [&quot;!&quot;] = &quot;mw:Help:Magic words#Other&quot;;<br /> <br /> -- case-insensitive!<br /> [&quot;noexternallanglinks&quot;] = &quot;mw:Extension:Wikibase Client&quot;;<br /> [&quot;pendingchangelevel&quot;] = &quot;mw:Extension:FlaggedRevs&quot;; -- not documented yet<br /> }<br /> <br /> local variables_nonnullary = {<br /> [&quot;PROTECTIONLEVEL&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> <br /> [&quot;DISPLAYTITLE&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;DEFAULTSORT&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> <br /> [&quot;PAGESINCATEGORY&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;PAGESINCAT&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> <br /> [&quot;NUMBERINGROUP&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;PAGESINNS&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> [&quot;PAGESINNAMESPACE&quot;] = &quot;mw:Help:Magic words#Technical metadata&quot;;<br /> <br /> [&quot;FULLPAGENAME&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;PAGENAME&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;BASEPAGENAME&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;SUBPAGENAME&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;SUBJECTPAGENAME&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;ARTICLEPAGENAME&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;TALKPAGENAME&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;ROOTPAGENAME&quot;] = &quot;mw:Help:Magic words#Page names&quot;; -- undocumented<br /> <br /> [&quot;FULLPAGENAMEE&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;PAGENAMEE&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;BASEPAGENAMEE&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;SUBPAGENAMEE&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;SUBJECTPAGENAMEE&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;ARTICLEPAGENAMEE&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;TALKPAGENAMEE&quot;] = &quot;mw:Help:Magic words#Page names&quot;;<br /> [&quot;ROOTPAGENAMEE&quot;] = &quot;mw:Help:Magic words#Page names&quot;; -- undocumented<br /> <br /> [&quot;NAMESPACE&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> [&quot;NAMESPACENUMBER&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> [&quot;SUBJECTSPACE&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> [&quot;ARTICLESPACE&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> [&quot;TALKSPACE&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> <br /> [&quot;NAMESPACEE&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> [&quot;SUBJECTSPACEE&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> [&quot;TALKSPACEE&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> <br /> [&quot;PAGEID&quot;] = &quot;mw:Help:Magic words#Technical metadata of another page&quot;;<br /> [&quot;PAGESIZE&quot;] = &quot;mw:Help:Magic words#Technical metadata of another page&quot;;<br /> [&quot;PROTECTIONLEVEL&quot;] = &quot;mw:Help:Magic words#Technical metadata of another page&quot;;<br /> [&quot;CASCADINGSOURCES&quot;] = &quot;mw:Help:Magic words#Technical metadata of another page&quot;;<br /> [&quot;REVISIONID&quot;] = &quot;mw:Help:Magic words#Technical metadata of another page&quot;;<br /> [&quot;REVISIONDAY&quot;] = &quot;mw:Help:Magic words#Technical metadata of another page&quot;;<br /> [&quot;REVISIONDAY2&quot;] = &quot;mw:Help:Magic words#Technical metadata of another page&quot;;<br /> [&quot;REVISIONMONTH&quot;] = &quot;mw:Help:Magic words#Technical metadata of another page&quot;;<br /> [&quot;REVISIONMONTH1&quot;] = &quot;mw:Help:Magic words#Technical metadata of another page&quot;;<br /> [&quot;REVISIONYEAR&quot;] = &quot;mw:Help:Magic words#Technical metadata of another page&quot;;<br /> [&quot;REVISIONTIMESTAMP&quot;] = &quot;mw:Help:Magic words#Technical metadata of another page&quot;;<br /> [&quot;REVISIONUSER&quot;] = &quot;mw:Help:Magic words#Technical metadata of another page&quot;;<br /> }<br /> <br /> local parser_functions = {<br /> -- built-ins<br /> [&quot;localurl&quot;] = &quot;mw:Help:Magic words#URL data&quot;;<br /> [&quot;localurle&quot;] = &quot;mw:Help:Magic words#URL data&quot;;<br /> [&quot;fullurl&quot;] = &quot;mw:Help:Magic words#URL data&quot;;<br /> [&quot;fullurle&quot;] = &quot;mw:Help:Magic words#URL data&quot;;<br /> [&quot;canonicalurl&quot;] = &quot;mw:Help:Magic words#URL data&quot;;<br /> [&quot;canonicalurle&quot;] = &quot;mw:Help:Magic words#URL data&quot;;<br /> [&quot;filepath&quot;] = &quot;mw:Help:Magic words#URL data&quot;;<br /> [&quot;urlencode&quot;] = &quot;mw:Help:Magic words#URL data&quot;;<br /> [&quot;urldecode&quot;] = &quot;mw:Help:Magic words#URL data&quot;;<br /> [&quot;anchorencode&quot;] = &quot;mw:Help:Magic words#URL data&quot;;<br /> <br /> [&quot;ns&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> [&quot;nse&quot;] = &quot;mw:Help:Magic words#Namespaces&quot;;<br /> <br /> [&quot;formatnum&quot;] = &quot;mw:Help:Magic words#Formatting&quot;;<br /> [&quot;#dateformat&quot;] = &quot;mw:Help:Magic words#Formatting&quot;;<br /> [&quot;#formatdate&quot;] = &quot;mw:Help:Magic words#Formatting&quot;;<br /> [&quot;lc&quot;] = &quot;mw:Help:Magic words#Formatting&quot;;<br /> [&quot;lcfirst&quot;] = &quot;mw:Help:Magic words#Formatting&quot;;<br /> [&quot;uc&quot;] = &quot;mw:Help:Magic words#Formatting&quot;;<br /> [&quot;ucfirst&quot;] = &quot;mw:Help:Magic words#Formatting&quot;;<br /> [&quot;padleft&quot;] = &quot;mw:Help:Magic words#Formatting&quot;;<br /> [&quot;padright&quot;] = &quot;mw:Help:Magic words#Formatting&quot;;<br /> <br /> [&quot;plural&quot;] = &quot;mw:Help:Magic words#Localization&quot;;<br /> [&quot;grammar&quot;] = &quot;mw:Help:Magic words#Localization&quot;;<br /> [&quot;gender&quot;] = &quot;mw:Help:Magic words#Localization&quot;;<br /> [&quot;int&quot;] = &quot;mw:Help:Magic words#Localization&quot;;<br /> <br /> [&quot;#language&quot;] = &quot;mw:Help:Magic words#Miscellaneous&quot;;<br /> [&quot;#special&quot;] = &quot;mw:Help:Magic words#Miscellaneous&quot;;<br /> [&quot;#speciale&quot;] = &quot;mw:Help:Magic words#Miscellaneous&quot;;<br /> [&quot;#tag&quot;] = &quot;mw:Help:Magic words#Miscellaneous&quot;;<br /> <br /> -- [[mw:Extension:ParserFunctions]]<br /> [&quot;#expr&quot;] = &quot;mw:Help:Extension:ParserFunctions##expr&quot;;<br /> [&quot;#if&quot;] = &quot;mw:Help:Extension:ParserFunctions##if&quot;;<br /> [&quot;#ifeq&quot;] = &quot;mw:Help:Extension:ParserFunctions##ifeq&quot;;<br /> [&quot;#iferror&quot;] = &quot;mw:Help:Extension:ParserFunctions##iferror&quot;;<br /> [&quot;#ifexpr&quot;] = &quot;mw:Help:Extension:ParserFunctions##ifexpr&quot;;<br /> [&quot;#ifexist&quot;] = &quot;mw:Help:Extension:ParserFunctions##ifexist&quot;;<br /> [&quot;#rel2abs&quot;] = &quot;mw:Help:Extension:ParserFunctions##rel2abs&quot;;<br /> [&quot;#switch&quot;] = &quot;mw:Help:Extension:ParserFunctions##switch&quot;;<br /> [&quot;#time&quot;] = &quot;mw:Help:Extension:ParserFunctions##time&quot;;<br /> [&quot;#timel&quot;] = &quot;mw:Help:Extension:ParserFunctions##timel&quot;;<br /> [&quot;#titleparts&quot;] = &quot;mw:Help:Extension:ParserFunctions##titleparts&quot;;<br /> <br /> -- other extensions<br /> [&quot;#babel&quot;] = &quot;mw:Extension:Babel#Usage&quot;;<br /> [&quot;#categorytree&quot;] = &quot;mw:Extension:CategoryTree#The {{#categorytree}} parser function&quot;;<br /> [&quot;#coordinates&quot;] = &quot;mw:Extension:GeoData#Parser function&quot;;<br /> [&quot;#invoke&quot;] = &quot;mw:Extension:Scribunto#Usage&quot;;<br /> [&quot;#lst&quot;] = &quot;mw:Extension:Labeled Section Transclusion#How it works&quot;;<br /> [&quot;#lsth&quot;] = &quot;mw:Extension:Labeled Section Transclusion#How it works&quot;; -- not available, it seems<br /> [&quot;#lstx&quot;] = &quot;mw:Extension:Labeled Section Transclusion#How it works&quot;;<br /> [&quot;noexternallanglinks&quot;] = &quot;mw:Extension:Wikibase Client#noexternallanglinks&quot;;<br /> [&quot;#pagesusingpendingchanges&quot;] = &quot;mw:Extension:FlaggedRevs&quot;; -- not documented yet<br /> [&quot;pendingchangelevel&quot;] = &quot;mw:Extension:FlaggedRevs&quot;; -- not documented yet<br /> [&quot;#property&quot;] = &quot;mw:Extension:Wikibase Client#Data transclusion&quot;;<br /> [&quot;#target&quot;] = &quot;mw:Extension:MassMessage&quot;; -- not documented yet<br /> }<br /> <br /> -- rudimentary<br /> local function is_valid_pagename(pagename)<br /> if (pagename == &quot;&quot;) or pagename:match(&quot;[%[%]%|%{%}#\127&lt;&gt;]&quot;) then<br /> return false<br /> end<br /> return true<br /> end<br /> <br /> local function hook_special(page)<br /> if is_valid_pagename(page) then<br /> return &quot;[[Special:&quot; .. page .. &quot;|&quot; .. page .. &quot;]]&quot;<br /> else<br /> return page<br /> end<br /> end<br /> <br /> local parser_function_hooks = {<br /> [&quot;#special&quot;] = hook_special;<br /> [&quot;#speciale&quot;] = hook_special;<br /> <br /> [&quot;int&quot;] = function (mesg)<br /> if is_valid_pagename(mesg) then<br /> return (&quot;[[:MediaWiki:&quot; .. mesg .. &quot;|&quot; .. mesg .. &quot;]]&quot;)<br /> else<br /> return mesg<br /> end<br /> end;<br /> <br /> [&quot;#categorytree&quot;] = function (cat)<br /> if is_valid_pagename(cat) and not (mw.title.getCurrentTitle().fullText == (&quot;Category:&quot; .. cat)) then<br /> return (&quot;[[:Category:&quot; .. cat .. &quot;|&quot; .. cat .. &quot;]]&quot;)<br /> else<br /> return cat<br /> end<br /> end;<br /> <br /> [&quot;#invoke&quot;] = function (mod)<br /> if is_valid_pagename(mod) and not (mw.title.getCurrentTitle().fullText == (&quot;Module:&quot; .. mod)) then<br /> return (&quot;[[Module:%s|%s]]&quot;):format(mod, mod)<br /> else<br /> return mod<br /> end<br /> end;<br /> <br /> -- [&quot;#tag&quot;] = function (tag)<br /> -- local doc_table = require(&#039;Module:wikitag link&#039;).doc_table<br /> -- if doc_table[tag] then<br /> -- return (&quot;[[%s|%s]]&quot;):format(doc_table[tag], tag)<br /> -- else<br /> -- return tag<br /> -- end<br /> -- end;<br /> <br /> [&quot;#property&quot;] = function (name)<br /> if is_valid_pagename(name) then<br /> return (&quot;[[:d:Property:%s|%s]]&quot;):format(name, name)<br /> else<br /> return name<br /> end <br /> end;<br /> }<br /> <br /> function export.format_link(frame)<br /> local args = frame:getParent().args<br /> local output = { frame.args.nested and &quot;&amp;#123;&amp;#123;&quot; or &quot;&lt;code&gt;&amp;#123;&amp;#123;&quot; }<br /> <br /> local templ = args[1]<br /> local noargs = true<br /> <br /> if not templ then<br /> if mw.title.getCurrentTitle().fullText == frame:getParent():getTitle() then<br /> -- demo mode<br /> return &quot;&lt;code&gt;{{&lt;var&gt;{{{1}}}&lt;/var&gt;|&lt;var&gt;{{{2}}}&lt;/var&gt;|...}}&lt;/code&gt;&quot;<br /> else<br /> error(&quot;The template name must be given.&quot;)<br /> end<br /> end<br /> <br /> for key, value in pairs(args) do<br /> if key ~= 1 then<br /> noargs = false<br /> break<br /> end<br /> end<br /> <br /> local function render_title(templ)<br /> local marker, rest<br /> <br /> marker, rest = templ:match(&quot;^([Ss][Uu][Bb][Ss][Tt]):(.*)&quot;)<br /> if not marker then<br /> marker, rest = templ:match(&quot;^([Ss][Aa][Ff][Ee][Ss][Uu][Bb][Ss][Tt]):(.*)&quot;)<br /> end<br /> if marker then<br /> templ = rest<br /> table.insert(output, (&quot;[[mw:Manual:Substitution|%s]]:&quot;):format(marker))<br /> end<br /> <br /> if noargs and variables_nullary[templ] then<br /> table.insert(output, (&quot;[[%s|%s]]&quot;):format(variables_nullary[templ], templ))<br /> return<br /> end<br /> <br /> marker, rest = templ:match(&quot;^([Mm][Ss][Gg][Nn][Ww]):(.*)&quot;)<br /> if marker then<br /> templ = rest<br /> -- not the most accurate documentation ever<br /> table.insert(output, (&quot;[[m:Help:Magic words#Template modifiers|%s]]:&quot;):format(marker))<br /> else<br /> marker, rest = templ:match(&quot;^([Mm][Ss][Gg]):(.*)&quot;)<br /> if marker then<br /> templ = rest <br /> table.insert(output, (&quot;[[m:Help:Magic words#Template modifiers|%s]]:&quot;):format(marker)) -- ditto<br /> end<br /> end<br /> <br /> marker, rest = templ:match(&quot;^([Rr][Aa][Ww]):(.*)&quot;)<br /> if marker then<br /> table.insert(output, (&quot;[[m:Help:Magic words#Template modifiers|%s]]:&quot;):format(marker)) -- missingno.<br /> templ = rest <br /> end<br /> <br /> if templ:match(&quot;^%s*/&quot;) then<br /> table.insert(output, (&quot;[[%s]]&quot;):format(templ))<br /> return <br /> end<br /> <br /> marker, rest = templ:match(&quot;^(.-):(.*)&quot;)<br /> if marker then<br /> local lcmarker = marker:lower()<br /> if parser_functions[lcmarker] then<br /> if parser_function_hooks[lcmarker] then<br /> rest = parser_function_hooks[lcmarker](rest)<br /> end<br /> table.insert(output, (&quot;[[%s|%s]]:%s&quot;):format(mw.uri.encode(parser_functions[lcmarker], &quot;WIKI&quot;), marker, rest))<br /> return<br /> elseif variables_nonnullary[marker] then<br /> table.insert(output, (&quot;[[%s|%s]]:%s&quot;):format(variables_nonnullary[marker], marker, rest))<br /> return<br /> end<br /> end<br /> <br /> if templ:match(&quot;[%[%]%|%{%}#\127&lt;&gt;]&quot;) then<br /> table.insert(output, templ)<br /> return<br /> end<br /> <br /> if marker then<br /> if mw.site.namespaces[marker] then<br /> if (title == &quot;&quot;) or (mw.title.getCurrentTitle().fullText == templ) then<br /> table.insert(output, templ)<br /> else<br /> table.insert(output, (&quot;[[:%s|%s]]&quot;):format(templ, templ))<br /> end<br /> return<br /> elseif mw.site.interwikiMap()[marker:lower()] then<br /> -- XXX: not sure what to do now…<br /> table.insert(output, (&quot;[[:%s:|%s]]:%s&quot;):format(marker, marker, rest))<br /> return<br /> end<br /> end<br /> <br /> if (templ == &quot;&quot;) or (mw.title.getCurrentTitle().fullText == (&quot;Template:&quot; .. templ)) then<br /> table.insert(output, templ)<br /> else<br /> table.insert(output, (&quot;[[Template:%s|%s]]&quot;):format(templ, templ))<br /> end<br /> end<br /> <br /> render_title(templ)<br /> <br /> local i = 2<br /> while args[i] do<br /> table.insert(output, &quot;&amp;#124;&quot; .. args[i])<br /> i = i + 1<br /> end<br /> <br /> for key, value in pairs(args) do<br /> if type(key) == &quot;string&quot; then<br /> table.insert(output, &quot;&amp;#124;&quot; .. key .. &quot;=&quot; .. value)<br /> end<br /> end<br /> <br /> table.insert(output, frame.args.nested and &quot;&amp;#125;&amp;#125;&quot; or &quot;&amp;#125;&amp;#125;&lt;/code&gt;&quot;)<br /> return table.concat(output)<br /> end<br /> <br /> return export</div> BrandonXLF