Sandbox: Difference between revisions

From Alpine Linux
m (Testing a new version of the pkg template)
m (More testing.)
Line 1: Line 1:
This is a test of an upgraded version of the [[Template:pkg pkg template]]. It should preserve the old behavior, <br>
This is a test of an upgraded version of the [[Template:pkg]]. It should preserve the old behavior, <br>


The following 3 should produce the exact same URL:<br>
The following 3 should produce the exact same URL:<br>
Line 7: Line 7:
<br>
<br>
The following should produce the exact same URLs:<br>
The following should produce the exact same URLs:<br>
Positional parameter 1 + repo parameter<br>
Positional parameter 1 + repo parameter: {{Template:Sandbox|apk|repo=main}}<br>
{{Template:Sandbox|apk|repo=main}}<br>
name parameter + repo parameter: {{Template:Sandbox|name=apk|repo=main}}<br>
name parameter + repo parameter<br>
Many parameters set: {{Template:Sandbox|name=apk|repo=main|branch=edge|arch=x86_64}}
{{Template:Sandbox|name=apk|repo=main}}<br>
 
name parameter + repo parameter + branch parameter explicitly set to the default value + arch set to the default<br>
Nonsense handling: Old template (left) vs new (right)
{{Template:Sandbox|name=apk|repo=main|branch=edge|arch=x86_64}}
{{pkg}} {{Template:Sandbox}} (no arguments passed whatsoever)

Revision as of 20:01, 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: Old template (left) vs new (right) First parameter cannot be undefined or empty in template: Template:Pkg 3.20.3


(no arguments passed whatsoever)