Module:Urltowiki/testcases: Difference between revisions

Content deleted Content added
use url=
that should be 1=
Line 13:
function p:test_index_php()
self:preprocess_equals_many('{{#invoke:UrlToWiki|urlToWiki|', '}}', {
{'url1=https://en.wikipedia.org/w/index.php?title=Banana', '[[Banana]]'},
{'url1=https://en.wikipedia.org/w/index.php?title=English_language', '[[English language]]'},
{'url1=https://en.wikipedia.org/w/index.php?title=Module:UnitTests', '[[Module:UnitTests]]'},
{'url1=https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Articles_for_deletion', '[[Wikipedia talk:Articles for deletion]]'},
})
end
Line 36:
{'https://en.wikipedia.org/wiki/Wikipedia_talk:Articles_for_deletion#Foo_bar', '[[Wikipedia talk:Articles for deletion#Foo bar]]'},
{'https://en.wikipedia.org/wiki/Wikipedia_talk:Articles_for_deletion/Archive_1#Proposed_reorganization', '[[Wikipedia talk:Articles for deletion/Archive 1#Proposed reorganization]]'},
{'url1=https://en.wikipedia.org/w/index.php?title=Banana#Etymology', '[[Banana#Etymology]]'},
{'url1=https://en.wikipedia.org/w/index.php?title=English_language#Classification_and_related_languages', '[[English language#Classification and related languages]]'},
{'url1=https://en.wikipedia.org/w/index.php?title=Module:UnitTests#preprocess_equals_many', '[[Module:UnitTests#preprocess equals many]]'},
{'url1=https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Articles_for_deletion#Foo_bar', '[[Wikipedia talk:Articles for deletion#Foo bar]]'},
{'url1=https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Articles_for_deletion/Archive_1#Proposed_reorganization', '[[Wikipedia talk:Articles for deletion/Archive 1#Proposed reorganization]]'},
{'Banana#Etymology', '[[Banana#Etymology]]'},
{'English_language#Classification_and_related_languages', '[[English language#Classification and related languages]]'},