Template:Ambox

From the Portal Wiki
Jump to: navigation, search
The template above may be partially or fully invisible or glitched due to the respected strings aren't entered. This is normal.

Documentation for Ambox

An article message box, or ambox, can be added to notify users of specific messages regarding the article. The {{cleanup}} template is an example of an ambox.

Usage

All parameters

Name Examples Description
Line colors
type type = notice [default] Use the correct value for the message box.
type = style
type = content
type = delete
type = protection
type = images
Images
image Example.png Places an image on the left of the message box.
imagewidth 56px [default] Defines the width of the left image.
imagealt Notice Text to be displayed if image isn't shown properly.
image2 PD-icon.png Places a second image on the right of the message box
image2width 56px [default] Defines the width of the right image.
image2alt Public Domain Text to be displayed if the right image isn't shown properly.
Other
width [deprecated] No longer available
style e.g. font-size: 90%; Takes any valid CSS style.
contents (see below)

Contents

Use {{ambox/message}} in the contents parameter. Example:

{{ambox/message
| 1 = Need some help ova here!
| 2 = This article needs cleaning up.
| 3 = You can help by editing it.
}}

produces...

“Need some help ova here!”
This article needs cleaning up.
You can help by editing it.

Examples

  • Ambox with no image: {{ambox | type = notice | contents = '''Lorem ipsum''' dolor sit amet.}}



  • Ambox with 2 images and custom style:
{{ambox 
| type     = images
| image    = Copyright.png
| image2   = Red copyright.png
| style    = font-family: Georgia, serif;
| contents = '''Lorem ipsum''' dolor sit amet.
}}


Template info.png This documentation is transcluded from Template:Ambox/doc.
https://theportalwiki.com/wiki/Template:Ambox
theportalwiki.com
crawl=CC-MAIN-2020-34
25451
application/http; msgtype=response
sha1:YN2LLI4NMVLSB5FZL6POCD3IZ46KMX3B
<urn:uuid:841154a0-549b-4a2b-a89d-060a660d8f02>
2020-08-06T15:24:40Z
96.126.105.219
text/html
sha1:TLC5ION6KBFAA5432UFAATNHVVGDI22N
<urn:uuid:df680f90-ea08-4d1c-8c35-1689bbfffcbe>
https://theportalwiki.com/wiki/Template:Ambox
response
<urn:uuid:05abe436-fc94-4f29-8c8c-b4928b440d02>
isPartOf: CC-MAIN-2020-34
publisher: Common Crawl
description: Wide crawl of the web for August 2020
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-189.ec2.internal
software: Apache Nutch 1.17 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.2-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: http://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/