User:Bgo/template examples: Difference between revisions
From HPC Wiki
< User:Bgo
(Template examples and testcases) |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
See the results of some of the currently installed templates. | |||
__TOC__ | |||
= Examples = | |||
For {{C|wheel}} group. | For {{C|wheel}} group. | ||
Line 18: | Line 21: | ||
<code> | <code> | ||
if then | if then | ||
{{Path|{{HPC-Base-Dir}}}} | {{Path|{{HPC-Base-Dir|flory}}}} | ||
</code> | </code> | ||
Line 29: | Line 30: | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
if [ a == b ]; then | if [ a == b ]; then | ||
echo "Done" {{{HPC-Base-Dir}}} | echo "Done" {{{HPC-Base-Dir|flory}}} | ||
fi | fi | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{ | {{Path|{{HPC-Base-Dir|flory}}}} | ||
{{GenericCmd|output=<pre> | {{GenericCmd|output=<pre> | ||
Line 52: | Line 51: | ||
</pre>}} | </pre>}} | ||
See the template's [[Template:GenericCmd/testcases|testcases]]: | = Testcases = | ||
== C == | |||
See the template's [[Template:C/testcases|testcases]] and [[Template:C|main page]]: | |||
{{Template:C/testcases}} | |||
== Cmd == | |||
See the template's [[Template:Cmd/testcases|testcases]] and [[Template:Cmd|main page]]: | |||
{{Template:Cmd/testcases}} | |||
== 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]]: | |||
== RootCmd == | |||
See the template's [[Template:RootCmd/testcases|testcases]] and [[Template:RootCmd|main page]]: | |||
{{Template:RootCmd/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: | == Important == | ||
{{Template: | See the template's [[Template:Important/testcases|testcases]] and [[Template:Important|main page]]: | ||
{{Template:Important/testcases}} | |||
== Tip == | |||
See the template's [[Template:Tip/testcases|testcases]] and [[Template:Tip|main page]]: | |||
{{Template:Tip/testcases}} | |||
== Warning == | |||
See the template's [[Template:Warning/testcases|testcases]] and [[Template:Warning|main page]]: | |||
{{Template:Warning/testcases}} |
Latest revision as of 21:08, 25 December 2016
See the results of some of the currently installed templates.
Examples
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
/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 command Some 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 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
|
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.
|