SeptemWiki:Style Guide/Templates: Difference between revisions
Line 15: | Line 15: | ||
This process can subdivide further, and further. The Stub template itself has several [[:Category:Stub templates|subtypes]], which produce different looking stubs, with different icons and text, for articles about [[Triparic]], the [[Turnpike]], and so forth. | This process can subdivide further, and further. The Stub template itself has several [[:Category:Stub templates|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: | |||
<nowiki>{{stub}}</nowiki> | <nowiki>{{stub}}</nowiki> | ||
Line 23: | Line 22: | ||
which yields: | which yields: | ||
{{stub|nocategory=yes}} | {{stub|nocategory=yes}} | ||
Or you can use more specific ones. | |||
<nowiki>{{TriparicStub}}</nowiki> | |||
{{TriparicStub|nocategory=yes}} | |||
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 <tt>type</tt> parameter, and you can make banners which are smaller and appear at the left. | |||
{{ambox|type=delete|text=Articles to be deleted.}} | {{ambox|type=delete|text=Articles to be deleted.}} | ||
{{ambox|type=notice|small=left|text=This is a small notice message.}} | {{ambox|type=notice|small=left|text=This is a small notice message.}} |
Revision as of 13:00, 9 April 2016
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
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
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:
![]() |
This SeptemWiki article is a stub. Help us out by expanding it. |
Or you can use more specific ones.
{{TriparicStub}}
![]() |
This article related to the Triparic language is a stub. Help us out by expanding it. |
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.
![]() |
Articles to be deleted. |
![]() |
This is a small notice message. |
{{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.