Sandbox: Difference between revisions

From Alpine Linux
m (More stress testing.)
m (working on AlpineLatest template...)
Tag: Replaced
 
(9 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 the old behavior, <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}}<br>
</includeonly>
New way with name parameter only: {{Template:Sandbox|name=apk}}<br>
Nonsensical combination of old and new: {{Template:Sandbox|apk|name=apk}}<br>
<br>
The following should produce the exact same URLs:<br>
Positional parameter 1 + repo parameter: {{Template:Sandbox|apk|repo=main}}<br>
name parameter + repo parameter: {{Template:Sandbox|name=apk|repo=main}}<br>
Many parameters set: {{Template:Sandbox|name=apk|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}}
 
Extra positional arguments passed (shouldn't make any difference)<br>
Old template: {{pkg|apk|foo|bar|bat|baz}} New template: {{Template:Sandbox|apk|foo|bar|bat|baz}}
 
Extra positional arguments and extra named arguments (shouldn't make any difference)<br>
Old template: {{pkg|apk|foo|repo=main|bacon=delicious}} New template: {{Template:Sandbox|apk|foo|repo=main|bacon=delicious}}

Latest revision as of 16:58, 6 September 2024

This is a test