Approved version. Approved on: 09:22, 7 September 2020
You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "Template:HighlightParam"
[quality revision] | [quality revision] |
m
|
(Merge articles)
|
Contents
1 Usage[edit]
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 corporate 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
2 Basic examples[edit]
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:
echo <loglevel> > /proc/sys/kernel/printk
|
3 More examples[edit]
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:
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:
echo <loglevel> > /proc/sys/kernel/printk
|
4 Code[edit]
{{{1}}}
<noinclude> ==Usage== The [[Template:HighlightParam|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 brandcorporate color <span style="color: {{STLightGreen}};">shade of light green (█)</span>, and in <span style="font-weight: bold;">bold</span>. Usage: <nowiki>{{</nowiki>HighlightParam|{{HighlightParam|<parameter, value or option to highlight>}}}} :Where {{HighlightParam|<parameter, value or option to highlight>}} is the parameter, value or option to highlight ==Basic examples== {| class="st-table" ! You type !! You get |- | Highlighting parameter, value or option<pre style="white-space: pre-wrap;"> To change the current console {{HighlightParam|<loglevel>}}, simply write to this file: {{Board$}} echo {{HighlightParam|<loglevel>}} > /proc/sys/kernel/printk</pre> | To change the current console {{HighlightParam|<loglevel>}}, simply write to this file: {{Board$}} echo {{HighlightParam|<loglevel>}} > /proc/sys/kernel/printk |} ==More examples== {| class="st-table" ! 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<pre style="white-space: pre-wrap;"> To change the current console {{HighlightParam|'''<loglevel>'''}}, simply write to this file: {{Board$}} echo '''{{HighlightParam|<loglevel>}}''' > /proc/sys/kernel/printk</pre> | To change the current console {{HighlightParam|'''<loglevel>'''}}, simply write to this file: {{Board$}} echo '''{{HighlightParam|<loglevel>}}''' > /proc/sys/kernel/printk |- | The parameter of the template is formatted in italic: the parameter is then in bold and italic<pre style="white-space: pre-wrap;"> To change the current console {{HighlightParam|''<loglevel>''}}, simply write to this file: {{Board$}} echo ''{{HighlightParam|<loglevel>}}'' > /proc/sys/kernel/printk</pre> | To change the current console {{HighlightParam|''<loglevel>''}}, simply write to this file: {{Board$}} echo ''{{HighlightParam|<loglevel>}}'' > /proc/sys/kernel/printk |} ==Code==</noinclude><span style="color: #BBCC00#49B170; font-weight: bold;">{{{1}}}</span>
Line 1: | Line 1: | ||
<noinclude> |
<noinclude> |
||
==Usage== |
==Usage== |
||
− | The [[Template:HighlightParam|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 |
+ | The [[Template:HighlightParam|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 corporate color <span style="color: {{STLightGreen}};">shade of light green (█)</span>, and in <span style="font-weight: bold;">bold</span>. |
Usage: <nowiki>{{</nowiki>HighlightParam|{{HighlightParam|<parameter, value or option to highlight>}}}} |
Usage: <nowiki>{{</nowiki>HighlightParam|{{HighlightParam|<parameter, value or option to highlight>}}}} |
||
Line 44: | Line 44: | ||
==Code== |
==Code== |
||
− | </noinclude><span style="color: # |
+ | </noinclude><span style="color: #49B170; font-weight: bold;">{{{1}}}</span> |