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 |
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=STM32MP25x | MPUs checklist=STM32MP25x}} |
|
Applicability set and checked for several MPUs
{{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}} |
|
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}} |
|
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}} |
"STM32MP0x" is not in the list (STM32MP13x, STM32MP15x, STM32MP25x) of allowed values for the "Has applicability specified for" property.
"STM32MP0x" is not in the list (STM32MP13x, STM32MP15x, STM32MP25x) of allowed values for the "Has applicability specified for" property. <ul><li>"STM32MP0x" is not in the list (STM32MP13x, STM32MP15x, STM32MP25x) of allowed values for the "Has applicability specified for" property.</li> <!--br--><li>"STM32MP1x" is not in the list (STM32MP13x, STM32MP15x, 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}} |
Unspecified MPUs checklist
|
Unspecified <MPUs checked list>
{{ApplicableFor | MPUs list=STM32MP13x}}<br> {{ApplicableFor | MPUs list=STM32MP13x | MPUs checklist=}} |
Unspecified MPUs checklist
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 AFTER BEFORE AFTER |
4. Code[edit source]
Unspecified MPUs checklist