Difference between revisions of "Template:MicroprocessorDevice"

(Created page with "<noinclude> ==Usage== The MicroprocessorDevice template is used '''to indicate for which microprocessor device(s), an article part (chapter,...")
 
m

1 Usage[edit]

The MicroprocessorDevice template is used to indicate for which microprocessor device(s), an article part (chapter, paragraph, table...) is valid. Per default (i.e. if this template is not used), any part of an article is valid for all microprocessor devices for which the entire article is valid.

It outputs a "standardized" string that might be used to name an article part.

Usage: {{MicroprocessorDevice | device=<device> | security=<security>}}
Where:
  • <device> is the mandatory identifier (one to three digits) that specify the Series, the lines or the line.The possible values are:
    • 1: STM32MP1 Series
      • 15: STM32MP15x lines
        • 151: STM32MP151 access line
        • 153: STM32MP153 foundation line
        • 157: STM32MP157 advanced line
  • <security> is the optional identifier (one letter) that specifies the security. The possible values are:
    • A: Basic
    • C: Secure boot and cryptography

Clicking on the Info.png icon displays the article about the microprocessor device lines (e.g. STM32MP15 microprocessor).

2 Basic examples[edit]

You type You get
STM32MP1 Series
{{MicroprocessorDevice | device=1}}

STM32MP1 Series

STM32MP15x lines
{{MicroprocessorDevice | device=15}}

STM32MP15x lines More info.png

STM32MP157 line
{{MicroprocessorDevice | device=157}}

STM32MP157 line More info.png

STM32MP15x lines with basic security
{{MicroprocessorDevice | device=15 | security=A}}

STM32MP15xA lines More info.png

STM32MP157 line with secure boot and cryptography
{{MicroprocessorDevice | device=157 | security=C}}

STM32MP157C line More info.png

3 More examples[edit]

You type You get
Unspecified microprocessor device
{{MicroprocessorDevice}}

STM32MP unknown microprocessor device

Unknown Series
{{MicroprocessorDevice | device=0}}

STM32MP0 unknown microprocessor device

Unknown lines
{{MicroprocessorDevice | device=11}}

STM32MP11 unknown microprocessor device

Unknown line
{{MicroprocessorDevice | device=154}}

STM32MP154 unknown microprocessor device

Unknown line
{{MicroprocessorDevice | device=1531}}

STM32MP1531 unknown microprocessor device

Unknown security
{{MicroprocessorDevice | device=15 | security=Z}}

unknown security STM32MP15xZ lines More info.png

Unknown line and security
{{MicroprocessorDevice | device=152 | security=Z}}

unknown security STM32MP152 unknown microprocessor device

4 Code[edit]

STM32MP unknown microprocessor device

<noinclude>

==Usage==
The [[Template:MicroprocessorDevice|MicroprocessorDevice]] template is used '''to indicate for which microprocessor device(s), an article part (chapter, paragraph, table...) is valid'''. Per default (i.e. if this template is not used), any part of an article is valid for all microprocessor devices for which the entire article is valid.

It outputs a "standardized" string that might be used to name an article part.

 Usage: <nowiki>{{</nowiki>MicroprocessorDevice | device={{HighlightParam|<device>}} | security={{HighlightParam|<security>}}}}
:Where:
* {{HighlightParam|<device>}} is the '''mandatory''' identifier (one to three digits) that specify the Series, the lines or the line.The possible values are:
** '''1''': STM32MP1 Series
*** '''15''': STM32MP15x lines
**** '''151''': STM32MP151 access line
**** '''153''': STM32MP153 foundation line
**** '''157''': STM32MP157 advanced line
* {{HighlightParam|<security>}} is the '''optional''' identifier (one letter) that specifies the security. The possible values are:
** '''A''': Basic
** '''C''': Secure boot and cryptography

Clicking on the <sup>[[File:Info.png|15px|link=]]</sup> icon displays '''the article about the microprocessor device lines''' (e.g. [[STM32MP15 microprocessor]]).

==Basic examples==
{| class="st-table"
! style="width: 50%;" | You type !! You get
|-
| STM32MP1 Series<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=1}}</pre>

|
{{MicroprocessorDevice | device=1}}
|-
| STM32MP15x lines<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=15}}</pre>

|
{{MicroprocessorDevice | device=15}}
|-
| STM32MP157 line<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=157}}</pre>

|
{{MicroprocessorDevice | device=157}}
|-
| STM32MP15x lines with basic security<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=15 | security=A}}</pre>

|
{{MicroprocessorDevice | device=15 |security=A}}
|-
| STM32MP157 line with secure boot and cryptography<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=157 | security=C}}</pre>

|
{{MicroprocessorDevice | device=157 | security=C}}
|}

==More examples==
{| class="st-table"
! style="width: 50%;" | You type !! You get
|-
| Unspecified microprocessor device<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice}}</pre>

|
{{MicroprocessorDevice}}
|-
| Unknown Series<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=0}}</pre>

|
{{MicroprocessorDevice | device=0}}
|-
| Unknown lines<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=11}}</pre>

|
{{MicroprocessorDevice | device=11}}
|-
| Unknown line<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=154}}</pre>

|
{{MicroprocessorDevice | device=154}}
|-
| Unknown line<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=1531}}</pre>

|
{{MicroprocessorDevice | device=1531}}
|-
| Unknown security<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=15 | security=Z}}</pre>

|
{{MicroprocessorDevice | device=15 | security=Z}}
|-
| Unknown line and security<pre style="white-space: pre-wrap;">

{{MicroprocessorDevice | device=152 | security=Z}}</pre>

|
{{MicroprocessorDevice | device=152 | security=Z}}
|}

==Code==</noinclude>{{#vardefine:info|}}{{#switch:{{{security|none}}}
| A | C |  none =
| #default = {{Highlight|unknown security}}&nbsp;
}}{{#switch:{{{device|}}}
| 1 = {{#vardefine:dev|&nbsp;Series}}
| 15 = {{#vardefine:dev|x{{{security|}}} lines}}{{#vardefine:info|<sup>[[File:Info.png|15px|link=STM32MP{{{device}}} microprocessor]]</sup>}} 
| 151 | 153 | 157 = {{#vardefine:dev|{{{security|}}}&nbsp;line}}{{#vardefine:info|<sup>[[File:Info.png|15px|link=STM32MP{{#sub:{{{device}}}|0|2}} microprocessor]]</sup>}} 
| #default = {{#vardefine:dev|{{Highlight|&nbsp;unknown microprocessor device}}}}
}}STM32MP{{{device|}}}{{#var:dev}}{{#var:info}}
Line 17: Line 17:
 
** '''C''': Secure boot and cryptography
 
** '''C''': Secure boot and cryptography
   
Clicking on the <sup>[[File:Info.png|15px|link=]]</sup> icon displays the article about the microprocessor device lines (e.g. [[STM32MP15 microprocessor]]).
+
Clicking on the <sup>[[File:Info.png|15px|link=]]</sup> icon displays '''the article about the microprocessor device lines''' (e.g. [[STM32MP15 microprocessor]]).
   
 
==Basic examples==
 
==Basic examples==

Attachments

Discussions