Registered User mNo edit summary |
Registered User (Merge articles) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
==Usage== | ==Usage== | ||
The [[Template:U-Boot$|U-Boot$]] template is used '''to prefix a command that must be executed on the U-Boot console, with a U-Boot-specific prompt'''. | The [[Template:U-Boot$|U-Boot$]] template is used '''to prefix a command that must be executed on the U-Boot console, with a U-Boot-specific prompt'''.<br> | ||
Thanks to the <code>u-boot-prompt</code> class defined in [[MediaWiki:Common.css]], a double (or triple) click to select the command doesn't select the prompt. | |||
Usage: <nowiki>{{</nowiki>U-Boot$}} | Usage: <nowiki>{{</nowiki>U-Boot$}} | ||
Line 9: | Line 10: | ||
! You type !! You get | ! You type !! You get | ||
|- | |- | ||
| <code> | | <code>help env</code> command executed on the U-Boot console | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
{{U-Boot$}} | {{U-Boot$}} help env<br> | ||
env - environment handling commands | |||
</pre> | </pre> | ||
| | | | ||
{{U-Boot$}} | {{U-Boot$}} help env<br> | ||
env - environment handling commands | |||
|} | |} | ||
==More examples== | |||
{| class="st-table" | |||
! You type !! You get | |||
|- | |||
| 2 commands executed on the U-Boot console and preformatted text block (space at the beginning of each line) | |||
<pre style="white-space: pre-wrap;"> | |||
{{U-Boot$}} help env | |||
env - environment handling commands | |||
{{U-Boot$}} env default -a | |||
</pre> | |||
| | |||
{{U-Boot$}} help env | |||
env - environment handling commands | |||
{{U-Boot$}} env default -a | |||
|- | |||
| Command executed on the U-Boot console and preformatted text block (space at the beginning of each line) | |||
<pre style="white-space: pre-wrap;"> | |||
{{U-Boot$}} help env | |||
env - environment handling commands | |||
</pre> | |||
| | |||
{{U-Boot$}} help env | |||
env - environment handling commands | |||
|- | |||
| Long command executed on the U-Boot console and preformatted text block (space at the beginning of each line) | |||
<pre style="white-space: pre-wrap;"> | |||
{{U-Boot$}} this is a so long command executed on the U-Boot console that a horizontal scrolling bar is needed | |||
</pre> | |||
| style="max-width:30em;" | | |||
{{U-Boot$}} this is a so long command executed on the U-Boot console that a horizontal scrolling bar is needed | |||
|- | |||
| Template used within another public message box template | |||
<pre style="white-space: pre-wrap;"> | |||
{{Info | | |||
Message before the command | |||
{{U-Boot$}} help env | |||
env - environment handling commands | |||
Message after the command | |||
}} | |||
</pre> | |||
| | |||
{{Info | | |||
Message before the command | |||
{{U-Boot$}} help env | |||
env - environment handling commands | |||
Message after the command | |||
}} | |||
|- | |||
| Template used within another protected message box template | |||
<pre style="white-space: pre-wrap;"> | |||
{{InternalInfo | | |||
Message before the command | |||
{{U-Boot$}} help env | |||
env - environment handling commands | |||
Message after the command | |||
}} | |||
</pre> | |||
| | |||
{{InternalInfo | | |||
Message before the command | |||
{{U-Boot$}} help env | |||
env - environment handling commands | |||
Message after the command | |||
}} | |||
|} | |||
==Maintenance== | |||
This template is a template common to all ST wikis. <br> | |||
Modifications must be done into the [[stwikimodel:Template:U-Boot$|WikiModel]]. They must be reviewed by all ST wikis maintainers.<br> | |||
When approved, the template can be pushed/merged towards all ST wikis. | |||
==Code== | ==Code== | ||
</noinclude> | </noinclude><span class{{=}}"u-boot-prompt"></span> |
Latest revision as of 16:24, 4 October 2022
1. Usage[edit source]
The U-Boot$ template is used to prefix a command that must be executed on the U-Boot console, with a U-Boot-specific prompt.
Thanks to the u-boot-prompt
class defined in MediaWiki:Common.css, a double (or triple) click to select the command doesn't select the prompt.
U-Boot$}}Usage: {{
2. Basic examples[edit source]
You type | You get |
---|---|
help env command executed on the U-Boot console
U-Boot$}} help env<br> env - environment handling commands{{ |
help env |
3. More examples[edit source]
You type | You get |
---|---|
2 commands executed on the U-Boot console and preformatted text block (space at the beginning of each line)
U-Boot$}} help env env - environment handling commands {{U-Boot$}} env default -a{{ |
help env
env - environment handling commands
env default -a
|
Command executed on the U-Boot console and preformatted text block (space at the beginning of each line)
U-Boot$}} help env env - environment handling commands{{ |
help env
env - environment handling commands
|
Long command executed on the U-Boot console and preformatted text block (space at the beginning of each line)
U-Boot$}} this is a so long command executed on the U-Boot console that a horizontal scrolling bar is needed{{ |
U-Boot console that a horizontal scrolling bar is neededthis is a so long command executed on the |
Template used within another public message box template
U-Boot$}} help env env - environment handling commands Message after the command }}{{Info | Message before the command {{ |
|
Template used within another protected message box template
U-Boot$}} help env env - environment handling commands Message after the command }}{{InternalInfo | Message before the command {{ |
4. Maintenance[edit source]
This template is a template common to all ST wikis.
Modifications must be done into the WikiModel. They must be reviewed by all ST wikis maintainers.
When approved, the template can be pushed/merged towards all ST wikis.
5. Code[edit source]