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
m (Text replacement - "<br>" to "<br/>")
 
(39 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="ambox {{{type}}}" style="border: 1px solid {{#if: {{{color|}}}|{{{color}}}|black}};"
<onlyinclude>
|-
{| class="ambox {{#ifeq: {{{1|}}}|section|ambox-small}} ambox-{{#switch: {{{type|}}}
| {{{image}}}
   | content = content | style = style
| {{#if: {{{header|}}}
  | delete = delete | move = move
   | <div style="text-align: center;{{#if: {{{color|}}}| color: {{{color}}}}}">'''{{{header}}}'''</div>
  | protection = protection | notice | #default = notice
   }}{{{1}}}<!--
  }}"
-->{{#ifeq: {{{type|}}}|inline|{{!}} {{{image}}}}}
| class="ambox-image" | {{#if:{{{image|}}}
|}<noinclude>
  | {{{image}}}
   | [[File:Ambox-{{#switch: {{{type|}}}
    | content = content | style = style
    | delete = delete | move = move
    | protection = protection | notice | #default = notice
    }}.png|40x40px|link=|alt=]]
  }}
| class="ambox-text" | {{{text}}}
|}</onlyinclude>
 
==Purpose==
==Purpose==
'''Ambox''' is a meta-template used to create different types of amboxes. Amboxes are used to describe issues or information about articles. They can be placed at the top of an article to describe the entire article, or smaller versions can be used within sections. According to the [[Help:Format|formatting guide]], amboxes are the second things to appear in an article or section, just below {{Temlink|Hatnote|Hatnotes}}.


==Usage==
==Usage==
<pre>
{{Usage/Block|type|image|text}}
{{Ambox|type=
{{Usage/Param|type|Which category the ambox falls under. The available types are listed below.}}
|color=
{{Usage/Param|image|An image to override the default image for that type.|optional|depends on type}}
|header=
{{Usage/Param|text|The contents of the message.}}
|Descriptive Text Here
For use in a section rather than at the top of an article, pass "section" as an anonymous parameter. This will remove the image and make the ambox narrower, like so: {{Ambox|section|type=notice|text=This is a small ambox. It is used within sections, rather than at the top of an article.}}
}}
{{Clear}}
</pre>
 
'''color''' and '''header''' are optional. Type can be either '''header''' or '''inline'''.
===Ambox Types===
====Maintenance====
{{Ambox|type=delete|text=type=<u>delete</u>, used for articles being considered for deletion.}}
{{Ambox|type=content|text=type=<u>content</u>, used for articles or sections with content problems.}}
{{Ambox|type=style|text=type=<u>style</u>, used for articles or sections with style problems.}}
{{Ambox|type=move|text=type=<u>move</u>, used for articles being considered for moves, merges, etc.}}
====Information====
{{Ambox|type=notice|text=type=<u>notice</u>, used to display information about the article or section.}}
{{Ambox|type=protection|text=type=<u>protection</u>, used to display protection information.}}
 
===Common Amboxes===
These are some commonly used amboxes which use this meta-template. For a full up-to-date list of available amboxes, see {{Catlink|Ambox Templates}}.
 
{| class="wikitable"
! colspan=4 | Maintenance || colspan=2 | Information
|-
! style="background-color: red;" | delete
! style="background-color: orange;" | content
! style="background-color: yellow;" | style
! style="background-color: green;" | move
! style="background-color: #5a7db5;" | notice
! style="background-color: gray;" | protection
|-
| {{Temlink|Delete}}
| {{Temlink|Stub}}
{{Temlink|Focus}}
| {{Temlink|Perspective}}
| {{Temlink|Merge}}
| {{Temlink|Spoiler}}
{{Temlink|IncInterview}}<br/>
{{Temlink|Policy}}
| {{Temlink|Editing}}
|}
 


{{Cat|Formatting Templates}}
{{Cat|Formatting Templates}}
{{Cat|Ambox Templates}}
{{Cat|Ambox Templates}}
</noinclude>

Latest revision as of 17:12, February 8, 2015

{{{text}}}

Purpose

Ambox is a meta-template used to create different types of amboxes. Amboxes are used to describe issues or information about articles. They can be placed at the top of an article to describe the entire article, or smaller versions can be used within sections. According to the formatting guide, amboxes are the second things to appear in an article or section, just below {{Hatnotes}}.

Usage

{{Ambox
| type = 
| image = 
| text = 
}}


  • type — Which category the ambox falls under. The available types are listed below.
  • image — An image to override the default image for that type. (Optional. Default: depends on type)
  • text — The contents of the message.

For use in a section rather than at the top of an article, pass "section" as an anonymous parameter. This will remove the image and make the ambox narrower, like so:

This is a small ambox. It is used within sections, rather than at the top of an article.

Ambox Types

Maintenance

type=delete, used for articles being considered for deletion.
type=content, used for articles or sections with content problems.
type=style, used for articles or sections with style problems.
type=move, used for articles being considered for moves, merges, etc.

Information

type=notice, used to display information about the article or section.
type=protection, used to display protection information.

Common Amboxes

These are some commonly used amboxes which use this meta-template. For a full up-to-date list of available amboxes, see [[Ambox Templates]].

Maintenance Information
delete content style move notice protection
{{Delete}} {{Stub}}

{{Focus}}

{{Perspective}} {{Merge}} {{Spoiler}}

{{IncInterview}}
{{Policy}}

{{Editing}}