• Home
  • Random
  • Recent changes
  • Special pages
  • Community portal
  • Settings
  • About The Wiki Camp 2
  • Disclaimers
The Wiki Camp 2
  • Create account
  • Log in

Template:Ambox

  • Template
  • Discussion
  • Language
  • Watch
  • View history
  • View source
    • What links here
    • Permanent link
    • Page information
Template documentation[view] [edit] [history] [purge]
You may be looking for Omboxes instead.
Those look like this, without the border on the side.

Okay, this template documentation has been empty for 2 years and I Google it every single time and I don't want to anymore. Here's the basic stuff I need to remember every single time:

Template:Ambox has the minimal parameters of {{ambox|type = |text = }}

It has 8 default styles, defaulting to type = notice.

type = speedy
type = delete
type = content
type = style
type = huh
type = notice
type = move
type = protection


We don't have File:Ambox_warning_pn.svg, for some reason.

You can shove an image into it like this {{ambox|image = |text = }}

The default templates set 40px wide images.
Use image = none to have no image.

You can also make it small by adding small = left, I guess:

You can put an image in these, too. They're 20px by default.

You can add a CSS class to an ambox using {{ambox|class = |text = }}.

WARNING: SCARY!!!!!!!!!!

Template:Ambox has built in CSS targeting {{ambox|style = |text = }} and uses regular CSS jargon.

The color on the side is border-left: 10px solid #3366cc; by default.

After that point I just write everything manually. The template does do other stuff - go look at Wikipedia.

The above documentation is transcluded from Template:Ambox/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://camp2.rectangle.zone/index.php?title=Template:Ambox&oldid=8354"
Category:
  • Article message templates with missing parameters
Last edited on 11 September 2022, at 03:40

Languages

    This page is not available in other languages.

    The Wiki Camp 2
    • This page was last edited on 11 September 2022, at 03:40.
    • This page has been accessed 171 times.
    • Privacy policy
    • About The Wiki Camp 2
    • Disclaimers
    • Desktop