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.
(gonna replace Specify with this when I have time to fix all the articles that use it.)
(next project: Amboxes)
Line 1: Line 1:
<onlyinclude>{{Hatnote|{{#if: {{{this|}}}|This article is about {{{this}}}.{{S}}|}}{{#if: {{{second|}}}|For {{{second}}}, see {{{secondlink}}}.{{S}}|}}{{#if: {{{third|}}}|For {{{third}}}, see {{{thirdlink}}}.{{S}}|}}For {{{other|other uses}}}, see {{{link|[[{{PAGENAME}} (Disambiguation)]]}}}.}}</onlyinclude>
<includeonly>
{| class="ambox-{{{type}}}" style="border-color: {{{color|black}}};"
|-
{{#ifeq: {{{type|}}}|header
  |{{!}} width="5px" style="background: {{{color|black}}};" {{!}}}}
| class="ambox-{{{type}}}" | {{{image1|{{{image}}}}}}
| {{#if: {{{header|}}}
  | <span style="color: {{{color|black}}};">'''{{{header}}}''': </span>}}{{{1}}}
{{#ifeq: {{{type|}}}|inline
  |{{!}} class="ambox-inline" {{!}} {{{image2|{{{image}}}}}}}}
|}</includeonly><!--


==Purpose==
This hatnote is used to specify the content of the article or contrast it with a similar article.


==Usage==
{{Usage|this{{=}}|other{{=}}|link{{=}}}}
{{Usage/Param|this|A very brief description of the article on which this template is placed.|optional}}
{{Usage/Param|other|A very brief description of the article to which this template links.|optional|"other uses"}}
{{Usage/Param|link|A link to the contrasted article.|optional|disambiguation page}}


If there are several related titles, but one stands out as a secondary article, use ''second'' and ''secondlink'' instead of ''other'' and ''link''.
--><noinclude>
{{Ambox|type=header
|color=green
|image=[[File:Map-SS-Icon.png]]
|header=Example
|This is an example header AMbox<br>It's large and appears at the top of articles.
}}


{{Usage|this{{=}}|second{{=}}|secondlink{{=}}}}
{{Ambox|type=inline
{{Usage/Param|second|A very brief description of the secondary article.}}
|color=red
{{Usage/Param|secondlink|A link to the secondary article.}}
|image=[[File:Spoiler.png]]
 
|This inline AMbox is used to mark off sections of an article.
For the rare case of having both secondary and tertiary articles as well as others, "third" and "thirdlink" are also available. These should be used sparingly and should generally not be used if the hatnote extends too far over one line.
}}
 
==Purpose==
Examples:
Ambox (Article Message Box) is a meta-template used to create various specific Amboxes.  It allows for the creation of two different types:
*<code><nowiki>{{Specify}}</nowiki></code> → {{Specify}}
*Header Amboxes are put at the top of an article to describe the entire article. (e.g. The article is about an unreleased game.)
*<code><nowiki>{{Specify|this=the Specify template}}</nowiki></code> → {{Specify|this=the Specify template}}
*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.)
*<code><nowiki>{{Specify|other=disambiguation guidelines|link=[[Help:Disambiguation]]}}</nowiki></code> → {{Specify|other=disambiguation guidelines|link=[[Help:Disambiguation]]}}
*<code><nowiki>{{Specify|this=the species|second=the first game in the series|secondlink=[[Pikmin (Game)]]}}</nowiki></code> → {{Specify|this=the species|second=the first game in the series|secondlink=[[Pikmin (Game)]]}}
 
For specific guidelines on when and how to use this template, see [[Help:Disambiguation]].


==Usage==
<pre>
{{Ambox|type=
|color=
|image=
|header=
|Descriptive Text Here
}}
</pre>
'''color''' and '''header''' are optional. '''Type''' can be either ''header'' or ''inline''.


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

Revision as of 02:17, October 30, 2012


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.