词条 | Module:Infobox/testcases |
释义 | -- Example Unit tests for Bananas. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_hello() self:preprocess_equals_preprocess_many('{{infobox/sandbox', '}}', '{{Infobox', '}}', { {[=[ |label1 = Label 1 |data1 = Data 1 ]=]}, }, {nowiki = 'yes'}) end function p:test_ids() self:preprocess_equals_preprocess_many('{{infobox/sandbox', '}}', '{{Infobox', '}}', { {[=[ |label2 = Label 2 |labelid2 = lable |data2 = Data 2 |dataid2 = data |rowid1 = row |header1 = Header 1 |headerid1 = header ]=]}, }, {nowiki = 'yes'}) end function p:test_ids_name() self:preprocess_equals_preprocess_many('{{infobox/sandbox', '}}', '{{Infobox', '}}', { {[=[ |name = qw er tz |label2 = Label 2 |labelid2 = lable |data2 = Data 2 |dataid2 = data |rowid1 = row |header1 = Header 1 |headerid1 = header ]=]}, }, {nowiki = 'yes'}) end return p |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。