Template:Set: Difference between revisions
Appearance
| [unchecked revision] | [unchecked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) m Text replacement - "|sect=" to "|section=" |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#switch: {{{warning|{{#lst:Cli:{{{1}}}|warning}}}}}| VeryDangerous = <div style="float:left" title="IMPORTANT:This set command can cause Data Unavailable or Data Loss if used incorrectly, CSE only!">[[File:Skull_sm_40.png]]</div>| NotDangerous = <div style="float:left" title="Careful Now!">[[File:One_Pixel.png]]</div>| #default = <div style="float:left" title="IMPORTANT:No set command should ever be run without Senior Engineer verification!">[[File:Warn_sm_20.png]]</div>}} |
{{#switch: {{{warning|{{#lst:Cli:{{{1}}}|warning}}}}}| VeryDangerous = <div style="float:left" title="IMPORTANT:This set command can cause Data Unavailable or Data Loss if used incorrectly, CSE only!">[[File:Skull_sm_40.png]]</div>| NotDangerous = <div style="float:left" title="Careful Now!">[[File:One_Pixel.png]]</div>| #default = <div style="float:left" title="IMPORTANT:No set command should ever be run without Senior Engineer verification!">[[File:Warn_sm_20.png]]</div>}} |
||
{{#ifexist:Cli:{{{1}}}| |
{{#ifexist:Cli:{{{1}}}| |
||
<div class="mw-collapsible {{#if:{{{open|}}}||mw-collapsed}} force-toggle-float-left" data-collapsetext="-" data-expandtext="+" style="overflow:hidden; display: inline;">[[Cli:{{{1}}}|<span style="color: red; display: inline;" title="{{#lst:Cli:{{{1}}}|description}} {{#if:{{#lst:Cli:{{{1}}}|version}}|{{#ifeq:{{#lst:Cli:{{{1}}}|version}}|07.0x.0y||(ver. {{#lst:Cli:{{{1}}}|version}} )}}|}}">''' |
<div class="mw-collapsible {{#if:{{{open|}}}||mw-collapsed}} force-toggle-float-left" data-collapsetext="-" data-expandtext="+" style="overflow:hidden; display: inline;">[[Cli:{{{1}}}|<span style="color: red; display: inline;" title="{{#lst:Cli:{{{1}}}|description}} {{#if:{{#lst:Cli:{{{1}}}|version}}|{{#ifeq:{{#lst:Cli:{{{1}}}|version}}|07.0x.0y||(ver. {{#lst:Cli:{{{1}}}|version}} )}}|}}">'''{{{alt-text|{{{2|{{{1}}}}}}}}}'''</span>]]<div class="mw-collapsible-content {{{color|shell}}}" style="align: left;">{{{example|{{{3|{{#lst:Cli:{{{1}}}|{{{section|example}}}}}}}}}}}</div></div>{{#if:{{{inline|}}}||<br><br style="clear:both;">}} |
||
| |
| |
||
<div class="mw-collapsible {{#if:{{{open|}}}||mw-collapsed}} force-toggle-float-left" data-collapsetext="-" data-expandtext="+" style="overflow:hidden; display: inline;"><span style="color: red; display: inline;">''' |
<div class="mw-collapsible {{#if:{{{open|}}}||mw-collapsed}} {{#if:{{{color|}}}|{{{color}}}}} force-toggle-float-left" data-collapsetext="-" data-expandtext="+" style="overflow:hidden; display: inline;"><span style="color: red; display: inline;">'''{{{alt-text|{{{2|{{{1}}}}}}}}}'''</span><div class="mw-collapsible-content {{{color|shell}}}" style="align: left;">{{{example|{{{3|<pre>Need an Example</pre>}}}}}}</div></div>{{#if:{{{inline|}}}||<br><br style="clear:both;">}} |
||
}}<noinclude> |
}}<noinclude> |
||
Example Code: |
Example Code: |
||
<pre>{{Set|scsi i device undoreadyforremoval|scsi i device undoreadyforremoval <scsi device id>| |
<pre>{{Set|scsi i device undoreadyforremoval|scsi i device undoreadyforremoval <scsi device id>|section=YourSectionName |
||
<pre> |
<pre> |
||
scsi i device undoreadyforremoval 3799799152 |
scsi i device undoreadyforremoval 3799799152 |
||
| Line 38: | Line 38: | ||
</pre> |
</pre> |
||
}} |
}} |
||
[[Category:AutoDumpContentFromCommons]] |
|||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
| Line 49: | Line 49: | ||
"required": true |
"required": true |
||
}, |
}, |
||
" |
"alt-text": { |
||
"label": "Alternative Command Description", |
"label": "Alternative Command Description", |
||
"description": "Either Alternate Description of Command or an Example", |
"description": "Either Alternate Description of Command or an Example", |
||
| Line 55: | Line 55: | ||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
" |
"example": { |
||
"label": "Sample output", |
"label": "Sample output", |
||
"description": "An example output of runing this command", |
"description": "An example output of runing this command", |
||
"example": " |
"example": "<pre>volume show where status = offline</pre>", |
||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
| Line 64: | Line 64: | ||
"label": "Pre Color", |
"label": "Pre Color", |
||
"description": "Color of Pre-formatted Example", |
"description": "Color of Pre-formatted Example", |
||
"example": "black-green, blue-white, black-white, net, esx", |
"example": "basic, black-green, blue-white, black-white, net, esx", |
||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
| Line 84: | Line 84: | ||
"example": "1", |
"example": "1", |
||
"type": "boolean" |
"type": "boolean" |
||
}, |
|||
"example": { |
|||
"label": "Sample output", |
|||
"description": "An example output of runing this command", |
|||
"example": "<pre>volume show where status = offline</pre>", |
|||
"type": "string" |
|||
}, |
|||
"alt-text": { |
|||
"label": "Alternative Command Description", |
|||
"description": "Either Alternate Description of Command or an Example", |
|||
"example": "volume show where status = offline", |
|||
"type": "string" |
|||
} |
} |
||
}, |
}, |
||
Latest revision as of 09:14, 31 March 2020
Example Code:
{{Set|scsi i device undoreadyforremoval|scsi i device undoreadyforremoval <scsi device id>|section=YourSectionName
<pre>
scsi i device undoreadyforremoval 3799799152
<26296 (?)>
26296 12/12/2013-18:01:04 WARNING SCSIIntr NoteError scsiDevice.cpp 18181
0 SCSIDevice=3799799152 SN=6SL6AMSY SendInquiry: No path available for delivery Disk=6,4 Down State=InqStd
26296 12/12/2013-18:01:04 WARNING LSI2SAS PCIDEV06 Run lsi2SasStMachRun.cxx 711
0 [RPORT 6 4 9 105] UndoReadyForRemoval called.
26296 12/12/2013-18:01:04 WARNING LSI2SAS PCIDEV02 Run lsi2SasStMachRun.cxx 711
0 [RPORT 5 4 3 62] UndoReadyForRemoval called.
<26296 (?)>
</pre>
}}
Example Output:
Show a Command with a collapsed div containing an example
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Command Name | 1 | Command Name, will like match page name describing this command
| String | required |
| Alternative Command Description | alt-text | Either Alternate Description of Command or an Example
| String | optional |
| Sample output | example | An example output of runing this command
| String | optional |
| Pre Color | color | Color of Pre-formatted Example
| String | optional |
| Name of page section | Section | Name of page section where pre-formatted example is found
| String | optional |
| Open | open | Shows pre-formatted example as open by default
| Boolean | optional |
| Inline | inline | Removes all new lines / carraige returns
| Boolean | optional |