模板:HighlightParam
来自百问网嵌入式Linux wiki
Usage
The HighlightParam template is used to highlight parameters, values or options that must be set, for example in commands, in pages. It formats the text with the STMicroelectronics brand color shade of light green (█), and in bold.
Usage: {{HighlightParam|<parameter, value or option to highlight>}}
- Where <parameter, value or option to highlight> is the parameter, value or option to highlight
Basic examples
You type | You get |
---|---|
Highlighting parameter, value or option
To change the current console {{HighlightParam|<loglevel>}}, simply write to this file: {{Board$}} echo {{HighlightParam|<loglevel>}} > /proc/sys/kernel/printk |
To change the current console <loglevel>, simply write to this file: Board $> echo <loglevel> > /proc/sys/kernel/printk
|
More examples
You type | You get |
---|---|
The parameter of the template is formatted in bold: it is useless because the template already formats in bold, but it keeps the parameter in bold
To change the current console {{HighlightParam|'''<loglevel>'''}}, simply write to this file: {{Board$}} echo '''{{HighlightParam|<loglevel>}}''' > /proc/sys/kernel/printk |
To change the current console <loglevel>, simply write to this file: Board $> echo <loglevel> > /proc/sys/kernel/printk
|
The parameter of the template is formatted in italic: the parameter is then in bold and italic
To change the current console {{HighlightParam|''<loglevel>''}}, simply write to this file: {{Board$}} echo ''{{HighlightParam|<loglevel>}}'' > /proc/sys/kernel/printk |
To change the current console <loglevel>, simply write to this file: Board $> echo <loglevel> > /proc/sys/kernel/printk
|
Code
{{{1}}}