Sandbox
This is a test of an upgraded version of the Template:pkg. It should preserve all old behavior *EXCEPT* it will print an error if both positional parameter 1 and name are unset or empty.
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
Empty positional argument passed:
Old template: First parameter cannot be undefined or empty in template: Template:Pkg New template: 3.20.3
Empty name argument passed:
New template: 3.20.3
Extra positional arguments passed (shouldn't make any difference)
Old template: apk-tools New template: 3.20.3
Extra positional arguments and extra named arguments (shouldn't make any difference)
Old template: apk-tools New template: 3.20.3
New behavior:
Link to apk-tools for every arch, but only for maintainer "Natanael Copa":
3.20.3
Link to all pipewire packages from maintainer "team/alpine-desktop"
3.20.3
Link to all linux-edge packages from maintainer "Milan P. Stanić"
3.20.3