User:Bgo/template examples: Difference between revisions
From HPC Wiki
< User:Bgo
No edit summary |
No edit summary |
||
Line 64: | Line 64: | ||
See the template's [[Template:Note/testcases|testcases]] and [[Template:Note|main page]]: | See the template's [[Template:Note/testcases|testcases]] and [[Template:Note|main page]]: | ||
{{Template:Note/testcases}} | {{Template:Note/testcases}} | ||
== Important == | |||
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}} | |||
== RootCmd == | == RootCmd == | ||
See the template's [[Template:RootCmd/testcases|testcases]] and [[Template:RootCmd|main page]]: | See the template's [[Template:RootCmd/testcases|testcases]] and [[Template:RootCmd|main page]]: | ||
{{Template:RootCmd/testcases}} | {{Template:RootCmd/testcases}} |
Revision as of 14:01, 14 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
{{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
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.
|
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.
|
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
|