Template:Class template: Difference between revisions
Robertbaxter (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<noinclude> | <noinclude> | ||
This template displays a message box on core class templates to warn users that they should only be used with the appropriate | This template displays a message box on core class templates to warn users that they should only be used with the appropriate PageForm. It also adds them to [[Category:Class templates]]. | ||
==Usage== | ==Usage== | ||
Line 16: | Line 16: | ||
| class=class-ambox | | class=class-ambox | ||
}}<!-- | }}<!-- | ||
--> | --></includeonly> | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"class": { | |||
"label": "Class", | |||
"description": "Name of the class.", | |||
"example": "Ink", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"form": { | |||
"label": "Form", | |||
"description": "Name of the form for use with this class (do not include the \"Form:\" namespace).", | |||
"example": "Ink", | |||
"required": true | |||
}, | |||
"category": { | |||
"label": "Category", | |||
"description": "Name of the category used with pages in this class (do not include the \"Category:\" namespace).", | |||
"example": "Inks", | |||
"type": "string", | |||
"required": true | |||
} | |||
}, | |||
"description": "Used on top level class templates that should only be edited with the associated PageForm.", | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
</noinclude> |
Revision as of 15:06, 14 December 2024
This template displays a message box on core class templates to warn users that they should only be used with the appropriate PageForm. It also adds them to.
Usage
Include this template at the top of any top level class templates (e.g. Template:Place, Template:Ink, etc.). Provided fields fill out the class, form, and category names.
{{Class template|class=Ink|form=Ink|category=Inks}}
Used on top level class templates that should only be edited with the associated PageForm.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Class | class | Name of the class.
| String | required |
Form | form | Name of the form for use with this class (do not include the "Form:" namespace).
| Unknown | required |
Category | category | Name of the category used with pages in this class (do not include the "Category:" namespace).
| String | required |