Template:Ambox: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
imported>Maintenance script-gpuser
(Automated Import)
 
(add qud brown)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude><includeonly><table style="{{{style|}}}" class="plainlinks ambox {{#ifeq:{{{format|}}}|tiny|ambox-tiny}} {{#switch:{{{border|}}}
<onlyinclude><includeonly><div class="nomobile"><table style="{{{style|}}}" class="plainlinks ambox {{#ifeq:{{{format|}}}|tiny|ambox-tiny}} {{#switch:{{{border|}}}
   | red      = ambox-red
   | red      = ambox-red
   | orange  = ambox-orange
   | orange  = ambox-orange
Line 7: Line 7:
   | green    = ambox-green
   | green    = ambox-green
   | gray    = ambox-gray
   | gray    = ambox-gray
  | qudcyan  = ambox-qud-c
  | qudbrown = ambox-qud-w-dark
   | #default = ambox-green
   | #default = ambox-green
}} {{{class|}}}">
}} {{{class|}}}">
<tr>
<tr>
<td class="ambox-image">{{{image|[[File:{{{icon|Information.svg{{!}}48px}}}|{{#ifeq:{{{format|}}}|tiny|x20px}}|alt=]]}}}</td>
<td class="ambox-image">{{{image|[[File:{{{icon|AmboxRadio.png{{!}}48px}}}|{{#ifeq:{{{format|}}}|tiny|x20px}}|alt=]]}}}</td>
<td class="ambox-text">{{{type|}}}
<td class="ambox-text">{{{type|}}}
{{#if:{{{info|}}}|{{#ifeq:{{{format|}}}|tiny||<div class="amsmalltext">
{{#if:{{{info|}}}|{{#ifeq:{{{format|}}}|tiny||<div class="amsmalltext">
{{{info}}}
{{{info}}}
</div>}}}}</td></tr></table></includeonly></onlyinclude><noinclude>
</div>}}}}</td></tr></table></div><div class="mobileonly" style="text-align:center">{{{type|}}}{{#if:{{{info|}}}|</br>{{{info}}} }}</div></includeonly></onlyinclude><noinclude>
{{doc}}
{{doc}}


[[Category:Notice templates]]</noinclude>
[[Category:Notice templates]]</noinclude>

Latest revision as of 20:16, 3 April 2022

Template-info.png Documentation

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
qudcyan
ambox-qud-c
|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
* I am info

Yellow

I am type
* I am info

Green

I am type
* I am info

Purple

I am type
* I am info

Blue

I am type
* I am info

Orange

I am type
* I am info

Gray

I am type
* I am info

Qudcyan

I am type
* I am info