Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:TrainingPages/testcases
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local p = require('Module:UnitTests') function p:test_trainingpages() self:preprocess_equals_many('{{#invoke:TrainingPages|next_page|', '}}', { { 'index=Wikipedia:Training/For students/Index for TrainingPages testcases|page=Wikipedia:Training/For students/valuable contribution', 'Wikipedia:Training/For students/Editing topics' }, { 'index=Wikipedia:Training/For students/Index for TrainingPages testcases|page=Wikipedia:Training/For students/Editing topics', 'Wikipedia:Training/For students/Getting started 1' }, { 'index=Wikipedia:Training/For students/Index for TrainingPages testcases|page=Wikipedia:Training/For students/Citing sources', 'Wikipedia:Training/For students/Citing sources 2' }, { '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 for TrainingPages testcases|page=Wikipedia:Training/For students/valuable contribution|defaultpage=Wikipedia:Training/header', 'Wikipedia:Training/header' }, { 'index=Wikipedia:Training/For students/Index for TrainingPages testcases|page=Wikipedia:Training/For students/Citing sources|defaultpage=Wikipedia:Training/header', 'Wikipedia:Training/For students/Text editing' }, { 'Wikipedia:Training/For students/Index for TrainingPages testcases|page=Wikipedia:Training/For students/Where to get help|defaultpage=Wikipedia:Training/header', '[[Module:TrainingPages]] error:no index parameter specified' } }) self:preprocess_equals_many('{{#invoke:TrainingPages|main|', '}}', { { 'index=Wikipedia:Training/For students/Index for TrainingPages testcases|displacement=5|page=Wikipedia:Training/For students/Citing sources|defaultpage=', 'Wikipedia:Training/For students/Sandbox edits for new articles' }, { 'index=Wikipedia:Training/For students/Index for TrainingPages testcases|displacement=5|page=Wikipedia:Training/For students/Where to get help|defaultpage=', '' }, }) 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=', "[[Module:TrainingPages]] error (''index'' parameter):failed to access mw.title.new(Wikipedia:Training/For students/Nonexistent index):getContent() to load the index data" }, }) self:preprocess_equals_many('{{#invoke:TrainingPages|main|', '}}', { { 'index=Wikipedia:Training/For students/Index for TrainingPages testcases|page=1', 'Wikipedia:Training/For students/valuable contribution' } }) self:preprocess_equals_many('{{#invoke:TrainingPages|total_pages|', '}}', { { 'index=Wikipedia:Training/For students/Index for TrainingPages testcases ', '21' } }) end return p
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:TrainingPages/testcases/doc
(
edit
)