Template:RootCmd/sandbox

From Gentoo Wiki
Jump to:navigation Jump to:search


Parameter: unnamed
Wiki code {{RootCmd|a command}}

Main version
root #a command
Sandbox version
root #a command
Parameter: unnamed with the special characters "=" and "|"
Wiki code {{RootCmd|a command with {{=}} and {{!}}}}

Main version
Sandbox version
root #a command with = and |
Parameter: output
Wiki code {{RootCmd|a command|output=<pre> Some output </pre>}}

Main version
root #a command
Some output
Sandbox version
root #a command
Some output
Parameters: output, collapse-output
Wiki code {{RootCmd |ls -l /sys |collapse-output=true |output=<pre> total 0 drwxr-xr-x 2 root root 0 Jun 28 14:42 block drwxr-xr-x 30 root root 0 May 31 13:51 bus drwxr-xr-x 68 root root 0 May 31 13:51 class drwxr-xr-x 4 root root 0 May 31 13:51 dev drwxr-xr-x 23 root root 0 May 31 13:51 devices drwxr-xr-x 6 root root 0 May 31 13:51 firmware drwxr-xr-x 14 root root 0 May 31 13:51 fs drwxr-xr-x 11 root root 0 May 31 13:51 kernel drwxr-xr-x 281 root root 0 May 31 13:51 module drwxr-xr-x 2 root root 0 Jun 28 14:42 power </pre> }}

Main version
root #ls -l /sys
total 0
drwxr-xr-x   2 root root 0 Jun 28 14:42 block
drwxr-xr-x  30 root root 0 May 31 13:51 bus
drwxr-xr-x  68 root root 0 May 31 13:51 class
drwxr-xr-x   4 root root 0 May 31 13:51 dev
drwxr-xr-x  23 root root 0 May 31 13:51 devices
drwxr-xr-x   6 root root 0 May 31 13:51 firmware
drwxr-xr-x  14 root root 0 May 31 13:51 fs
drwxr-xr-x  11 root root 0 May 31 13:51 kernel
drwxr-xr-x 281 root root 0 May 31 13:51 module
drwxr-xr-x   2 root root 0 Jun 28 14:42 power
Sandbox version
root #ls -l /sys
total 0
drwxr-xr-x   2 root root 0 Jun 28 14:42 block
drwxr-xr-x  30 root root 0 May 31 13:51 bus
drwxr-xr-x  68 root root 0 May 31 13:51 class
drwxr-xr-x   4 root root 0 May 31 13:51 dev
drwxr-xr-x  23 root root 0 May 31 13:51 devices
drwxr-xr-x   6 root root 0 May 31 13:51 firmware
drwxr-xr-x  14 root root 0 May 31 13:51 fs
drwxr-xr-x  11 root root 0 May 31 13:51 kernel
drwxr-xr-x 281 root root 0 May 31 13:51 module
drwxr-xr-x   2 root root 0 Jun 28 14:42 power
Parameter: prompt, color
Wiki code {{RootCmd |a command |prompt=example ? |color=lightblue }}

Main version
example ?a command
Sandbox version
example ?a command
Parameter: unnamed (10x)
Wiki code {{RootCmd |1. command |... |10. command }}

Main version
root #1. command
root #2. command
root #3. command
root #4. command
root #5. command
root #6. command
root #7. command
root #8. command
root #9. command
root #10. command
Sandbox version
root #1. command
root #2. command
root #3. command
root #4. command
root #5. command
root #6. command
root #7. command
root #8. command
root #9. command
root #10. command


Note
This is the template sandbox page for Template:RootCmd (diff).
See also the companion subpage for test cases.