Template:Emerge/doc

Use this template to show a shell box with a root command for use with the emerge command.

Parameters

 * Unnamed parameters (up to 10): Add commands.
 * params+ (optional): Add additional emerge parameters to the default --ask.
 * params (optional): Set the emerge parameters (replaces default).
 * output (optional): Add the command's output.

Usage
See the template's testcases:

Technical notes
Unless looping over all template arguments is possible in MediaWiki the usage of is needed, which also means the maximum number of packages to be specified is 10.

Once looping is supported, something as simple as this could be used for the template: where @ contains all unnamed template arguments and _ is the local iteration variable of the for loop.