Template:Set: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
No edit summary
No edit summary
Line 1:
{{#switch: {{{warning|{{#lst:Cli:{{{1}}}|warning}}}}}| Very DangerousVeryDangerous = <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>| Not DangerousNotDangerous = <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 shell noprint" style="align: left;">{{#if: {{{32|}}}|{{#ifeq:{{#len:{{{2}}}}}|0|{{{2}}}|{{{example|{{{3|{{#lst:Cli:{{{1}}}|{{{section|example}}}}}}}}}}}}}|{{{example|{{{3|{{#lst:Cli:{{{1}}}|{{{sectsection|example}}}}} }}}}}}}}</div></div>{{#if:{{{nocrinline|}}}||<br><br style="clear:both;">}}
{{#switch: open
| {{{4|}}} =
<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:Cliif:{{{12|}}}|description}} {{#ififeq:{{#lst:Clilen:{{{12}}}}}|version0|{{{1}}}|{{#ifeq:{alt-text|{#lst:Cli:{{2|{{{1}}}|version}}}}}}}}|07.0x.0y{{{alt-text||(ver. {{#lst:Cli:{2|{{{1}}}|version}} )}}|}}">'''{{{2}}}'''</span>]]<div class="mw-collapsible-content 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;">}}
| {{{3|}}} =
<div class="mw-collapsible 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}} )}}|}}">'''{{{2}}}'''</span>]]<div class="mw-collapsible-content shell" style="align: left;">{{#lst:Cli:{{{1}}}|{{{sect|example}}}}}</div></div>
| {{{2|}}} =
<div class="mw-collapsible 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}} )}}|}}">'''{{{1}}}'''</span>]]<div class="mw-collapsible-content shell" style="align: left;">{{#lst:Cli:{{{1}}}|{{{sect|example}}}}}</div></div>
| #default =
{{#ifeq: {{#sub:{{{1}}}|0|3}} | {{#sub:{{{2}}}|0|3}}
|
<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}} )}}|}}">{{#if: {{{2|}}} |'''{{{2}}}'''|'''{{{1}}}'''}}</span>]]<div class="mw-collapsible-content shell noprint" style="align: left;">{{#if: {{{3|}}}|{{{3}}}|{{#lst:Cli:{{{1}}}|{{{sect|example}}}}} }}</div></div>{{#if:{{{nocr|}}}||<br><br style="clear:both;">}}
|
<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;">}}
}}
}}
{{#switch: open
| {{{4|}}} =
<div class="mw-collapsible force-toggle-float-left" data-collapsetext="-" data-expandtext="+" style="overflow:hidden; display: inline;"><span style="color: red; display: inline;">'''{{{2}}}'''</span><div class="mw-collapsible-content shell" style="align: left;">{{{3}}}</div></div>
| {{{3|}}} =
<div class="mw-collapsible force-toggle-float-left" data-collapsetext="-" data-expandtext="+" style="overflow:hidden; display: inline;"><span style="color: red; display: inline;">'''{{{2}}}'''</span><div class="mw-collapsible-content shell" style="align: left;"><pre>Need an Example</pre></div></div>
| {{{2|}}} =
<div class="mw-collapsible force-toggle-float-left" data-collapsetext="-" data-expandtext="+" style="overflow:hidden; display: inline;"><span style="color: red; display: inline;">'''{{{1}}}'''</span><div class="mw-collapsible-content shell" style="align: left;"><pre>Need an Example</pre></div></div>
| #default =
{{#ifeq: {{#sub:{{{1}}}|0|3}} | {{#sub:{{{2}}}|0|3}}
|
<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;">}}
|
<div class="mw-collapsible mw-collapsed force-toggle-float-left" data-collapsetext="-" data-expandtext="+" style="display: inline;"><span style="color: red; display: inline;">'''{{{1}}}'''</span><div class="mw-collapsible-content shell noprint" style="align: left;">{{#if: {{{2|}}} |{{{2}}}|<pre>Need an Example</pre> }}</div></div>{{#if:{{{nocr|}}}||<br><br style="clear:both;">}}}}}}}}
<noinclude>
Example Code: