Difference between revisions of "Template:Ambox"
Jump to navigation
Jump to search
(This whole ordeal seems unnecessary complex, causes some issues elsewhere, is barely used on any content pages and appears to rely on #invoke (i.e., Lua modules), which this wiki does not have support for. I have therefore replaced it with simpler code from https://help.gamepedia.com/Template:Ambox) |
m |
||
Line 16: | Line 16: | ||
</div>}}}}</td></tr></table></includeonly></onlyinclude><noinclude> | </div>}}}}</td></tr></table></includeonly></onlyinclude><noinclude> | ||
{{documentation}} | {{documentation}} | ||
− | [[Category:Notice templates]]</noinclude> | + | [[Category:Notice templates]] |
+ | [[Category:Pages_Marked_For_Deletion]] | ||
+ | </noinclude> |
Revision as of 04:58, 26 May 2020
The template is a notice template
Named parameters
- |icon=
- image file name for use on the left, e.g. "Stub.png"
- |image=
- left (image) cell content, overrides
|icon=
if provided. - |type=
- top line text
- |info=
- list of extra info
- |border=
- border colour (defaults to green)
- red
- ambox-red (serious issue)
- yellow
- ambox-yellow (mild issue)
- green
- ambox-green (good!)
- purple
- ambox-purple (technical change)
- blue
- ambox-blue (notice)
- orange
- ambox-orange (stub colour)
- gray
- ambox-gray
- |format
tiny
to display a small, left-aligned box showing only the|type=
value; any other value displays the full ambox.- |style=
- extra style parameters (unlikely to be used)
Examples
Default
I am type
I am info |
Tiny
I am tiny |
Red + image
I am type
|
Yellow
I am type
|
Green
I am type
|
Purple
I am type
|
Blue
I am type
|
Orange
I am type
|
Gray
I am type
|
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. Please add categories to the /doc subpage. Subpages of this template. |