Template:Ambox: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
No edit summary
No edit summary
Line 7: Line 7:
   text-align: left;
   text-align: left;
   border-style: solid;
   border-style: solid;
  border-width: 2px;
}
}
td.ambox-header { width: 100px; }
td.ambox-header { width: 100px; }
Line 16: Line 17:
   text-align: center;
   text-align: center;
   border-style: double none double none;
   border-style: double none double none;
  border-width: 2px;
}
}
td.ambox-inline { width: 50px; }
td.ambox-inline { width: 50px; }
</css>
</css>
{| class="ambox-{{{type}}}" style="border: 2px {{#if: {{{color|}}}|{{{color}}}|black}};"
{| class="ambox-{{{type}}}" style="border-color: {{#if: {{{color|}}}|{{{color}}}|black}};"
|-  
|-  
{{#ifeq: {{{type|}}}|header
{{#ifeq: {{{type|}}}|header

Revision as of 06:34, November 18, 2011


File:Largeimage.png Example: This is an example header AMbox
It's large and appears at the top of articles.



File:Smallimage.png This inline AMbox is used to mark off sections of an article. File:Smallimage.png

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.