Template:Set: Difference between revisions
| [unchecked revision] | [unchecked revision] |
Content deleted Content added
m 1 revision imported |
Caleb Cooper (talk | contribs) m Text replacement - "|sect=" to "|section=" |
||
| (9 intermediate revisions by 2 users not shown) | |||
Line 1:
{{#switch: {{{warning|{{#lst:Cli:{{{1}}}|warning}}}}}|
{{#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}} )}}|}}">'''{{{alt-text|{{{2|{{{1}}}}}}}}}'''</span>]]<div class="mw-collapsible-content {{{color|shell
▲<div class="mw-collapsible mw-collapsed force-toggle-float-left" data-collapsetext="-" data-expandtext="+" style="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}} )}}|}}">'''{{{1}}}'''</span>]]<div class="mw-collapsible-content shell noprint" style="align: left;">{{#if: {{{2|}}} |{{{2}}}|{{#lst:Cli:{{{1}}}|{{{sect|example}}}}} }}</div></div>{{#if:{{{nocr|}}}||<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;">'''{{
▲<div class="mw-collapsible mw-collapsed force-toggle-float-left" data-collapsetext="-" data-expandtext="+" style="display: inline;"><span style="color: red; display: inline;">{{#if: {{{2|}}} |'''{{{2}}}'''|'''{{{1}}}'''}}</span><div class="mw-collapsible-content shell noprint" style="align: left;">{{#if: {{{3|}}}|{{{3}}}|<pre>Need an Example</pre> }}</div></div>{{#if:{{{nocr|}}}||<br><br style="clear:both;">}}
Example Code:
<pre>{{Set|scsi i device undoreadyforremoval|scsi i device undoreadyforremoval <scsi device id>|
<pre>
scsi i device undoreadyforremoval 3799799152
Line 61 ⟶ 37:
<26296 (?)>
</pre>
▲}}
▲}}</noinclude>
<templatedata>
{
"params": {
"1": {
"label": "Command Name",
"description": "Command Name, will like match page name describing this command",
"example": "volume show",
"type": "string",
"required": true
},
"alt-text": {
"label": "Alternative Command Description",
"description": "Either Alternate Description of Command or an Example",
"example": "volume show where status = offline",
"type": "string"
},
"example": {
"label": "Sample output",
"description": "An example output of runing this command",
"example": "<pre>volume show where status = offline</pre>",
"type": "string"
},
"color": {
"label": "Pre Color",
"description": "Color of Pre-formatted Example",
"example": "basic, black-green, blue-white, black-white, net, esx",
"type": "string"
},
"Section": {
"label": "Name of page section",
"description": "Name of page section where pre-formatted example is found",
"example": "example, example2",
"type": "string"
},
"open": {
"label": "Open",
"description": "Shows pre-formatted example as open by default",
"example": "1",
"type": "boolean"
},
"inline": {
"label": "Inline",
"description": "Removes all new lines / carraige returns",
"example": "1",
"type": "boolean"
}
},
"description": "Show a Command with a collapsed div containing an example",
"format": "inline"
</templatedata>[[Category:AutoDumpContentFromCommons]]</noinclude>
| |||