Template:Stub-template/doc

From Simple English Wikipedia, the free encyclopedia

This template was created to support the creation and easy maintenance of stubs in the Simple Stub Project.

Usage[change source]

{{stub-template
| image      = <!--required-->
| image_size = 
| image_alt  = 
| category   = <!--required-->
| subject    = <!--required-->
| prefix     = 
| suffix     = 
}}

Examples[change source]

{{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[change source]

This 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.

Template parameters

ParameterDescriptionTypeStatus
Imageimage

The image to use (without the "File:" prefix)

Filerequired
Image sizeimage_size

The size for the image used

Default
30px
Stringoptional
Image captionimage_alt

The caption for the image when someone hovers over it

Stringoptional
Prefixprefix

The text to display before the "subject" parameter

Stringoptional
Categorycategory

The category that the stub template puts them in without the "Category:" prefix

Page namerequired
Subjectsubject

The subject for the category of stubs

Page namerequired
Suffixsuffix

The text to display after the "subject" parameter

Page nameoptional