Difference between revisions of "Template:Class mask/doc"
Jump to navigation
Jump to search
(kjhltt) |
|||
| Line 4: | Line 4: | ||
This template is designed for use in WikiProject banners, and provides an easy way to construct a bespoke class mask. The temploparameter must be passed to the template as the first unnamed parameter. | This template is designed for use in WikiProject banners, and provides an easy way to construct a bespoke class mask. The temploparameter must be passed to the template as the first unnamed parameter. | ||
| − | ===Implementation in | + | ===Implementation in |
| − | The template provides the default class masks for WikiProject's quality scales, and is also used by the majority of projects which use a custom class | + | The template provides the default class masks for WikiProject's quality scales, and is also used by the majority of projects which use a custom class It can be used in two different ways: |
| − | * with | + | * with and placed on the /class subpage of the WikiProject's banner template. In this case, specific guidance on how the template works with the chosen parameters is displayed on this page. |
| − | * with | + | * with and placed directly inside the ''class'' parameter. |
=== Use on subpages === | === Use on subpages === | ||
| − | When used on a /class subpage | + | When used on a /class subpage the template should be called in the following way: |
| − | <pre>{{class mask<noinclude>/ | + | <pre>{{class mask<noinclude>/tnoinclude>|{{{class|}}} |
|topic= | |topic= | ||
| − | | | + | |optiona |
}}</pre> | }}</pre> | ||
This allows the [[Template:Class mask/templatepage|/templatepage]] to be displayed which provides useful documentation and category prompts on the subpage. | This allows the [[Template:Class mask/templatepage|/templatepage]] to be displayed which provides useful documentation and category prompts on the subpage. | ||
| Line 43: | Line 43: | ||
*{{para|start}} | *{{para|start}} | ||
*{{para|stub}} | *{{para|stub}} | ||
| − | *{{para|list}} – if one or more of these nine is set to <code>no</code>, the class will be switched off. The default is <code>yes< | + | *{{para|list}} – if one or more of these nine is set to <code>no</code>, the class will be switched off. The default is <code>yes<l - if the B-class checklist is used, these parameters must be passed through. |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
=== The lowercase parameter syntax === | === The lowercase parameter syntax === | ||
| Line 112: | Line 107: | ||
}} | }} | ||
</pre> | </pre> | ||
| − | In this case all six of the | + | In this case all six of the |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
}}</includeonly> | }}</includeonly> | ||
Revision as of 17:22, 8 September 2020