Difference between revisions of "Template:Ambox/Documentation"

From War Thunder Wiki
Jump to: navigation, search
m (Example)
m
Line 38: Line 38:
 
  |border = #2196F3
 
  |border = #2196F3
 
  |img = File:Icons Write.png
 
  |img = File:Icons Write.png
|cat = WIP Articles
 
 
}}</nowiki>
 
}}</nowiki>
 
Displayed as:
 
Displayed as:
Line 47: Line 46:
 
  |border = #2196F3
 
  |border = #2196F3
 
  |img = File:Icons Write.png
 
  |img = File:Icons Write.png
|cat = WIP Articles
 
 
}}
 
}}

Revision as of 16:14, 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 an article to the category Category:Articles in work. 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:

Icons Write.pngWriting 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.