Template:Class template: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 14: Line 14:
"label": "Class",
"label": "Class",
"description": "Name of the class.",
"description": "Name of the class.",
"example": "Ink",
"type": "string",
"type": "string",
"required": true
"required": true
Line 21: Line 20:
"label": "Form",
"label": "Form",
"description": "Name of the form for use with this class (do not include the \"Form:\" namespace).",
"description": "Name of the form for use with this class (do not include the \"Form:\" namespace).",
"example": "Ink",
"required": true
"required": true
},
},
Line 27: Line 25:
"label": "Category",
"label": "Category",
"description": "Name of the category used with pages in this class (do not include the \"Category:\" namespace).",
"description": "Name of the category used with pages in this class (do not include the \"Category:\" namespace).",
"example": "Inks",
"type": "string",
"type": "string",
"required": true
"required": true

Revision as of 15:09, 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—and adds these templates to.

Usage

Provided fields fill out the class, form, and category names in the text of the message.

{{Class template|class=Ink|form=Ink|category=Inks}}

Template:Ambox

Used on top level class templates that should only be edited with the associated PageForm.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Classclass

Name of the class.

Stringrequired
Formform

Name of the form for use with this class (do not include the "Form:" namespace).

Unknownrequired
Categorycategory

Name of the category used with pages in this class (do not include the "Category:" namespace).

Stringrequired