请输入您要查询的百科知识:

 

词条 Module:Redirect/sandbox/testcases
释义 -- Unit tests for Redirect. Click talk page to run tests.

local p = require('Module:UnitTests')

function p:test_main()

    self:preprocess_equals('{{#invoke:Redirect/sandbox|main|WP:AFC}}', 'Wikipedia:Articles for creation')    self:preprocess_equals('{{#invoke:Redirect/sandbox|main|  WP:AFC  }}', 'Wikipedia:Articles for creation')    self:preprocess_equals('{{#invoke:Redirect/sandbox|main|    }}', '')    self:preprocess_equals('{{#invoke:Redirect/sandbox|main|AFC|bracket=yes}}','Articles for creation')    self:preprocess_equals('{{#invoke:Redirect/sandbox|main|AFC}}', 'Wikipedia:Articles for creation')    self:preprocess_equals('{{#invoke:Redirect/sandbox|main|  AFC  }}', 'Wikipedia:Articles for creation')    self:preprocess_equals('{{#invoke:Redirect/sandbox|main|WP:AFC|bracket=yes}}', 'Articles for creation')    self:preprocess_equals('{{#invoke:Redirect/sandbox|main|  WP:AFC  |bracket=yes}}', 'Articles for creation')        self:preprocess_equals('{{#invoke:Redirect/sandbox|block|text=AFC AFD|nowiki=no}}', 'Articles for creation Articles for deletion')    self:preprocess_equals('{{#invoke:Redirect/sandbox|block|text=AFC AFD}}', '
[[Wikipedia:Articles for creation]] [[Wikipedia:Articles for deletion]]
') self:preprocess_equals('{{#invoke:Redirect/sandbox|block|Module talk:Redirect/sandbox/data}}', '
== Standard ==\[[Wikipedia:Articles for creation]], [[Wikipedia:Deletion review]], and [[Wikipedia:Articles for deletion]]\\== Special characters that plague mw.ustring.gsub ==\*[[Alien (franchise)]]\*[[CO]]\*[[Percent sign]]\\== Fun with pipes ==\[[Wikipedia:Articles for deletion|spoil-funs]] [[wikt:test|test]]\[[Space Cadet|  Going nowhere ]]\[[Vacuum packing|   and redirected ]]
') self:preprocess_equals('{{#invoke:Redirect/sandbox|block|Module talk:Redirect/sandbox/data|WP:AFD}}', '
== Standard ==\[[WP:AFC]], [[ WP:DRV ]], and [[Wikipedia:Articles for deletion]]\\== Special characters that plague mw.ustring.gsub ==\*[[Alien (franchise)]]\*[[CO]]\*[[Percent sign]]\\== Fun with pipes ==\[[Wikipedia:Articles for deletion|spoil-funs]] [[wikt:test|test]]\[[Space Cadet|  Going nowhere ]]\[[Vacuum packing|   and redirected ]]
') self:preprocess_equals('{{#invoke:Redirect/sandbox|block| Module talk:Redirect/sandbox/data | WP:AFD }}', '
== Standard ==\[[WP:AFC]], [[ WP:DRV ]], and [[Wikipedia:Articles for deletion]]\\== Special characters that plague mw.ustring.gsub ==\*[[Alien (franchise)]]\*[[CO]]\*[[Percent sign]]\\== Fun with pipes ==\[[Wikipedia:Articles for deletion|spoil-funs]] [[wikt:test|test]]\[[Space Cadet|  Going nowhere ]]\[[Vacuum packing|   and redirected ]]
') self:preprocess_equals('{{#invoke:Redirect/sandbox|block| Module talk:Redirect/sandbox/data | WP:AFD | pipe=yes}}', '
== Standard ==\[[WP:AFC]], [[ WP:DRV ]], and [[WP:AFD]]\\== Special characters that plague mw.ustring.gsub ==\*[[Weyland-Yutani]]\*[[Co.]]\*[[%]]\\== Fun with pipes ==\[[Wikipedia:Articles for deletion|spoil-funs]] [[wikt:test|test]]\[[Space Cadet|  Going nowhere ]]\[[Vacuum packing|   and redirected ]]
') self:preprocess_equals('{{#invoke:Redirect/sandbox|block| Module talk:Redirect/sandbox/data | WP:AFD | pipe = no }}', '
== Standard ==\[[WP:AFC]], [[ WP:DRV ]], and [[Wikipedia:Articles for deletion]]\\== Special characters that plague mw.ustring.gsub ==\*[[Alien (franchise)]]\*[[CO]]\*[[Percent sign]]\\== Fun with pipes ==\[[WP:AFD|spoil-funs]] [[wikt:test|test]]\[[   Space cadet   |  Going nowhere ]]\[[   Vacuum packed   |   and redirected ]]
') self:preprocess_equals('{{#invoke:Redirect/sandbox|block| Module talk:Redirect/sandbox/data | WP:AFD | pipe = make }}', '
== Standard ==\[[WP:AFC]], [[ WP:DRV ]], and [[Wikipedia:Articles for deletion|WP:AFD]]\\== Special characters that plague mw.ustring.gsub ==\*[[Alien (franchise)|Weyland-Yutani]]\*[[CO|Co.]]\*[[Percent sign|%]]\\== Fun with pipes ==\[[Wikipedia:Articles for deletion|spoil-funs]] [[wikt:test|test]]\[[Space Cadet|  Going nowhere ]]\[[Vacuum packing|   and redirected ]]
')

end

return p

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/16 9:09:09