User contributions for Peterxy12

A user with 390 edits. Account created on 23 July 2025.
Jump to navigation Jump to search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)

20 September 2025

12 September 2025

  • 15:3015:30, 12 September 2025 diff hist +411 N Template:Module test cases notice Created page with "<onlyinclude>{{ombox | image = 42px | text = This is the test suite for the module [[:{{NAMESPACE}}:{{BASEPAGENAME}}]]. [[{{TALKSPACE}}:{{PAGENAME}}|Results]] of the test cases. }}<includeonly>{{{category|{{PAGENAME}}}}}</includeonly></onlyinclude> {{Documentation}} <!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->" current
  • 15:2715:27, 12 September 2025 diff hist +37 N Module talk:LC zh/testcases Created page with "{{#invoke:LC zh/testcases|run_tests}}" current
  • 15:2615:26, 12 September 2025 diff hist +5 Module:LC zh/testcases/doc Restored revision 65521 by Peterxy12 (Restorer) current Tag: Undo
  • 15:2615:26, 12 September 2025 diff hist −5 Module:LC zh/testcases/doc No edit summary Tag: Reverted
  • 15:2615:26, 12 September 2025 diff hist +112 N Module:LC zh/testcases/doc Created page with "<includeonly>{{Module test cases notice}}</includeonly> {{Lua|Module:UnitTests}} {{Module talk:LC zh/testcases}}"
  • 15:2515:25, 12 September 2025 diff hist +23,645 N Module:ScribuntoUnit Created page with "------------------------------------------------------------------------------- -- Unit tests for Scribunto. ------------------------------------------------------------------------------- require('strict') local DebugHelper = {} local ScribuntoUnit = {} -- The cfg table contains all localisable strings and configuration, to make it -- easier to port this module to another wiki. local cfg = mw.loadData('Module:ScribuntoUnit/config') -----------------------------------..." current
  • 15:2415:24, 12 September 2025 diff hist +344 N Module:ScribuntoUnit/styles.css Created page with "* Styles for [[Module:ScribuntoUnit]]: .scribunto-test-table { width: 100%; max-width: 100%; } .scribunto-test-table .test-output { overflow-wrap: break-word; word-break: break-all; } .scribunto-test-table .test-output-expected, .scribunto-test-table .test-output-actual { font-family: monospace, monospace; white-space: pre-wrap; }" current
  • 15:2315:23, 12 September 2025 diff hist +3,590 N Module:UnitTests/doc Created page with "UnitTests provides a unit test facility that can be used by other scripts using '''require'''. Following is an example: <syntaxhighlight lang="lua"> -- Unit tests for Module:Bananas. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_hello() self:preprocess_equals('{{#invoke:Bananas| hello}}', 'Hello World!') end return p </syntaxhighlight> This would be executed with <code><nowiki>{{#invoke: Bananas/testcases | run_tests}}</n..." current
  • 15:2315:23, 12 September 2025 diff hist +8,045 N Module:UnitTests Created page with "-- UnitTester provides unit testing for other Lua scripts. For details see Wikipedia:Lua#Unit_testing. -- For user documentation see talk page. local UnitTester = {} local frame, tick, cross local result_table_header = "{|class=\"wikitable\"\n! !! Text !! Expected !! Actual" local result_table = '' local num_tests = 0; local num_failures = 0 function first_difference(s1, s2) if s1 == s2 then return '' end local max = math.min(#s1, #s2) for i = 1, max do..." current
  • 15:2215:22, 12 September 2025 diff hist +7,788 N Module:LC zh/testcases Created page with "--- Unit tests for Module:LC zh. Click talk page to run tests. -- -- self:preprocess_equals( "{{#invoke:LC zh|main}}", "" ) -- -- self:preprocess_equals_many( -- "{{#invoke:LC zh|main|", "}}", -- { -- { "", "" }, -- } -- ) -- -- @var table local p = require( Module:UnitTests ) local current_frame = mw.getCurrentFrame() -- Title.pageLang.code is an expensive function in Scribunto, thus not using -- pageLang.code here -- -- @var string local page_lang_code = cur..." current
  • 15:1815:18, 12 September 2025 diff hist +1,745 N Template:Note/styles.css Created page with ".note { background-position: left 7px top 50%; padding: 0.5em 0.5em 0.5em 40px; margin: 0.5em 0; overflow: hidden; background-color: #f8f9fa; color: #333; background-repeat: no-repeat; border: 1px solid #ddd; } .note-inline { display: inline-block; vertical-align: middle; } .note-info { background-color: #eaf3ff; color: #333; [[File:OOjs_UI_icon_information-progressive.svg]]: background-image: url(https://upload.wikimedia.org/wikipedia/commons/e/ec/OOj..." current
  • 15:1715:17, 12 September 2025 diff hist +136 N Template:LC zh/sandbox Created page with "<includeonly>{{#invoke:conversion-zh/sandbox|main|LC_zh_fallback=true}}</includeonly><noinclude>{{lua|Module:Conversion-zh}}</noinclude>" current
  • 15:1615:16, 12 September 2025 diff hist +9,868 N Template:LC zh Created page with "<noinclude> <languages/> </noinclude><includeonly>{{#invoke:LC zh|main}}{{#invoke:Check for unknown parameters|check|checkpositional = 1|unknown = _VALUE_|preview = unknown or deprecated parameter "_VALUE_"|lang|hide_ns|type|ns|ns_2|zh-hans|zh-hant|zh-hk}}</includeonly><noinclude> {{Documentation|content= {{Lua|Module:LC zh}} <translate> == Description == <!--T:23--> <!--T:24--> This template handles t..." current
  • 15:1415:14, 12 September 2025 diff hist +86 Template:Conversion-zh No edit summary
  • 15:1315:13, 12 September 2025 diff hist +22 N Template:Conversion-zh Created page with "Template:Conversion-zh"
  • 15:1315:13, 12 September 2025 diff hist +1,164 N Module:Conversion-zh Created page with "local this = {} this.fallbackList = { ['zh']={'zh','zh-hans','zh-hant','zh-cn','zh-tw','zh-hk','zh-mo','zh-sg','zh-my'}, ['zh-hans']={'zh-hans','zh-cn','zh-sg','zh-my','zh'}, ['zh-cn']={'zh-cn','zh-hans','zh-my','zh-sg','zh'}, ['zh-sg']={'zh-sg','zh-hans','zh-cn','zh-my','zh'}, ['zh-my']={'zh-my','zh-hans','zh-cn','zh-sg','zh'}, ['zh-hant']={'zh-hant','zh-tw','zh-hk','zh-mo','zh'}, ['zh-tw']={'zh-tw','zh-hant','zh-hk','zh-mo','zh'}, ['zh-hk']={'zh-hk','z..." current
  • 15:0515:05, 12 September 2025 diff hist +504 N Module:LC zh/doc Created page with "<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> == Description == Implements {{Tl|LC zh}} for zh language conversion. == Module Quality == {{ModuleQuality|test_method=run_tests}} == Test cases == {{Module talk:LC zh/testcases}} <includeonly>{{Sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Modules{{#translation:}}]] }}</includeonly><noinclude> Category:Module documentation pages{{#..." current
  • 15:0515:05, 12 September 2025 diff hist +18,333 N Module:LC zh Created page with "-- @var table local p = {} -- @param frame frame -- @return args Merged argument table function p.getMergedArgs( frame ) local args = {} -- @var args Argument table -- {{#invoke:Module name|function name|key = value}} local frameArgs = frame.args -- @var args Argument table -- {{Template name|key = value}} local frameParentArgs = frame:getParent().args for k, v in pairs( frameArgs ) do v = mw.text.trim( tostring( v ) ) args[k] = v end for k, v in pairs..." current

28 August 2025

26 August 2025

24 August 2025

(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)