Jump to content

SeptemWiki:Style Guide/Templates

From SeptemWiki

The judicious use of templates will make it easier for SeptemWiki editors to write clear, consistent articles. This guide contains information on templates which editors should know about and use appropriately.

Syntax

Main article: Help:Templates

Templates are embedded in your article using the template syntax described in the Help:Templates page. For each template described in this page, examples are given.

Subtypes

Main article: Help:Templates

Some templates take a lot of parameters, but most of the time, only a few of them are used. So we create a "subtype" template which provides most of the parameters for you, like Template:Stub, which just calls Template:Ambox but provides most of the parameters to produce a convenient "stub article" banner.

This process can subdivide further, and further. The Stub template itself has several subtypes, which produce different looking stubs, with different icons and text, for articles about Triparic, the Turnpike, and so forth.

Stubs

The stub templates indicate that your article is in need of expansion. You can use the generic version:

{{stub}}

which yields:

Or you can use more specific ones.

{{TriparicStub}}

All stub templates should be found in Category:Stub templates.

Banners

Stub templates are a subtype of banners. Banners are nice boxes which run across the width of your article. They are produced using the "Article Message Box" template, fully documented at Template:Ambox.

The color of the tab (and the default icon) is determined by the type parameter, and you can make banners which are smaller and appear at the left.

{{ambox|type=delete|text=Articles to be deleted.}}
{{ambox|type=notice|small=left|text=This is a small notice message.}}

See Template:Ambox for further details.