Board

Revision as of 15:43, 11 September 2019 by Registered User (Created page with "<noinclude> ==Usage== The Board template is used '''to indicate for which board(s), an article part (chapter, paragraph, table...) is valid'''. Per default...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

1. Usage

The Board template is used to indicate for which board(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 boards for which the entire article is valid.

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

Usage: {{Board | type=<type>}}
Where:
  • <type> is the mandatory identifier of the board type. The possible values are:
    • 157A-EV1: STM32MP157A-EV1 Evaluation board
    • 157C-EV1: STM32MP157C-EV1 Evaluation board
    • 157x-EV1: any of the previous two
    • 157A-DK1: STM32MP157A-DK1 Discovery kit
    • 157C-DK2: STM32MP157C-DK2 Discovery kit
    • 157x-DKx: any of the previous two

Clicking on the File:Info.png icon displays the article about the board (e.g. STM32MP157X-DKX - hardware description).

2. Basic examples

You type You get
STM32MP157C-EV1 Evaluation board
{{Board | type=157C-EV1}}

STM32MP157C-EV1 Evaluation boardFile:Info.png

STM32MP157C-DK2 Discovery kit
{{Board | type=157C-DK2}}

STM32MP157C-DK2 Discovery kitFile:Info.png

3. More examples

You type You get
Unspecified board
{{Board}}

STM32MP unknown board type identifier

Unknown board
{{Board | type=153C-EV1}}

STM32MP153C-EV1 unknown board type identifier

Unknown lines
{{Board | type=157C-DK3}}

STM32MP157C-DK3 unknown board type identifier

{{#vardefine:info|}}{{#switch:{{{security|none}}}
| A | C |  none =
| #default = {{Highlight|unknown security identifier}} 
}}{{#switch:{{{device|}}}
| 1 = {{#vardefine:dev| 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|}}} line}}{{#vardefine:info|<sup>[[File:Info.png|15px|link=STM32MP{{#sub:{{{device}}}|0|2}} microprocessor]]</sup>}} 
| #default = {{#vardefine:dev|{{Highlight| unknown microprocessor device identifier}}}}
}}STM32MP{{{device|}}}{{#var:dev}}{{#var:info}}

4. Code

STM32MP unknown board type identifier