Template:Stub-template/doc
This is a documentation subpage for Template:Stub-template. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on 170,000+ pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
This template was created to support the creation and easy maintenance of stubs in the Simple Stub Project.
Usage
change{{stub-template | image = <!--required--> | image_size = | image_alt = | category = <!--required--> | subject = <!--required--> | prefix = | suffix = }}
Examples
change{{stub-template | category = American actor stubs | image = Us-actor.svg | subject = American actors }}
{{stub-template | category = American actor stubs | image = Us-actor.svg | subject = American actor | prefix = an }}
{{stub-template | category = American actor stubs | image = Us-actor.svg | subject = actor | prefix = an | suffix = from the United States }}
TemplateData
changeThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Stub-template in articles based on its TemplateData.
TemplateData for Stub-template
This is the meta template for other stub templates and should not be used directly.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | image | The image to use (without the "File:" prefix) | File | required |
Image size | image_size | The size for the image used
| String | optional |
Image caption | image_alt | The caption for the image when someone hovers over it | String | optional |
Prefix | prefix | The text to display before the "subject" parameter | String | optional |
Category | category | The category that the stub template puts them in without the "Category:" prefix | Page name | required |
Subject | subject | The subject for the category of stubs | Page name | required |
Suffix | suffix | The text to display after the "subject" parameter | Page name | optional |