SeptemWiki:Style Guide/Templates: Difference between revisions
Line 6: | Line 6: | ||
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. | 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 == | |||
If a template with a lot of different optional parameters, like [[Template:Ambox]], gets frequently used in one particular way, such as to mark stub articles, then we create a template which fills out a lot of the parameters for you, like [[Template:Stub]]. That way, instead of having to enter something like this on every stub page: | |||
<nowiki>{{ambox | |||
| name = Stub | |||
| type = content | |||
| image = [[File:Empire arms.png|40px]] | |||
| text = ''This SeptemWiki article is a stub. Help us out by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it]. | |||
| category = Articles to be expanded | |||
}}</nowiki> | |||
we can just use this: | |||
<nowiki>{{stub}}</nowiki> | |||
This process can subdivide further, and further. The Stub template itself has several subtypes, which produce different looking stubs, with different icons and text. | |||
== Banners == | == Banners == |
Revision as of 12:45, 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
If a template with a lot of different optional parameters, like Template:Ambox, gets frequently used in one particular way, such as to mark stub articles, then we create a template which fills out a lot of the parameters for you, like Template:Stub. That way, instead of having to enter something like this on every stub page:
{{ambox | name = Stub | type = content | image = [[File:Empire arms.png|40px]] | text = ''This SeptemWiki article is a stub. Help us out by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it]. | category = Articles to be expanded }}
we can just use this:
{{stub}}
This process can subdivide further, and further. The Stub template itself has several subtypes, which produce different looking stubs, with different icons and text.
Banners
Banners are nice boxes which run across the width of your article. Some common ones are the Stub template:
{{stub}}
which yields:
![]() |
This SeptemWiki article is a stub. Help us out by expanding it. |
In general, banners are produced using the "Article Message Box" template, fully documented at Template:Ambox.