User:Bgo/template examples
From HPC Wiki
< User:Bgo
See the results of some of the currently installed templates.
Examples
For wheel group.
user $a commanduser $a 1st commanduser $a 2nd commanduser $a 3rd command
bgo $do somethinga generic commandAnother onemoreroot #I am root
if then
/home/bgo/shared
Here is a note:
Note
Just a little note.
Just a little note.
if [ a == b ]; then
echo "Done" {{{HPC-Base-Dir|flory}}}
fi
/home/bgo/shared
Disk /dev/sdb: 16.6 GB, 16574840832 bytes 255 heads, 63 sectors/track, 2015 cylinders, total 32372736 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x1db42224 Device Boot Start End Blocks Id System /dev/sdb1 * 2048 835379 416666 c W95 FAT32 (LBA) /dev/sdb2 835380 31889024 15526822+ 83 Linux /dev/sdb3 31889025 32372735 241855+ 5 Extended /dev/sdb5 31889088 32372735 241824 82 Linux swap / Solaris
Testcases
C
See the template's testcases and main page:
| Unnamed parameter 1 | |
|---|---|
| Wiki code | The {{C|wheel}} group
|
| Main version |
The wheel group |
| Sandbox version | The wheel group |
Cmd
See the template's testcases and main page:
| Parameter: 1. unnamed | |
|---|---|
| Wiki code | {{Cmd|a command}}
|
| Main version | user $a command |
| Sandbox version | |
| Parameter: unnamed with the special characters "=" and "|" | |
|---|---|
| Wiki code | {{Cmd|a command with {{=}} and {{!}}}}
|
| Main version | user $a command with = and | |
| Sandbox version | |
| Parameter: output | |
|---|---|
| Wiki code | {{Cmd|a command|output=<pre>
Some output
</pre>}}
|
| Main version | user $a commandSome output |
| Sandbox version | |
| Parameter: prompt, color | |
|---|---|
| Wiki code | {{Cmd
|a command
|prompt=example ?
|color=blue
}}
|
| Main version | example ?a command
|
| Sandbox version | |
| Parameter: unnamed (10x) | |
|---|---|
| Wiki code | {{Cmd
|1. command
|...
|10. command
}}
|
| Main version | user $1. command
user $2. command
user $3. command
user $4. command
user $5. command
user $6. command
user $7. command
user $8. command
user $9. command
user $10. command
|
| Sandbox version | |
GenericCmd
See the template's testcases and main page:
| Parameter: unnamed | |
|---|---|
| Wiki code | {{GenericCmd|<pre>
command output
this
that
</pre>}}
|
| Main version | |
| Sandbox version | command output
|
RootCmd
See the template's testcases and main page:
| Parameter: unnamed | |
|---|---|
| Wiki code | {{RootCmd|a command}}
|
| Main version | root #a command |
| Sandbox version | #a command |
| Parameter: unnamed with the special characters "=" and "|" | |
|---|---|
| Wiki code | {{RootCmd|a command with {{=}} and {{!}}}}
|
| Main version | root #a command with = and | |
| Sandbox version | #a command with = and | |
| Parameter: output | |
|---|---|
| Wiki code | {{RootCmd|a command|output=<pre>
Some output
</pre>}}
|
| Main version | root #a commandSome output |
| Sandbox version | #a commandSome output |
| Parameter: prompt, color | |
|---|---|
| Wiki code | {{RootCmd
|a command
|prompt=example ?
|color=blue
}}
|
| 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 | #1. command
#2. command
#3. command
#4. command
#5. command
#6. command
#7. command
#8. command
#9. command
#10. command
|
Note
See the template's testcases and main page:
| Parameter: unnamed | |
|---|---|
| Wiki code | {{Note|Some information.}}
|
| Main version | Note
Some information. |
| Sandbox version | Note: Some information.
|
Important
See the template's testcases and main page:
| Parameter: unnamed | |
|---|---|
| Wiki code | {{Important|Some information}}
|
| Main version | Important
Some information |
| Sandbox version | Important: Some information
|
Tip
See the template's testcases and main page:
| Parameter: unnamed | |
|---|---|
| Wiki code | {{Tip|Some information.}}
|
| Main version | Tip
Some information. |
| Sandbox version | Tip: Some information.
|
Warning
See the template's testcases and main page:
| Parameter: unnamed | |
|---|---|
| Wiki code | {{Warning|Some information.}}
|
| Main version | Warning
Some information. |
| Sandbox version | Warning: Some information.
|