Jump to content

Template:Ambox/doc: Difference between revisions

From Elite Dangerous Wiki
Content deleted Content added
Created page with "==Description and usage== This template is used to create article management templates. '''Note: This template requires sitewide CSS!''' Use <code>{{t|ambox|...}}</code> on a..."
 
m Updated desc with small
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
This template is used to create article management templates. '''Note: This template requires sitewide CSS!'''
This template is used to create article management templates. '''Note: This template requires sitewide CSS!'''


Use <code>{{t|ambox|...}}</code> on a template page, filling in the various options. The created template is then used at the top of various wiki pages to notify the user of issues.
Use <code>{{t|Ambox|...}}</code> on a template page, filling in the various options. The created template is then used at the top of various wiki pages to notify the user of issues.


Article management boxes should be used sparingly, as it can get in the way of content.
Article management boxes should be used sparingly, as it can get in the way of content.
Line 21: Line 21:


==Named parameters==
==Named parameters==
; |small=: if the ambox should be small or not.
; |image=: image for use on the left, defaults to [[:Image:Wiki.png]]. Takes full image code, e.g. <code><nowiki>[[Image:Wiki.png|50px]]</nowiki></code>. The image box area has a limit of 60px width.
; |image=: image for use on the left. The image box area has a limit of 60px width.
; |type=: top line text
; |type=: top line text or header
; |info=: list of extra info
; |info=: list of extra info
; |border=: border colour (defaults to green)
; |border=: border colour (defaults to red)
:; red : ambox-red (serious issue)
:; red : ambox-red (serious)
:; orange : ambox-orange (important issue)
:; orange : ambox-orange (content)
:; yellow : ambox-yellow (mild issue)
:; yellow : ambox-yellow (style/structure)
:; green : ambox-green (something good)
:; green : ambox-green (positive note)
:; purple : ambox-purple
:; purple : ambox-purple (merge)
:; blue : ambox-blue
:; blue : ambox-blue (notice)
:; gray : ambox-gray
:; gray : ambox-gray (protection)
; |style=: extra style parameters ''(unlikely to be used)''
; |style=: extra style parameters ''(unlikely to be used)''


Line 49: Line 50:
}}
}}


=== Small ===
<pre>
{{ambox
| type = I am type
| info = I am info
| small = True
}}
</pre>

{{ambox
| type = I am type
| info = I am info
| small = true
}}

=== Small + image ===
<pre>
{{ambox
| image = [[Image:Example.jpg|50px]]
| type = I am type
| info = I am info
| small = True
}}
</pre>

{{ambox
| image = [[Image:Example.jpg|50px]]
| type = I am type
| info = I am info
| small = true
}}
=== Red + image ===
=== Red + image ===
<pre>
<pre>

Latest revision as of 16:51, 15 June 2015

Description and usage

This template is used to create article management templates. Note: This template requires sitewide CSS!

Use {{Ambox|<...>}} on a template page, filling in the various options. The created template is then used at the top of various wiki pages to notify the user of issues.

Article management boxes should be used sparingly, as it can get in the way of content.


Named parameters

|small=
if the ambox should be small or not.
|image=
image for use on the left. The image box area has a limit of 60px width.
|type=
top line text or header
|info=
list of extra info
|border=
border colour (defaults to red)
red
ambox-red (serious)
orange
ambox-orange (content)
yellow
ambox-yellow (style/structure)
green
ambox-green (positive note)
purple
ambox-purple (merge)
blue
ambox-blue (notice)
gray
ambox-gray (protection)
|style=
extra style parameters (unlikely to be used)

Examples

Default

{{ambox
| type = I am type
| info = I am info
}}

Small

{{ambox
| type = I am type
| info = I am info
| small = True
}}

Small + image

{{ambox
| image = [[Image:Example.jpg|50px]]
| type = I am type
| info = I am info
| small = True
}}

Red + image

{{ambox
| image = [[Image:Example.jpg|50px]]
| border = red
| type = I am type
| info =
* I am info
}}

Other colors

Yellow

Green

Purple

Blue

Orange

Gray

See also