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.
mNo edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly><css>
<css>
table.ambox-header {
table.ambox-header {
   width: 100%;
   width: 80%;
   height: 100px
   height: 100px
   margin: 1em auto 1em auto;
   margin: 1em auto 1em auto;
   vertical-align: top;
   vertical-align: top;
  text-align: left;
}
}
td.ambox-header { width: 100px; }
td.ambox-header { width: 100px; }
table.ambox-inline {
table.ambox-inline {
   width: 50%;
   width: 40%;
   height: 42px;
   height: 50px;
   margin: 1em auto 1em auto;
   margin: 1em auto 1em auto;
   vertical-align: top;
   vertical-align: top;
  text-align: center;
}
}
td.ambox-inline { width: 42px; }
td.ambox-inline { width: 50px; }
</css>
</css><!--
{| class="ambox-{{{type}}}" style="border: 1px solid {{#if: {{{color|}}}|{{{color}}}|black}};"
 
|-  
 
{{#ifeq: {{{type|}}}|header
-->{| class="ambox-{{{type}}}" style="border: 1px solid {{#if: {{{color|}}}|{{{color}}}|black}};"
   |{{!}} width="5px" style="background: {{#if: {{{color|}}}|{{{color}}}|black}}" {{!}}}}
|- {{#ifeq: {{{type|}}}|header
   |{{n}}{{!}} width="5px" style="background: {{#if: {{{color|}}}|{{{color}}}|black}}" {{!}}}}
| class="ambox-{{{type}}}" | {{{image}}}
| class="ambox-{{{type}}}" | {{{image}}}
| {{#if: {{{header|}}}
| {{#if: {{{header|}}}
   | <div style="text-align: center;{{#if: {{{color|}}}| color: {{{color}}}}}">'''{{{header}}}'''</div><br>
   | <div style="color: {{#if: {{{color|}}}|{{{color}}}|black}}">'''{{{header}}}'''</div>
   }}{{{1}}}
   }}{{{1}}}
{{#ifeq: {{{type|}}}|inline
{{#ifeq: {{{type|}}}|inline

Revision as of 15:24, November 2, 2011

{| class="ambox-header" style="border: 1px solid green;" |- | width="5px" style="background: green" | | class="ambox-header" | File:Largeimage.png

|

Example

This is an example header AMbox
It's large and appears at the top of articles.


|}

{| class="ambox-inline" style="border: 1px solid red;" |- | class="ambox-inline" | File:Smallimage.png | This inline AMbox is used to mark off sections of an article.

| class="ambox-inline" | 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. Include the last pipe even if there's no description (enter a blank description).