Sandbox: Difference between revisions

From Alpine Linux
m (More testing.)
m (More testing.)
Line 22: Line 22:




New behavior: Link to apk-tools for every arch, but only for maintainer "Natanael Copa":<br>
New behavior:
{{Template:Sandbox|apk-tools|arch=|maintainer=Natanael Copa}}
Link to apk-tools for every arch, but only for maintainer "Natanael Copa":<br>
{{Template:Sandbox|apk-tools|arch=|maintainer=Natanael Copa}}<br><br>
 
Link to all pipewire packages from maintainer "team/alpine-desktop"<br>
{{Template:Sandbox|name=pipewire*|arch=|maintainer=team/alpine-desktop}}<br><br>
 
Link to all linux-edge packages from maintainer "Milan P. Stanić"<br>
{{Template:Sandbox|linux-edge|arch=|maintainer=Milan P. Stanić}}

Revision as of 21:07, 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: apk-tools
New way with name parameter only: First parameter cannot be undefined or empty in template: Template:Pkg
Nonsensical combination of old and new: apk

The following should produce the exact same URLs:
Positional parameter 1 + repo parameter: apk-tools
name parameter + repo parameter: First parameter cannot be undefined or empty in template: Template:Pkg
Many parameters set: First parameter cannot be undefined or empty in template: Template:Pkg

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: First parameter cannot be undefined or empty in template: Template:Pkg

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

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


New behavior: Link to apk-tools for every arch, but only for maintainer "Natanael Copa":
apk-tools

Link to all pipewire packages from maintainer "team/alpine-desktop"
First parameter cannot be undefined or empty in template: Template:Pkg

Link to all linux-edge packages from maintainer "Milan P. Stanić"
linux-edge