Template:Unmerge/testcases
From Gentoo Wiki
Jump to:navigation
Jump to:search
Note
This is the template test case page for Template:Unmerge and its sandbox version. You may have to to update the examples.
This is the template test case page for Template:Unmerge and its sandbox version. You may have to to update the examples.
No parameter | |
---|---|
Wiki code | {{Unmerge}}
|
Main version | root # emerge --ask --depclean --verbose {{{1}}} |
Sandbox version | {{Unmerge template error}} Parameter unnamed not defined. For correct usage see Unmerge template's documentation on the unnamed parameter. |
Parameter: unnamed | |
---|---|
Wiki code | {{Unmerge|sys-apps/portage}}
|
Main version | root # emerge --ask --depclean --verbose sys-apps/portage |
Sandbox version | root # emerge --ask sys-apps/portage
|
Parameter: unnamed with the special character "=" | |
---|---|
Wiki code | {{Unmerge|{{=}}sys-apps/portage-1.2.3}}
|
Main version | root # emerge --ask --depclean --verbose =sys-apps/portage-1.2.3 |
Sandbox version | root # emerge --ask =sys-apps/portage-1.2.3
|
Parameter: unnamed (multiple packages) | |
---|---|
Wiki code | {{Unmerge|sys-apps/portage sys-apps/portage2 sys-apps/portage3}}
|
Main version | root # emerge --ask --depclean --verbose sys-apps/portage sys-apps/portage2 sys-apps/portage3 |
Sandbox version | root # emerge --ask sys-apps/portage sys-apps/portage2 sys-apps/portage3
|
Parameter: params+ | |
---|---|
Wiki code | {{Unmerge
|sys-apps/portage
|params+=--oneshot
}}
|
Main version | root # emerge --ask --depclean --verbose --oneshot sys-apps/portage |
Sandbox version | root # emerge --ask --oneshot sys-apps/portage
|
Parameter: params | |
---|---|
Wiki code | {{Unmerge
|sys-apps/portage
|params=--pretend --nospinner
}}
|
Main version | root # emerge --pretend --nospinner sys-apps/portage |
Sandbox version | root # emerge --pretend --nospinner sys-apps/portage
|
Parameter: output | |
---|---|
Wiki code | {{Unmerge|sys-apps/portage|output=<pre>
Some output
</pre>}}
|
Main version | root # emerge --ask --depclean --verbose sys-apps/portage Some output |
Sandbox version | root # emerge --ask sys-apps/portage
Some output |
Parameter: unnamed & {{Package}} | |
---|---|
Wiki code | {{Unmerge|{{Package|sys-apps/portage}}}}
|
Main version | root # emerge --ask --depclean --verbose sys-apps/portage |
Sandbox version | root # emerge --ask sys-apps/portage
|
Parameter: unnamed (10x) (deprecated) | |
---|---|
Wiki code | {{Unmerge
|sys-apps/portage
|...
|sys-apps/portage
}}
|
Main version | root # emerge --ask --depclean --verbose sys-apps/portage |
Sandbox version | root # emerge --ask sys-apps/portage sys-apps/portage sys-apps/portage sys-apps/portage sys-apps/portage sys-apps/portage sys-apps/portage sys-apps/portage sys-apps/portage sys-apps/portage
|
Parameter: unnamed (11x) (deprecated) | |
---|---|
Wiki code | {{Unmerge
|sys-apps/portage
|...
|sys-apps/portage
}}
|
Main version | root # emerge --ask --depclean --verbose sys-apps/portage |
Sandbox version | {{Unmerge template error}} Too many anonymous parameters. Maximum is 11. For correct usage see Unmerge template's documentation on the 11 parameter. |