Content deleted Content added
No edit summary |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 3:
function p:test_trainingpages()
self:preprocess_equals_many('{{#invoke:TrainingPages|next_page|', '}}', {
{ 'index=Wikipedia:Training/For students/
{ 'index=Wikipedia:Training/For students/
{ 'index=Wikipedia:Training/For students/
{ 'index=Wikipedia:Training/For students/Index for TrainingPages testcases|page=Project:Training/For students/Citing sources', 'Wikipedia:Training/For students/Citing sources 2' },
{ 'index=Wikipedia:Training/For students/Index for TrainingPages testcases|anonymize=yes|page=Wikipedia:Training/For students/Citing sources', 'Project:Training/For students/Citing sources 2' }
})
self:preprocess_equals_many('{{#invoke:TrainingPages|last_page|', '}}', {
{ 'index=Wikipedia:Training/For students/
{ 'index=Wikipedia:Training/For students/
{ 'Wikipedia:Training/For students/
})
self:preprocess_equals_many('{{#invoke:TrainingPages|main|', '}}', {
{ 'index=Wikipedia:Training/For students/
{ '
})
self:preprocess_equals_many('{{#invoke:TrainingPages|page_number|', '}}', {
{ 'index=Wikipedia:Training/For students/Nonexistent index|defaultpage=|noerr=yes', '' },
{ 'index=Wikipedia:Training/For students/Nonexistent index|defaultpage=',
})
self:preprocess_equals_many('{{#invoke:TrainingPages|
{ 'index=Wikipedia:Training/For students/
})
self:preprocess_equals_many('{{#invoke:TrainingPages|total_pages|', '}}', {
{ 'index=Wikipedia:Training/For students/Index for TrainingPages testcases ', '21' }
})
end
|