User:Bgo/template examples: Difference between revisions
From HPC Wiki
< User:Bgo
No edit summary |
|||
Line 1: | Line 1: | ||
__TOC__ | |||
= Examples of currently installed templates = | = Examples of currently installed templates = | ||
Line 52: | Line 53: | ||
</pre>}} | </pre>}} | ||
See the [[Template:GenericCmd/testcases|testcases]] | = Testcases of currently installed templates = | ||
== GenericCmd == | |||
See the template's [[Template:GenericCmd/testcases|testcases]] and [[Template:GenericCmd|main page]]: | |||
{{Template:GenericCmd/testcases}} | {{Template:GenericCmd/testcases}} | ||
See the template's [[Template:Note/testcases|testcases]]: | == Note == | ||
See the template's [[Template:Note/testcases|testcases]] and [[Template:Note|main page]]: | |||
{{Template:Note/testcases}} | {{Template:Note/testcases}} | ||
See the template's [[Template:RootCmd/testcases|testcases]]: | == RootCmd == | ||
See the template's [[Template:RootCmd/testcases|testcases]] and [[Template:RootCmd|main page]]: | |||
{{Template:RootCmd/testcases}} | {{Template:RootCmd/testcases}} |
Revision as of 11:26, 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
Testcases of currently installed templates
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
|
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.
|
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 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
|