Permanently protected template

Template:Stub-template

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

[[Category:{{{category}}}| ]]

Template documentation[view] [edit] [history] [purge]

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

Usage

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

Examples

{{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

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