Template

Difference between revisions of "Ambox"

From Joomla! Documentation

m (archive image switch added to ifeq call)
m (adding icons)
(11 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
   | style    = ambox-style
 
   | style    = ambox-style
 
   | merge    = ambox-merge
 
   | merge    = ambox-merge
 +
  | split    = ambox-split
 
   | notice  = ambox-notice
 
   | notice  = ambox-notice
 
   | growth  = ambox-growth
 
   | growth  = ambox-growth
 
   |protection= ambox-protection
 
   |protection= ambox-protection
 +
  | archive  = ambox-archive
 +
  | delete  = ambox-delete
 +
  | none    = ambox-none
 
   | #default = ambox-notice
 
   | #default = ambox-notice
 
}}">
 
}}">
Line 15: Line 19:
 
     | serious  = [[Image:Stop_hand_nuvola.svg.png|left|{{{imagesize|40px}}}]]
 
     | serious  = [[Image:Stop_hand_nuvola.svg.png|left|{{{imagesize|40px}}}]]
 
     |protection= [[Image:Padlock.png|left|{{{imagesize|50px}}}]]
 
     |protection= [[Image:Padlock.png|left|{{{imagesize|50px}}}]]
     | content  = [[Image:Quill silver.png|left|{{{imagesize|50px}}}]]
+
     | content  = [[Image:Quill_icon.png|left|{{{imagesize|60px}}}]]
 
     | style    = [[Image:Broom-icon.png|left|{{{imagesize|40px}}}]]
 
     | style    = [[Image:Broom-icon.png|left|{{{imagesize|40px}}}]]
     | merge    = (merge-icon)
+
     | merge    = [[Image:Merge-icon.png|left|{{{imagesize|50px}}}]]
 +
    | split    = [[Image:Split-icon.png|left|{{{imagesize|50px}}}]]
 
     | notice  = [[Image:Info_non-talk.png|left|{{{imagesize|40px}}}]]
 
     | notice  = [[Image:Info_non-talk.png|left|{{{imagesize|40px}}}]]
 
     | jdoc    = [[Image:Documentation_all_together_tranparent_small.png|left|{{{imagesize|100px}}}]]
 
     | jdoc    = [[Image:Documentation_all_together_tranparent_small.png|left|{{{imagesize|100px}}}]]
     | archive  = [[File:Replacement filing cabinet.png|left|{{{imagesize|100px}}}]]
+
     | archive  = [[File:Replacement filing cabinet.png|left|{{{imagesize|50px}}}]]
 +
    | delete  = [[File:Delete-icon.png|left|{{{imagesize|50px}}}]]
 +
    | 1.5      = {{JVer|1.5}}
 +
    | 2.5      = {{JVer|2.5}}
 +
    | 3.0      = {{JVer|3.0}}
 +
    | 3.1      = {{JVer|3.1}}
 +
    | 3.x      = {{JVer|3.x}}
 
     | blank
 
     | blank
 
     |#default  = <!-- empty image cell -->
 
     |#default  = <!-- empty image cell -->

Revision as of 19:59, 25 May 2013


Padlock.png

This page is currently protected from editing . (protection log).
Please discuss changes on the talk page or request unprotection. You may use {{editprotected}} on the talk page to ask for an administrator to make an edit for you.

[view] [edit] [history]

Template-info.pngTemplate documentation

{{ambox}} is the base tempate used by several "alert message boxes" which can be placed at the top of an article. It generates a two column table with an optional "message icon". The message text must be provided by the calling template in the {{{text}}} parameter.

ambox should never be used directly, but only via "proxy templates" such as {{notice}}, {{inuse}}, {{underconstruction}}, or other Marker templates. Those templates provide default parameters to have a consistant look and feel for alert message boxes including a standard message text and appropriate category tags.

Parameters[edit]

Mandatory:

text
the message text to display

Optional:

type (notice)
controls the box color
image (none)
a notification icon.
imageright (none)
a supplemental image from the Image: namespace, shown in a third (right) column

type[edit]

Value CSS class Preview
serious ambox-serious
serious lorem ipsum
content ambox-content
content lorem ipsum
style ambox-style
style lorem ipsum
merge ambox-merge
merge lorem ipsum
notice ambox-notice
notice lorem ipsum
growth ambox-growth
growth lorem ipsum
protection ambox-protection
protection lorem ipsum
#default ambox-notice see notice

The color scheme is based off the official Joomla! logo and working group color palette and available for users of the Monobook and Joomla! skins.

image[edit]

Please update this list to the image names used.
Value Image name
serious Stop hand nuvola.svg.png
content
Quill icon.png
style Broom-icon.png
merge Merge-icon.png
notice Info non-talk.png
growth 50px
jdoc Documentation all together tranparent small.png
blank empty cell
#default empty cell

imageright[edit]

An optional, arbitrary image from the File namespace. If this value is not empty, a third right column in added to the alert box to display the given image.

Try it in the Template:Ambox/sandbox.

Stylesheet[edit]

table.ambox           (basic table settings)
table.ambox-type      (text and border colors)
td.ambox-image        (left icon column)
td.ambox-imageright   (right image column)
table.standard-main   (namespace specific overrides {{main talk file other}})
table.standard-talk
table.standard-file
table.standard-other

Ambox is based on: Wikipedia:Ambox (edit|talk|history|links|watch|logs)