User:Locke/Sandbox: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
(next project: Amboxes)
No edit summary
Line 1: Line 1:
<!--
dark blue  -> #5a7db5
light blue -> #90B6E7
-->
<div style="display: none;"><css>
.ambox2 {
margin: auto;
border: 1px solid #5a7db5;
border-left: 10px solid #5a7db5;
width: 70%;
background-color: #f6f6f6;
}
.ambox2-image {
width: 50px;
}
.ambox2-small .ambox2-image {
display: none;
}
</css></div>
{{#vardefine: noticeImage    | Map-SS-Icon.png }}
{{#vardefine: contentImage    | Map-SS-Icon.png }}
{{#vardefine: styleImage      | Map-SS-Icon.png }}
{{#vardefine: deleteImage    | Map-SS-Icon.png }}
{{#vardefine: moveImage      | Map-SS-Icon.png }}
{{#vardefine: protectionImage | Map-SS-Icon.png }}
{| class="ambox2"
| class="ambox2-image" | {{#if:{{{image|}}}
  | {{{image}}}
  | [[File:{{#switch: {{{type|}}}
    | content = {{#var: contentImage}}
    | style = {{#var: styleImage}}
    | delete = {{#var: deleteImage}}
    | move = {{#var: moveImage}}
    | protection = {{#var: protectionImage}}
    | notice|#default = {{#var: noticeImage}}
    }}|40x40px|link=|alt=]]
  }}
| {{{issue}}} {{{fix}}}
|}
<includeonly>
<includeonly>
{| class="ambox-{{{type}}}" style="border-color: {{{color|black}}};"
{| class="ambox-{{{type}}}" style="border-color: {{{color|black}}};"

Revision as of 04:06, October 30, 2012





{{{issue}}} {{{fix}}}



Map-SS-Icon.png {{{text}}}


Spoiler.png {{{text}}}

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.