Template:Ambox: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{| class="ambox-{{{type}}}" style="border-color | {| class="ambox-{{{type}}}" style="border-color: {{{color|black}}};" | ||
|- | |- | ||
{{#ifeq: {{{type|}}}|header | {{#ifeq: {{{type|}}}|header | ||
|{{!}} width="5px" style="background | |{{!}} width="5px" style="background: {{{color|black}}};" {{!}}}} | ||
| class="ambox-{{{type}}}" | {{{image}}} | | class="ambox-{{{type}}}" | {{{image}}} | ||
| {{#if: {{{header|}}} | | {{#if: {{{header|}}} | ||
| <span style="color | | <span style="color: {{{color|black}}};">'''{{{header}}}''': </span>}}{{{1}}} | ||
{{#ifeq: {{{type|}}}|inline | {{#ifeq: {{{type|}}}|inline | ||
|{{!}} class="ambox-inline" {{!}} {{{image}}}}} | |{{!}} class="ambox-inline" {{!}} {{{image}}}}} |
Revision as of 20:09, March 1, 2012
Example: This is an example header AMbox It's large and appears at the top of articles.
|
This inline AMbox is used to mark off sections of an article. |
Purpose
Ambox (Article Message Box) is a meta-template used to create various specific Amboxes. It allows for the creation of two different types:
- Header Amboxes are put at the top of an article to describe the entire article. (e.g. The article is about an unreleased game.)
- Inline Amboxes are used within the body of an article to mark off sections. Inline Amboxes should have a /End template to designate when the message no longer applies. (e.g. This section of the article involves fan theories.)
Usage
{{Ambox|type= |color= |image= |header= |Descriptive Text Here }}
color and header are optional. Type can be either header or inline.