Difference between revisions of "Template:Ambox/Documentation"

From War Thunder Wiki
Jump to: navigation, search
m (Example)
m
 
(4 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
  |border =
 
  |border =
 
  |img =
 
  |img =
  |cat = <includeonly></includeonly>
+
  |cat =  
}}<noinclude>
+
}}</pre>
{{doc}}
 
[[Category:Article message]]
 
</noinclude></pre>
 
  
 
== Options ==
 
== Options ==
Line 29: Line 26:
 
* 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 an article to the category [[:Category:Articles in work]]. Do not neglect this opportunity.
+
* 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 ==
Line 38: Line 35:
 
  |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 43:
 
  |border = #2196F3
 
  |border = #2196F3
 
  |img = File:Icons Write.png
 
  |img = File:Icons Write.png
|cat = WIP Articles
 
 
}}
 
}}

Latest revision as of 17:29, 13 February 2019

Description

This template is used to create article message boxes.

Using

{{Ambox
 |title =
 |text =
 |background =
 |border =
 |img =
 |cat = 
}}

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:

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.