Template:Set: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
No edit summary
m Text replacement - "|sect=" to "|section="
 
(4 intermediate revisions by the same user not shown)
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>}}
{{#ifexist:Cli:{{{1}}}|
<div class="mw-collapsible {{#if:{{{open|}}}||mw-collapsed}} {{#if:{{{color|}}}|{{{color}}}}} 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}} )}}|}}">'''{{#if:{{{2|}}}|{{#ifeq:{{#len:{{{2}}}}}|0|{{{1}}}|{{{alt-text|{{{2|{{{1}}}}}}}}}}}|{{{alt-text|{{{2|{{{1}}}}}}}}}}}'''</span>]]<div class="mw-collapsible-content {{{color|shell}}}" style="align: left;">{{#if:{{{2|}}}|{{#ifeq:{{#len:{{{2}}}}}|0|{{{2}}}|{{{example|{{{3|{{#lst:Cli:{{{1}}}|{{{section|example}}}}}}}}}}}}}|{{{example|{{{3|{{#lst:Cli:{{{1}}}|{{{section|example}}}}}}}}}}}}}</div></div>{{#if:{{{inline|}}}||<br><br style="clear:both;">}}
|
<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;">'''{{#if:{{{2|}}}|{{#ifeq:{{#len:{{{2}}}}}|0|{{{1}}}|{{{alt-text|{{{2|{{{1}}}}}}}}}}}|{{{alt-text|{{{2|{{{1}}}}}}}}}}}'''</span><div class="mw-collapsible-content {{{color|shell}}}" style="align: left;">{{#if:{{{2|}}}|{{#ifeq:{{#len:{{{2}}}}}|0|{{{2}}}|{{{example|{{{3|<pre>Need an Example</pre>}}}}}}}}}}</div></div>{{#if:{{{inline|}}}||<br><br style="clear:both;">}}
}}<noinclude>
}}
 
<noinclude>
Example Code:
<pre>{{Set|scsi i device undoreadyforremoval|scsi i device undoreadyforremoval <scsi device id>|sectsection=YourSectionName
&lt;pre&gt;
scsi i device undoreadyforremoval 3799799152
Line 38:
</pre>
}}
 
[[Category:AutoDumpContentFromCommons]]
<templatedata>
{
Line 49:
"required": true
},
"2alt-text": {
"label": "Alternative Command Description",
"description": "Either Alternate Description of Command or an Example",
Line 55:
"type": "string"
},
"3example": {
"label": "Sample output",
"description": "An example output of runing this command",
"example": "&lt;<pre&gt;>volume show where status = offline&lt;</pre&gt;>",
"type": "string"
},
Line 64:
"label": "Pre Color",
"description": "Color of Pre-formatted Example",
"example": "basic, black-green, blue-white, black-white, net, esx",
"type": "string"
},
Line 84:
"example": "1",
"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"
}
},