Sandbox: Difference between revisions

From Alpine Linux
m (More testing.)
m (More stress testing.)
Line 9: Line 9:
Positional parameter 1 + repo parameter: {{Template:Sandbox|apk|repo=main}}<br>
Positional parameter 1 + repo parameter: {{Template:Sandbox|apk|repo=main}}<br>
name parameter + repo parameter: {{Template:Sandbox|name=apk|repo=main}}<br>
name parameter + repo parameter: {{Template:Sandbox|name=apk|repo=main}}<br>
Many parameters set: {{Template:Sandbox|name=apk|repo=main|branch=edge|arch=x86_64}}
Many parameters set: {{Template:Sandbox|name=apk|repo=main|branch=edge|arch=x86_64}}<br><br>


Nonsense handling: Old template (left) vs new (right)
Nonsense handling:<br>
{{pkg}} {{Template:Sandbox}} (no arguments passed whatsoever)
No arguments passed whatsoever (new template should handle gracefully)<br>
Old template: {{pkg}} New template: {{Template:Sandbox}}
 
Extra positional arguments passed (shouldn't make any difference)<br>
Old template: {{pkg|apk|foo|bar|bat|baz}} New template: {{Template:Sandbox|apk|foo|bar|bat|baz}}
 
Extra positional arguments and extra named arguments (shouldn't make any difference)<br>
Old template: {{pkg|apk|foo|repo=main|bacon=delicious}} New template: {{Template:Sandbox|apk|foo|repo=main|bacon=delicious}}

Revision as of 20:12, 28 December 2023

This is a test of an upgraded version of the Template:pkg. It should preserve the old behavior,

The following 3 should produce the exact same URL:
Old way with positional parameter 1 only: 3.20.3



New way with name parameter only: 3.20.3



Nonsensical combination of old and new: 3.20.3




The following should produce the exact same URLs:
Positional parameter 1 + repo parameter: 3.20.3



name parameter + repo parameter: 3.20.3



Many parameters set: 3.20.3




Nonsense handling:
No arguments passed whatsoever (new template should handle gracefully)
Old template: First parameter cannot be undefined or empty in template: Template:Pkg New template: 3.20.3



Extra positional arguments passed (shouldn't make any difference)
Old template: apk New template: 3.20.3



Extra positional arguments and extra named arguments (shouldn't make any difference)
Old template: apk New template: 3.20.3