Template:Get: Difference between revisions
| [unchecked revision] | [unchecked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) No edit summary |
||
| (8 intermediate revisions by the same user not shown) | |||
Line 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: blue; 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|
|
<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: blue; display: inline;">'''{{{alt-text|{{{2|{{{1}}}}}}}}}'''</span><div class="mw-collapsible-content {{{color|
}}<noinclude>
Line 122:
</pre>}}
|}
{{Caution|In order to format commands like the example below, with no additional line breaks, it is necessary to enclose the commands in a table or div, this page is a good example [[compiki:common commands]]}}
Line 128 ⟶ 132:
|-
|
<pre>{{Get|command show|command one|<pre>command one sample code</pre>|inline=1}}<br></pre><br>
<pre>{{Get|command show|command one|<pre>command two sample code</pre>|inline=1}}<br></pre><br>
<pre>{{Get|command show|command one|<pre>command three sample code</pre>|inline=1}}<br></pre><br>
|-
|
Line 148 ⟶ 152:
|-
|{{Get|Command show|open=1|color=basic}}
|}
{| class="wikitable"
|Open=1 using syntaxhighlight and recoloring:
|-
|<pre>{{Get|Command show|open=1|color=blue-white|example=
<syntaxhighlight lang="text" highlight="4">
cli> dns show
# | id | addresses
----+------+-------------
1 | DNS1 | 10.24.27.42
| | 10.24.27.41
</syntaxhighlight>}}</pre>
|-
|{{Get|Command show|color=blue-white|open=1|example=
<syntaxhighlight lang="text" highlight="4">
cli> dns show
# | id | addresses
----+------+-------------
1 | DNS1 | 10.24.27.42
| | 10.24.27.41
cli>
</syntaxhighlight>}}
|}
| |||