Jump to content

Template:Set: Difference between revisions

From pool
[unchecked revision][unchecked revision]
Content deleted Content added
No edit summary
m Text replacement - "|sect=" to "|section="
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:


Example Code:
Example Code:
<pre>{{Set|scsi i device undoreadyforremoval|scsi i device undoreadyforremoval <scsi device id>|sect=YourSectionName
<pre>{{Set|scsi i device undoreadyforremoval|scsi i device undoreadyforremoval <scsi device id>|section=YourSectionName
&lt;pre&gt;
&lt;pre&gt;
scsi i device undoreadyforremoval 3799799152
scsi i device undoreadyforremoval 3799799152
Line 38: Line 38:
</pre>
</pre>
}}
}}

[[Category:AutoDumpContentFromCommons]]
<templatedata>
<templatedata>
{
{
Line 49: Line 49:
"required": true
"required": true
},
},
"2": {
"alt-text": {
"label": "Alternative Command Description",
"label": "Alternative Command Description",
"description": "Either Alternate Description of Command or an Example",
"description": "Either Alternate Description of Command or an Example",
Line 55: Line 55:
"type": "string"
"type": "string"
},
},
"3": {
"example": {
"label": "Sample output",
"label": "Sample output",
"description": "An example output of runing this command",
"description": "An example output of runing this command",
"example": "&lt;pre&gt;volume show where status = offline&lt;/pre&gt;",
"example": "<pre>volume show where status = offline</pre>",
"type": "string"
"type": "string"
},
},
Line 64: Line 64:
"label": "Pre Color",
"label": "Pre Color",
"description": "Color of Pre-formatted Example",
"description": "Color of Pre-formatted Example",
"example": "black-green, blue-white, black-white, net, esx",
"example": "basic, black-green, blue-white, black-white, net, esx",
"type": "string"
"type": "string"
},
},
Line 84: Line 84:
"example": "1",
"example": "1",
"type": "boolean"
"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"
}
}
},
},

Latest revision as of 09:14, 31 March 2020

{{{1}}}
Need an Example



Example Code:

{{Set|scsi i device undoreadyforremoval|scsi i device undoreadyforremoval <scsi device id>|section=YourSectionName
<pre>
scsi i device undoreadyforremoval 3799799152
<26296 (?)>
26296 12/12/2013-18:01:04 WARNING SCSIIntr NoteError scsiDevice.cpp 18181
0 SCSIDevice=3799799152 SN=6SL6AMSY SendInquiry: No path available for delivery Disk=6,4 Down State=InqStd

26296 12/12/2013-18:01:04 WARNING LSI2SAS PCIDEV06 Run lsi2SasStMachRun.cxx 711
0 [RPORT 6 4 9 105] UndoReadyForRemoval called.

26296 12/12/2013-18:01:04 WARNING LSI2SAS PCIDEV02 Run lsi2SasStMachRun.cxx 711
0 [RPORT 5 4 3 62] UndoReadyForRemoval called.
<26296 (?)>
</pre>
}}

Example Output:

scsi i device undoreadyforremoval <scsi device id>
scsi i device undoreadyforremoval 3799799152
<26296 (?)>
26296 12/12/2013-18:01:04 WARNING SCSIIntr NoteError scsiDevice.cpp 18181
0 SCSIDevice=3799799152 SN=6SL6AMSY SendInquiry: No path available for delivery Disk=6,4 Down State=InqStd

26296 12/12/2013-18:01:04 WARNING LSI2SAS PCIDEV06 Run lsi2SasStMachRun.cxx 711
0 [RPORT 6 4 9 105] UndoReadyForRemoval called.

26296 12/12/2013-18:01:04 WARNING LSI2SAS PCIDEV02 Run lsi2SasStMachRun.cxx 711
0 [RPORT 5 4 3 62] UndoReadyForRemoval called.
<26296 (?)>



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