Template:Ambox: Difference between revisions
Jump to navigation
Jump to search
(new Ambox code base (shameless pulled from somewhere else)) |
m (Text replacement - "(\[\[)(:?)[iI]mage:" to "$1$2File:") |
||
Line 7: | Line 7: | ||
| #default =#1e90ff; | | #default =#1e90ff; | ||
}} padding: 4px 8px; background:#efefef; min-height: 44px;">}} | }} padding: 4px 8px; background:#efefef; min-height: 44px;">}} | ||
<div style="position: absolute;">[[ | <div style="position: absolute;">[[File:{{#if:{{{image|}}} | ||
| {{{image}}} | | {{{image}}} | ||
| {{#switch:{{{type|}}} | | {{#switch:{{{type|}}} |
Revision as of 09:29, 11 May 2018
Template documentation (for the template shown above, sometimes hidden or invisible)
Usage
Simple usage example:
{{ambox | text = Some text.}}
OR:
{{ambox | type = content | text = Warning - Some text. }}
Available List of parameters
{{ambox | type = delete / content / style / notice / move / protected | image = Picture.Png / Picture.Png|alt=Picture (if the parameter does not present, default type icon will be supplied) | text = Text for a big box, for the top of articles. | style = Different table style. (preferably should not be used) | text-style = same as the above for text.
Article message box types
The following examples use different type parameters but use no image parameters thus they use the default images for each type.
type=delete – Deletion issues, such as {{delete}}.
Other images
The default images shown above are mostly for convenience. In many cases it is more appropriate to use more specific images. These example use the image parameter to specify an image other than the default images.
{{ambox | type = notice | image = wiki-gears.png | text = Something Something Something }}
Known issues
Text is placed outside the am-box when used on an auto-indented line. (falls outside general intended usage)
:{{ambox | type = delete | text = type=<u>delete</u> – Deletion issues, such as {{t|delete}}. }}
type=delete – Deletion issues, such as {{delete}}.
- NTS: Potentially something to do with CSS and HTML block-elements. Check RoB CSS code/behaviour against other online MW versions, Might be outdated/issue with initial Wikia imported CSS codes. (--.MvGulik. 02:39, 31 January 2019 (EST))
Visit Template:Ambox/doc to edit this text! (How does this work?)