Difference between revisions of "Template:Ambox/doc"
From Project: Gorgon Wiki
Donni Iris (talk | contribs) (add visible code for each example) |
|||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| + | {{SPW|is not on|name=Ambox}} | ||
| + | |||
==Description and usage== | ==Description and usage== | ||
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!''' | ||
| Line 34: | Line 36: | ||
== Examples == | == Examples == | ||
| − | === Default === | + | === Default (green) === |
<pre> | <pre> | ||
{{ambox | {{ambox | ||
| Line 47: | Line 49: | ||
}} | }} | ||
| − | === Red + | + | === Red + Image === |
<pre> | <pre> | ||
{{ambox | {{ambox | ||
| − | | image = [[File: | + | | image = [[File:Old skeleton guard.png|50px]] |
| border = red | | border = red | ||
| type = I am type | | type = I am type | ||
| Line 59: | Line 61: | ||
{{ambox | {{ambox | ||
| − | | image = [[File: | + | | image = [[File:Old skeleton guard.png|50px]] |
| border = red | | border = red | ||
| type = I am type | | type = I am type | ||
| Line 68: | Line 70: | ||
=== Other colors === | === Other colors === | ||
==== Yellow ==== | ==== Yellow ==== | ||
| + | <pre> | ||
| + | {{ambox | ||
| + | | border = yellow | ||
| + | | type = I am type | ||
| + | | info = | ||
| + | * I am info | ||
| + | }} | ||
| + | </pre> | ||
| + | |||
{{ambox | {{ambox | ||
| border = yellow | | border = yellow | ||
| Line 75: | Line 86: | ||
}} | }} | ||
| − | ==== Green ==== | + | ==== Green (default color) ==== |
| + | <pre> | ||
| + | {{ambox | ||
| + | | border = green | ||
| + | | type = I am type | ||
| + | | info = | ||
| + | * I am info | ||
| + | }} | ||
| + | </pre> | ||
| + | |||
{{ambox | {{ambox | ||
| border = green | | border = green | ||
| Line 84: | Line 104: | ||
==== Purple ==== | ==== Purple ==== | ||
| + | <pre> | ||
| + | {{ambox | ||
| + | | border = purple | ||
| + | | type = I am type | ||
| + | | info = | ||
| + | * I am info | ||
| + | }} | ||
| + | </pre> | ||
| + | |||
{{ambox | {{ambox | ||
| border = purple | | border = purple | ||
| Line 92: | Line 121: | ||
==== Blue ==== | ==== Blue ==== | ||
| + | <pre> | ||
| + | {{ambox | ||
| + | | border = blue | ||
| + | | type = I am type | ||
| + | | info = | ||
| + | * I am info | ||
| + | }} | ||
| + | </pre> | ||
| + | |||
{{ambox | {{ambox | ||
| border = blue | | border = blue | ||
| Line 100: | Line 138: | ||
==== Orange ==== | ==== Orange ==== | ||
| + | <pre> | ||
| + | {{ambox | ||
| + | | border = orange | ||
| + | | type = I am type | ||
| + | | info = | ||
| + | * I am info | ||
| + | }} | ||
| + | </pre> | ||
| + | |||
{{ambox | {{ambox | ||
| border = orange | | border = orange | ||
| Line 108: | Line 155: | ||
==== Gray ==== | ==== Gray ==== | ||
| + | <pre> | ||
| + | {{ambox | ||
| + | | border = gray | ||
| + | | type = I am type | ||
| + | | info = | ||
| + | * I am info | ||
| + | }} | ||
| + | </pre> | ||
| + | |||
{{ambox | {{ambox | ||
| border = gray | | border = gray | ||
| Line 116: | Line 172: | ||
==See also== | ==See also== | ||
| − | |||
*[[wikipedia:Template:Ambox|Template:Ambox]] on Wikipedia | *[[wikipedia:Template:Ambox|Template:Ambox]] on Wikipedia | ||
*[[Template:Notice]] - a version of this that does not require CSS manipulation | *[[Template:Notice]] - a version of this that does not require CSS manipulation | ||
| − | + | <includeonly> | |
[[Category:Article management templates]] | [[Category:Article management templates]] | ||
| − | + | </includeonly><noinclude> | |
[[Category:Template documentation]] | [[Category:Template documentation]] | ||
| − | + | </noinclude> | |
Latest revision as of 11:33, 28 April 2026
| This template was copied from Template:Ambox on Wikia Templates. That wiki should periodically be checked for a new version of this template. |
Contents
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.
Dependencies
CSS
This template needs the following:
- Copy the CSS to your MediaWiki:Common.css from the following page:
| CSS from Template:Ambox/code.css |
|---|
/* === Ambox Styles === */
/* Ambox design */
.ambox {
font-size: 95%;
width: 80%;
margin: 0 auto;
border: 1px #AAA solid;
border-left: 10px solid #228b22;
border-collapse: collapse;
background-color: #EEE;
}
/* Ambox colours */
.ambox-blue {
border-left: 10px solid #1e90ff; /* Blue (notice) */
}
.ambox-red {
border-left: 10px solid #b22222; /* Red (delete/serious) */
}
.ambox-orange {
border-left: 10px solid #f28500; /* Orange (content) */
}
.ambox-yellow {
border-left: 10px solid #f4c430; /* Yellow (style) */
}
.ambox-purple {
border-left: 10px solid #9932cc; /* Purple (merge) */
}
.ambox-gray {
border-left: 10px solid #bba; /* Gray (protection) */
}
.ambox-green {
border-left: 10px solid #228b22; /* Green */
}
/* Ambox small text */
.ambox-smalltext {
font-size: smaller;
margin-top:0.5em;
margin-left:0.8em;
}
/* Ambox image */
.ambox-image { /* The left image cell */
width: 60px;
padding: 2px 0px 2px 0.5em; /* 0.5em left, 0px right */
text-align: center;
}
@media print { .ambox { display: none; } } /* no ambox when printing */
|
Named parameters
- |image=
- image for use on the left, defaults to File:Wiki.png. Takes full image code, e.g.
[[File:Wiki.png|50px]]. The image box area has a limit of 60px width. - |type=
- top line text
- |info=
- list of extra info
- |border=
- border colour (defaults to green)
- red
- ambox-red (serious issue)
- orange
- ambox-orange (important issue)
- yellow
- ambox-yellow (mild issue)
- green
- ambox-green (something good)
- purple
- ambox-purple
- blue
- ambox-blue
- gray
- ambox-gray
- |style=
- extra style parameters (unlikely to be used)
Examples
Default (green)
{{ambox
| type = I am type
| info = I am info
}}
| I am type
I am info |
Red + Image
{{ambox
| image = [[File:Old skeleton guard.png|50px]]
| border = red
| type = I am type
| info =
* I am info
}}
I am type
|
Other colors
Yellow
{{ambox
| border = yellow
| type = I am type
| info =
* I am info
}}
I am type
|
Green (default color)
{{ambox
| border = green
| type = I am type
| info =
* I am info
}}
I am type
|
Purple
{{ambox
| border = purple
| type = I am type
| info =
* I am info
}}
I am type
|
Blue
{{ambox
| border = blue
| type = I am type
| info =
* I am info
}}
I am type
|
Orange
{{ambox
| border = orange
| type = I am type
| info =
* I am info
}}
I am type
|
Gray
{{ambox
| border = gray
| type = I am type
| info =
* I am info
}}
I am type
|
See also
- Template:Ambox on Wikipedia
- Template:Notice - a version of this that does not require CSS manipulation