Template:Cleanup/testcases

From Wikipedia, the free encyclopedia

Page Module:Message box/ombox.css has no content.

Sandbox vs. live version

Before April 2012

Lua error in package.lua at line 80: module 'Module:Protect' not found. Lua error in package.lua at line 80: module 'Module:Protect' not found. Lua error in package.lua at line 80: module 'Module:Protect' not found.

April 2012

Lua error in package.lua at line 80: module 'Module:Protect' not found. Lua error in package.lua at line 80: module 'Module:Protect' not found. Lua error in package.lua at line 80: module 'Module:Protect' not found.

After April 2012

Lua error in package.lua at line 80: module 'Module:Protect' not found. Lua error in package.lua at line 80: module 'Module:Protect' not found. Lua error in package.lua at line 80: module 'Module:Protect' not found.

No date specified

Lua error in package.lua at line 80: module 'Module:Protect' not found. Lua error in package.lua at line 80: module 'Module:Protect' not found. Lua error in package.lua at line 80: module 'Module:Protect' not found.

Today

Lua error in package.lua at line 80: module 'Module:Protect' not found. Lua error in package.lua at line 80: module 'Module:Protect' not found. Lua error in package.lua at line 80: module 'Module:Protect' not found. Lua error in package.lua at line 80: module 'Module:Protect' not found. Lua error in package.lua at line 80: module 'Module:Protect' not found. Lua error in package.lua at line 80: module 'Module:Protect' not found.

Test of no parameters

Lua error in package.lua at line 80: module 'Module:Protect' not found.

These should not produce any clean-up categories on this page, if the template works correctly.

Test of reason without |reason=

Lua error in package.lua at line 80: module 'Module:Protect' not found.

In the discussion, it was shown that flipping the unnamed parameter on a template that exists on many pages may not be a good idea. Here's an example:

Lua error in package.lua at line 80: module 'Module:Protect' not found.

The real reason for cleanup will disappear, and the type of page, which is at present specified by the unnamed parameter, will become the reason!

Test of old tags with no reason

Lua error in package.lua at line 80: module 'Module:Protect' not found.