Registered User mNo edit summary |
Registered User m (Reverted edits by Registered User (-) to last revision by Registered User) Tag: Rollback |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
==Usage== | ==Usage== | ||
The [[Template:ApplicableFor/CategoryAssignment|ApplicableFor/CategoryAssignment]] template is used '''to format the applicability infobox that indicates for which microprocessor device(s) a page is applicable'''. | The [[Template:ApplicableFor/CategoryAssignment|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 [[Template:ApplicableFor|ApplicableFor]] template | This template is called by the [[Template:ApplicableFor|ApplicableFor]] template | ||
Line 17: | Line 17: | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
{{ApplicableFor/CategoryAssignment | STM32MP13x}}<br> | {{ApplicableFor/CategoryAssignment | STM32MP13x}}<br> | ||
{{ApplicableFor/CategoryAssignment | STM32MP15x}} | {{ApplicableFor/CategoryAssignment | STM32MP15x}}<br> | ||
{{ApplicableFor/CategoryAssignment | STM32MP25x}} | |||
</pre> | </pre> | ||
| | | | ||
{{ApplicableFor/CategoryAssignment | STM32MP13x}}<br> | {{ApplicableFor/CategoryAssignment | STM32MP13x}}<br> | ||
{{ApplicableFor/CategoryAssignment | STM32MP15x}} | {{ApplicableFor/CategoryAssignment | STM32MP15x}}<br> | ||
{{ApplicableFor/CategoryAssignment | STM32MP25x}} | |||
|} | |} | ||
Line 58: | Line 60: | ||
==Code== | ==Code== | ||
</noinclude>{{#switch:{{{1|}}} | </noinclude>{{#switch:{{{1|}}} | ||
| STM32MP13x | STM32MP15x= [[:Category:{{{1}}}|{{{1}}} lines]][[Category:{{{1}}}]] | | STM32MP13x | STM32MP15x | STM32MP25x = [[:Category:{{{1}}}|{{{1}}} lines]][[Category:{{{1}}}]] | ||
| #default = {{Highlight|Unknown MPU}} | | #default = {{Highlight|Unknown MPU}} | ||
}} | }} |
Latest revision as of 17:38, 25 October 2023
1. Usage
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
<MPU>}}Usage: {{ApplicableFor/CategoryAssignment |
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
You type | You get |
---|---|
A specific MPU
{{ApplicableFor/CategoryAssignment | STM32MP13x}}<br>
{{ApplicableFor/CategoryAssignment | STM32MP15x}}<br>
{{ApplicableFor/CategoryAssignment | STM32MP25x}}
|
STM32MP13x lines |
3. More examples
You type | You get |
---|---|
Unknown MPU
{{ApplicableFor/CategoryAssignment | STM32MP0x}}
|
Unknown MPU |
Unspecified MPU
{{ApplicableFor/CategoryAssignment}}<br>
{{ApplicableFor/CategoryAssignment | }}<br>
{{ApplicableFor/CategoryAssignment | 1=}}
|
Unknown MPU |
Check the spaces before and after the text
BEFORE{{ApplicableFor/CategoryAssignment| STM32MP13x}}AFTER<br>
BEFORE{{ApplicableFor/CategoryAssignment | STM32MP1x}}AFTER
|
BEFORE STM32MP13x linesAFTER |
4. Code
Unknown MPU