Last edited 2 days ago

ApplicableFor

1. Usage[edit source]

The ApplicableFor template is used to indicate for which microprocessor device(s) a page is applicable.
This template is called by the ApplicableFor form.
This template calls the ApplicableFor/CategoryAssignment template to format the applicability infobox.

Usage: {{ApplicableFor | MPUs list=<MPUs list> | MPUs checklist =<MPUs checklist>}}

Where:

  • <MPUs list> is the mandatory list of microprocessor devices (separated by commas) for which the page is applicable. The possible values for this parameter are listed in the below table. They are also the allowed values for the Has applicability specified for property. The page is automatically added to the transversal categories associated to the microprocessor devices of the list (for example, Category:STM32MP15x).
  • <MPUs checklist> is the mandatory list of microprocessor devices (separated by commas) for which the page's applicability has been checked. This parameter allows to control that the applicability of the page has been checked when a new microprocessor device is supported in this wiki. The possible values for this parameter are the allowed values for the Has applicability specified for property.
<MPUs list> The page is applicable for the The page is added in the
STM32MP13x STM32P13x lines STM32MP13x category
STM32MP15x STM32P15x lines STM32MP15x category
STM32MP21x STM32P21x lines STM32MP21x category
STM32MP23x STM32P23x lines STM32MP23x category
STM32MP25x STM32P25x lines STM32MP25x category

The returned value is an editable infobox that contains links to the transversal categories associated to the microprocessor devices for which the page is applicable.

2. Basic examples[edit source]

You type You get
Applicability set and checked for one MPU
{{ApplicableFor | MPUs list=STM32MP13x | MPUs checklist=STM32MP13x}}<br>
{{ApplicableFor | MPUs list=STM32MP15x | MPUs checklist=STM32MP15x}}<br>
{{ApplicableFor | MPUs list=STM32MP21x | MPUs checklist=STM32MP21x}}<br>
{{ApplicableFor | MPUs list=STM32MP23x | MPUs checklist=STM32MP23x}}<br>
{{ApplicableFor | MPUs list=STM32MP25x | MPUs checklist=STM32MP25x}}
Applicable for STM32MP13x lines


Applicable for STM32MP15x lines


STM32MP21:

Applicable for STM32MP21x lines


Applicable for STM32MP23x lines


Applicable for STM32MP25x lines

Applicability set and checked for several MPUs
{{ApplicableFor | MPUs list=STM32MP13x, STM32MP15x, STM32MP21x, STM32MP23x, STM32MP25x| MPUs checklist=, STM32MP21x, STM32MP23x, STM32MP25x}}<br>
{{ApplicableFor | MPUs list=STM32MP13x, STM32MP15x, STM32MP25x | MPUs checklist=STM32MP13x, STM32MP15x, STM32MP25x}}<br>
{{ApplicableFor | MPUs list=STM32MP13x | MPUs checklist=STM32MP13x, STM32MP15x, STM32MP25x}}<br>
{{ApplicableFor | MPUs list=STM32MP15x | MPUs checklist=STM32MP13x, STM32MP15x, STM32MP25x}}<br>
{{ApplicableFor | MPUs list=STM32MP25x | MPUs checklist=STM32MP13x, STM32MP15x, STM32MP25x}}<br>
{{ApplicableFor | MPUs list=STM32MP13x, STM32MP15x | MPUs checklist=STM32MP13x, STM32MP15x}}<br>
{{ApplicableFor | MPUs list=STM32MP15x, STM32MP25x | MPUs checklist=STM32MP15x, STM32MP25x}}<br>
{{ApplicableFor | MPUs list=STM32MP13x, STM32MP25x | MPUs checklist=STM32MP13x, STM32MP25x}}
Applicable for STM32MP13x lines, STM32MP15x lines, STM32MP21x lines, STM32MP23x lines, STM32MP25x lines


Applicable for STM32MP13x lines, STM32MP15x lines, STM32MP25x lines


Applicable for STM32MP13x lines


Applicable for STM32MP15x lines


Applicable for STM32MP25x lines


Applicable for STM32MP13x lines, STM32MP15x lines


Applicable for STM32MP15x lines, STM32MP25x lines


Applicable for STM32MP13x lines, STM32MP25x lines

3. More examples[edit source]

You type You get
Unknown MPU(s) in <MPUs list>
{{ApplicableFor | MPUs list=STM32MP0x | MPUs checklist=STM32MP13x, STM32MP15x}}<br>
{{ApplicableFor | MPUs list=STM32MP13x, STM32MP0x, STM32MP15x | MPUs checklist=STM32MP13x, STM32MP15x}}<br>
{{ApplicableFor | MPUs list=STM32MP13x, STM32MP0x, STM32MP1x | MPUs checklist=STM32MP13x, STM32MP15x}}
Applicable for Unknown MPU


Applicable for STM32MP13x lines, Unknown MPU, STM32MP15x lines


Applicable for STM32MP13x lines, Unknown MPU, Unknown MPU

Unknown MPU(s) in <MPUs checked list>
{{ApplicableFor | MPUs list=STM32MP13x | MPUs checklist=STM32MP0x}}<br>
{{ApplicableFor | MPUs list=STM32MP13x | MPUs checklist=STM32MP13x, STM32MP0x, STM32MP15x}}<br>
{{ApplicableFor | MPUs list=STM32MP13x | MPUs checklist=STM32MP13x, STM32MP0x, STM32MP1x}}
Applicable for STM32MP13x lines
"STM32MP0x" is not in the list (STM32MP13x, STM32MP15x, STM32MP21x, STM32MP23x, STM32MP25x) of allowed values for the "Has applicability specified for" property.

Applicable for STM32MP13x lines
"STM32MP0x" is not in the list (STM32MP13x, STM32MP15x, STM32MP21x, STM32MP23x, STM32MP25x) of allowed values for the "Has applicability specified for" property.

Applicable for STM32MP13x lines
<ul><li>"STM32MP0x" is not in the list (STM32MP13x, STM32MP15x, STM32MP21x, STM32MP23x, STM32MP25x) of allowed values for the "Has applicability specified for" property.</li> <!--br--><li>"STM32MP1x" is not in the list (STM32MP13x, STM32MP15x, STM32MP21x, STM32MP23x, STM32MP25x) of allowed values for the "Has applicability specified for" property.</li></ul>
Unspecified <MPUs list>
{{ApplicableFor}}<br>
{{ApplicableFor | MPUs checklist=STM32MP13x}}<br>
{{ApplicableFor | MPUs list= | MPUs checklist=STM32MP13x}}
Applicable for Unspecified MPUs list
Unspecified MPUs checklist

Applicable for Unspecified MPUs list


Applicable for Unspecified MPUs list

Unspecified <MPUs checked list>
{{ApplicableFor | MPUs list=STM32MP13x}}<br>
{{ApplicableFor | MPUs list=STM32MP13x | MPUs checklist=}}
Applicable for STM32MP13x lines
Unspecified MPUs checklist

Applicable for STM32MP13x lines
Unspecified MPUs checklist
Check the spaces before and after the infobox
BEFORE{{ApplicableFor | MPUs list=STM32MP13x | MPUs checklist=STM32MP13x}}AFTER<br>
BEFORE{{ApplicableFor | MPUs list=STM32MP1x | MPUs checklist=STM32MP13x}}AFTER

BEFORE

Applicable for STM32MP13x lines

AFTER

BEFORE

Applicable for Unknown MPU

AFTER


4. Code[edit source]

Applicable for Unspecified MPUs list

Unspecified MPUs checklist