Difference between revisions of "Template:U-Boot$"

[quality revision] [quality revision]
m
m
 

1 Usage[edit]

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.

Usage:  {{U-Boot$}}

2 Basic examples[edit]

You type You get
bdinfo help env command executed on the U-Boot console
{{U-Boot$}} bdinfo

bdinfo
3
help env<br>
env - environment handling commands

help env
env - environment handling commands

3 More examples[edit]

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

 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

{{Info |
Message before the command
 {{U-Boot$}} help env
 env - environment handling commands
Message after the command
}}

Info white.png Information

Message before the command

 help env
env - environment handling commands

Message after the command

Template used within another protected message box template

{{InternalInfo |
Message before the command
 {{U-Boot$}} help env
 env - environment handling commands
Message after the command
}}

4 Maintenance[edit]

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]

STM32MP>

<noinclude>

==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'''.

<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$}}

==Basic examples==
{| class="st-table"
! You type !! You get
|-
| <code>bdinfohelp env</code> command executed on the U-Boot console<pre style="white-space: pre-wrap;">

{{U-Boot$}} bdinfo</pre>

|
{{U-Boot$}} bdinfo
|}

==Code==</noinclude>'''STM32MP>'''help env<br>

env - environment handling commands</pre>

|
{{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==</noinclude><span class{{=}}"u-boot-prompt"></span>
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>bdinfo</code> command executed on the U-Boot console
+
| <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$}} bdinfo
+
{{U-Boot$}} help env<br>
  +
env - environment handling commands
 
</pre>
 
</pre>
 
|
 
|
{{U-Boot$}} bdinfo
+
{{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>'''STM32MP>'''
+
</noinclude><span class{{=}}"u-boot-prompt"></span>