Jump to content

Template:Set2

Unchecked
From pool
[[Cli:{{{1}}}|{{{1}}}]]




 
Warning:  
The Set2 template does not check if the page exists where it is pulling the description, version and example from, this is because the ifexists parser function is computationally expensive and so Set2 is better suited for long pages where the template is reused many times


Show a Command with a collapsed div containing an example

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Command Name1

Command Name, will like match page name describing this command

Example
volume show
Stringrequired
Alternative Command Descriptionalt-text

Either Alternate Description of Command or an Example

Example
volume show where status = offline
Stringoptional
Sample outputexample

An example output of runing this command

Example
<pre>volume show where status = offline</pre>
Stringoptional
Pre Colorcolor

Color of Pre-formatted Example

Example
basic, black-green, blue-white, black-white, net, esx
Stringoptional
Name of page sectionSection

Name of page section where pre-formatted example is found

Example
example, example2
Stringoptional
Openopen

Shows pre-formatted example as open by default

Example
1
Booleanoptional
Inlineinline

Removes all new lines / carraige returns

Example
1
Booleanoptional
This content is in the Template Namespace. Used for page-templates that can be re-used across the wiki.