CategoryAssignment

< Template:ApplicableFor
Revision as of 15:50, 28 September 2021 by Nathalie Sangouard (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

1 Usage[edit]

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

Usage: {{ApplicableFor/CategoryAssignment | <MPU>}}

Where:

  • <MPU> is the mandatory microprocessor device for which the page is applicable. The possible values for this parameter are the allowed values for the Has applicability specified for property. The page is automatically added to the transversal category associated to the microprocessor device (for example, Category:STM32MP15x).

The returned value is a link to the transversal category associated to the microprocessor device for which the page is applicable.

2 Basic examples[edit]

You type You get
A specific MPU
{{ApplicableFor/CategoryAssignment | STM32MP13x}}<br>
{{ApplicableFor/CategoryAssignment | STM32MP15x}}

STM32MP13x lines
STM32MP15x lines

3 More examples[edit]

You type You get
Unknown MPU
{{ApplicableFor/CategoryAssignment | STM32MP0x}}

Unknown MPU

Unspecified MPU
{{ApplicableFor/CategoryAssignment}}<br>
{{ApplicableFor/CategoryAssignment | }}<br>
{{ApplicableFor/CategoryAssignment | 1=}}

Unknown MPU
Unknown MPU
Unknown MPU

Check the spaces before and after the text
BEFORE{{ApplicableFor/CategoryAssignment| STM32MP13x}}AFTER<br>
BEFORE{{ApplicableFor/CategoryAssignment | STM32MP1x}}AFTER

BEFORE STM32MP13x linesAFTER
BEFOREUnknown MPUAFTER

4 Code[edit]

Unknown MPU