|
|
(5 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| 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.<br> | | <noinclude>This is a test</noinclude> |
| | | <includeonly> |
| The following 3 should produce the exact same URL:<br>
| | {{#if: {{{v}}}|v}}3.20.1 |
| Old way with positional parameter 1 only: {{Template:Sandbox|apk-tools}}<br>
| | </includeonly> |
| New way with name parameter only: {{Template:Sandbox|name=apk-tools}}<br>
| |
| Nonsensical combination of old and new: {{Template:Sandbox|apk|name=apk-tools}}<br>
| |
| <br>
| |
| The following should produce the exact same URLs:<br>
| |
| Positional parameter 1 + repo parameter: {{Template:Sandbox|apk-tools|repo=main}}<br>
| |
| name parameter + repo parameter: {{Template:Sandbox|name=apk-tools|repo=main}}<br>
| |
| Many parameters set: {{Template:Sandbox|name=apk-tools|repo=main|branch=edge|arch=x86_64}}<br><br>
| |
| | |
| Nonsense handling:<br>
| |
| No arguments passed whatsoever (new template should handle gracefully)<br>
| |
| Old template: {{pkg}} New template: {{Template:Sandbox}}<br><br>
| |
| | |
| Empty positional argument passed:<br>
| |
| Old template: {{pkg|}} New template: {{Template:Sandbox|}}<br><br>
| |
| | |
| Empty name argument passed:<br>
| |
| New template: {{Template:Sandbox|name=}}<br><br>
| |
| | |
| Extra positional arguments passed (shouldn't make any difference)<br>
| |
| Old template: {{pkg|apk-tools|foo|bar|bat|baz}} New template: {{Template:Sandbox|apk-tools|foo|bar|bat|baz}}
| |
| | |
| Extra positional arguments and extra named arguments (shouldn't make any difference)<br>
| |
| Old template: {{pkg|apk-tools|foo|repo=main|bacon=delicious}} New template: {{Template:Sandbox|apk-tools|foo|repo=main|bacon=delicious}}<br><br>
| |
| | |
| | |
| New behavior:
| |
| 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ć}}
| |