Difference between revisions of "Template:Ambox/Documentation"
Inceptor57 (talk | contribs) |
Inceptor57 (talk | contribs) m |
||
Line 29: | Line 29: | ||
* Each box template must be documented. From the documentation, it should be clear what kind of plate it is, what it is for, and when it is used. | * Each box template must be documented. From the documentation, it should be clear what kind of plate it is, what it is for, and when it is used. | ||
* Article message boxes are convenient for specifying | * Article message boxes are convenient for specifying | ||
− | * Article message boxes are convenient for specifying categories of articles. For example, the [[:Template:Writing|"Writing"]] box automatically adds the article to the category [[:Category: | + | * Article message boxes are convenient for specifying categories of articles. For example, the [[:Template:Writing|"Writing"]] box automatically adds the article to the category [[:Category:WIP articles|WIP articles]]. Do not neglect this opportunity. |
== Example == | == Example == |
Revision as of 16:36, 24 January 2019
Description
This template is used to create article message boxes.
Using
{{Ambox |title = |text = |background = |border = |img = |cat = <includeonly></includeonly> }}<noinclude> {{doc}} [[Category:Article message]] </noinclude>
Options
- title — title (default: no title)
- text — text (default: The quick brown fox jumps over the lazy dog)
- background — background color in RGB format (default: #BBDEFB)
- border — border color (default: #2196F3)
- img — the full name of the image.
- cat — a category without the prefix "Category:" (default: none). It is advisable not to include the category in the template itself.
Notes
- You cannot use the "=" symbol inside parameters, since the wiki considers it a separator.
- You do not need to specify the unit of measurement for px, otherwise you will get something like “pxpx” after include.
- Each box template must be documented. From the documentation, it should be clear what kind of plate it is, what it is for, and when it is used.
- Article message boxes are convenient for specifying
- Article message boxes are convenient for specifying categories of articles. For example, the "Writing" box automatically adds the article to the category WIP articles. Do not neglect this opportunity.
Example
{{Ambox |title = Writing in process... |text = This article is being edited by the member '''{{{1}}}''' (start date). Other participants are requested to not make any changes while this warning is here. |background = #BBDEFB |border = #2196F3 |img = File:Icons Write.png }}
Displayed as:
Writing in process... This article is being edited by the member {{{1}}} (start date). Other participants are requested to not make any changes while this warning is here. |