Template:GenericCmd: Difference between revisions
From HPC Wiki
(Use this template to show a shell box with a command output.) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="cmd-box">{{#if:{{{1|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{1}}}}}|}}{{#if:{{{2|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{2}}}}}|}}{{#if:{{{3|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{3}}}}}|}}{{#if:{{{4|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{4}}}}}|}}{{#if:{{{5|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{5}}}}}|}}{{#if:{{{6|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{6}}}}}|}}{{#if:{{{7|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{7}}}}}|}}{{#if:{{{8|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{8}}}}}|}}{{#if:{{{9|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{9}}}}}|}}{{#if:{{{10|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{10}}}}}|}}{{#if:{{{11|}}}|(Too many commands supplied. Only the first 10 are displayed.)|}}{{#if:{{{output|}}}|{{{output}}}|}}</div></includeonly><noinclude>{{ | <includeonly><div class="cmd-box">{{#if:{{{1|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{1}}}}}|}}{{#if:{{{2|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{2}}}}}|}}{{#if:{{{3|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{3}}}}}|}}{{#if:{{{4|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{4}}}}}|}}{{#if:{{{5|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{5}}}}}|}}{{#if:{{{6|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{6}}}}}|}}{{#if:{{{7|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{7}}}}}|}}{{#if:{{{8|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{8}}}}}|}}{{#if:{{{9|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{9}}}}}|}}{{#if:{{{10|}}}|{{GenericCmd/Line|prompt={{{prompt|}}}|color={{{color}}}|{{{10}}}}}|}}{{#if:{{{11|}}}|(Too many commands supplied. Only the first 10 are displayed.)|}}{{#if:{{{output|}}}|{{{output}}}|}}</div></includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 00:25, 28 December 2016
[edit]
Documentation
Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.
As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.
Use this template to show a shell box with a command output.
Parameters
- Unnamed parameters (up to 10)
- Add commands.
- prompt (optional)
- Change the command prompt.
- color (optional)
- Change the prompt color.
- output (optional)
- Add the command's output.
Usage
See the template's testcases:
Parameter: unnamed | |
---|---|
Wiki code | {{GenericCmd|<pre>
command output
this
that
</pre>}}
|
Main version |
|
Sandbox version | command output
|
See also
Note
The above documentation is transcluded from Template:GenericCmd/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.
The above documentation is transcluded from Template:GenericCmd/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.