Approved version. Approved on: 15:50, 28 September 2021
Difference between revisions of "Template:ApplicableFor/CategoryAssignment"
[unchecked revision] | [quality revision] |
m
|
m
|
Contents
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}} |
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
|
Check the spaces before and after the text BEFORE{{ApplicableFor/CategoryAssignment| STM32MP13x}}AFTER<br> BEFORE{{ApplicableFor/CategoryAssignment | STM32MP1x}}AFTER |
BEFORE STM32MP13x linesAFTER |
4 Code[edit]
Unknown MPU
Unknown MPU
<noinclude> ==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'''. This template is called by the [[Template:ApplicableFor|ApplicableFor]] template Usage: <nowiki>{{</nowiki>ApplicableFor/CategoryAssignment | {{HighlightParam|<MPU>}}}} Where: * {{HighlightParam|<MPU>}} is the '''mandatory''' microprocessor device for which the page is applicable. The possible values for this parameter are the allowed values for the [[Property:Has applicability specified for|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. ==Basic examples== {| class="st-table" ! style="width: 50%;" | You type !! You get |- | A specific MPU<pre style="white-space: pre-wrap;"> {{ApplicableFor/CategoryAssignment | STM32MP13x}}<br> {{ApplicableFor/CategoryAssignment | STM32MP15x}}</pre> | {{ApplicableFor/CategoryAssignment | STM32MP13x}}<br> {{ApplicableFor/CategoryAssignment | STM32MP15x}} |} ==More examples== {| class="st-table" ! style="width: 50%;" | You type !! You get |- | Unknown MPU<pre style="white-space: pre-wrap;"> {{ApplicableFor/CategoryAssignment | STM32MP0x}}</pre> | {{ApplicableFor/CategoryAssignment | STM32MP0x}} |- | Unspecified MPU<pre style="white-space: pre-wrap;"> {{ApplicableFor/CategoryAssignment}}<br> {{ApplicableFor/CategoryAssignment | }}<br> {{ApplicableFor/CategoryAssignment | 1=}}</pre> | {{ApplicableFor/CategoryAssignment}}<br> {{ApplicableFor/CategoryAssignment | }}<br> {{ApplicableFor/CategoryAssignment | 1=}} |- | Check the spaces before and after the text<pre style="white-space: pre-wrap;"> BEFORE{{ApplicableFor/CategoryAssignment| STM32MP13x}}AFTER<br> BEFORE{{ApplicableFor/CategoryAssignment | STM32MP1x}}AFTER</pre> | BEFORE{{ApplicableFor/CategoryAssignment | STM32MP13x}}AFTER<br> BEFORE{{ApplicableFor/CategoryAssignment | STM32MP1x}}AFTER |} ==Code==</noinclude>{{#switch:{{{1|}}} | STM32MP13x | STM32MP15x= [[:Category:{{{1}}}|{{{1}}} lines]][[Category:{{{1}}}]] | #default = {{Highlight|Unknown MPU}} }} </noinclude>{{#switch:{{{1|}}} | STM32MP13x | STM32MP15x= [[:Category:{{{1}}}|{{{1}}} lines]] | #default = {{Highlight|Unknown MPU}} }}
Line 57: | Line 57: | ||
==Code== |
==Code== |
||
− | {{#switch:{{{1|}}} |
+ |
</noinclude>{{#switch:{{{1|}}} |
| STM32MP13x | STM32MP15x= [[:Category:{{{1}}}|{{{1}}} lines]][[Category:{{{1}}}]] |
| STM32MP13x | STM32MP15x= [[:Category:{{{1}}}|{{{1}}} lines]][[Category:{{{1}}}]] |
||
− | |||
− | |||
− | |||
− | |||
− | |||
| #default = {{Highlight|Unknown MPU}} |
| #default = {{Highlight|Unknown MPU}} |
||
}} |
}} |