User:Bgo/template examples: Difference between revisions
From HPC Wiki
< User:Bgo
(Template examples and testcases) |
|||
Line 52: | Line 52: | ||
</pre>}} | </pre>}} | ||
See the | See the [[Template:GenericCmd/testcases|testcases]] for [[Template:GenericCmd]] | ||
{{Template:GenericCmd/testcases}} | {{Template:GenericCmd/testcases}} | ||
Revision as of 11:13, 14 December 2016
Examples of currently installed templates
For wheel group.
user $
a command
user $
a 1st command
user $
a 2nd command
user $
a 3rd command
bgo $
do something
a generic command
Another one
more
root #
I am root
if then
{{HPC-Base-Dir}}Parameter unnamed not defined. For correct usage see template's documention.
Here is a note:
Note
Just a little note.
Just a little note.
if [ a == b ]; then
echo "Done" {{{HPC-Base-Dir}}}
fi
{{HPC-Base-Dir}}
Parameter unnamed not defined. For correct usage see template's documention.
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
See the testcases for Template:GenericCmd
Parameter: unnamed | |
---|---|
Wiki code | {{GenericCmd|<pre>
command output
this
that
</pre>}}
|
Main version |
|
Sandbox version | command output
|
See the template's testcases:
Parameter: unnamed | |
---|---|
Wiki code | {{Note|Some information.}}
|
Main version | Note
Some information. |
Sandbox version | Note: Some information.
|
See the template's testcases:
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 command Some output |
Sandbox version | # a command Some 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
|