Template:Stub-template/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

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 documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.

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

Pagerequired
Subjectsubject

The subject for the category of stubs

Pagerequired
Suffixsuffix

The text to display after the "subject" parameter

Pageoptional