Template:Banner/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Documentation subpage}} __NOTOC__ ==Usage== {| class="wikitable" style="float: right; margin-left: 10px; background-color: white; font-size: 90%; text-align: center;" |- ! <...") |
(Corr.) |
||
Line 54: | Line 54: | ||
| style="background-color: #f0e6d9;" | {{tl|TbBannerNightly}} | | style="background-color: #f0e6d9;" | {{tl|TbBannerNightly}} | ||
|} | |} | ||
{{tl|banner}} is a metatemplate for creating banner template bases, that in turn can be used to create banner templates informing on official Mozilla product | {{tl|banner}} is a metatemplate for creating banner template bases, that in turn can be used to create banner templates informing on official Mozilla product releases. See the list of templates to the right for existing banner templates based on this metatemplate. | ||
<br><br> | <br><br> | ||
{{Admon/caution|Look for existing product banner templates first!|Don't use this template unless you are making a banner base template for a Mozilla product which doesn't yet have a release banner of it own, and you explicitly have been given that assignment by a team leader for that product. See '''the list to the right''' for existing product banner templates. If you just wish to create a message box, go to '''[[#See also]]''' for template alternatives.}} | {{Admon/caution|Look for existing product banner templates first!|Don't use this template unless you are making a banner base template for a Mozilla product which doesn't yet have a release banner of it own, and you explicitly have been given that assignment by a team leader for that product. See '''the list to the right''' for existing product banner templates. If you just wish to create a message box, go to '''[[#See also]]''' for template alternatives.}} |
Revision as of 23:48, 6 December 2014
Usage
Mozilla product banner templates |
---|
FIREFOX |
{{FxBanner}} (base) |
{{FxBannerRelease}} |
{{FxBannerBeta}} |
{{FxBannerAurora}} |
{{FxBannerNightly}} |
FIREFOX OS |
{{FxOSBanner}} (base) |
{{FxOSBannerRelease}} |
{{FxOSBannerBeta}} |
{{FxOSBannerAurora}} |
{{FxOSBannerNightly}} |
SEAMONKEY |
{{SMBanner}} (base) |
{{SMBannerRelease}} |
{{SMBannerBeta}} |
{{SMBannerAurora}} |
{{SMBannerNightly}} |
THUNDERBIRD |
{{TbBanner}} (base) |
{{TbBannerRelease}} |
{{TbBannerBeta}} |
{{TbBannerAurora}} |
{{TbBannerNightly}} |
{{banner}} is a metatemplate for creating banner template bases, that in turn can be used to create banner templates informing on official Mozilla product releases. See the list of templates to the right for existing banner templates based on this metatemplate.
Parameters
There are 13 parameters in total, all named and none of which is required for the template to work.
- List of parameters
Template parameters | |||
---|---|---|---|
Element | Parameter | Description | Default value |
Box | bgcolor |
Background colour | #ccc |
color |
Text colour | black | |
Image | logo |
Product logotype | null |
Text | product |
Mozilla product | null |
version |
Product version | null | |
gecko |
Gecko version | null | |
type |
Product release type | merge | |
release_date |
Release date | null | |
merge_date |
Date of merging | null | |
merge_week |
Week of merging | null | |
current_channel |
Current channel in the development chain | null | |
next_channel |
Next channel in the development chain | another |
Syntax
The template's syntax is
{{banner|bgcolor= |color= |logo= |product= |version= |gecko= |type= |release_date= |current_channel= |merge_date= |merge_week= |next_channel= }}
When creating a new product banner base, you should include all relevant parameters, even those you may not need to use for the base template itself. You might need the extra options in subsequent templates.
See also
- {{admon}}: four messagebox templates for four different message types.
- {{admon/caution}}
- {{admon/important}}
- {{admon/note}}
- {{admon/tip}}
- {{message}}: base template for creating a custom message box.
- {{message/box}}: a more complex, but also more versatile version of {{message}}.
- {{label}}: for important information. Use with caution!
- {{warning}}: for warning messages. Use with caution!
- {{blackboxwarning}}: for extremely important warning messages. Use only if absolutely necessary!