Sandbox

From Alpine Linux
Revision as of 20:12, 28 December 2023 by Zcrayfish (talk | contribs) (More stress testing.)

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: #apk
New way with name parameter only: #{{{1}}}
Nonsensical combination of old and new: #apk

The following should produce the exact same URLs:
Positional parameter 1 + repo parameter: #apk
name parameter + repo parameter: #{{{1}}}
Many parameters set: #{{{1}}}

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: #{{{1}}}

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

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