Difference between pages "Template:Ambox" and "Template:Ambox/sandbox"

(Difference between pages)
Jump to: navigation, search
Page 1
Page 2
m (1 revision imported)
 
m (1 revision(s))
 
Line 1: Line 1:
{{#invoke:Message box|ambox}}{{#ifeq:{{{small}}}|left|[[Category:Articles using small message boxes]]}}<noinclude>
+
<noinclude>
{{documentation}}
+
{{Template sandbox notice}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
+
==CSS==
</noinclude>
+
<source lang="css">
 +
table.ambox {
 +
  width: 80%;
 +
  margin: 0 auto;
 +
  border-collapse: collapse;
 +
  background: #fbfbfb;
 +
  border: 1px solid #aaa;
 +
  border-left: 10px solid #1e90ff;      /* Default "notice" blue */
 +
}
 +
table.ambox th, table.ambox td {      /* The message body cell(s) */
 +
  padding: 0.25em 0.5em;              /* 0.5em left/right */
 +
}
 +
table.ambox td.ambox-image {          /* The left image cell */
 +
  width: 52px;
 +
  padding: 2px 0px 2px 0.5em;        /* 0.5em left, 0px right */
 +
  text-align: center;
 +
}
 +
table.ambox td.ambox-imageright {    /* The right image cell */
 +
  width: 52px;
 +
  padding: 2px 4px 2px 0px;          /* 0px left, 4px right */
 +
  text-align: center;
 +
}
 +
table.ambox-notice {
 +
  border-left: 10px solid #1e90ff;      /* Blue */
 +
/* border-right: 10px solid #1e90ff; */  /* If you want two blue bars */
 +
}
 +
table.ambox-serious {
 +
  border-left: 10px solid #b22222;      /* Red */
 +
}
 +
table.ambox-content {
 +
  border-left: 10px solid #f28500;      /* Orange */
 +
}
 +
table.ambox-style {
 +
  border-left: 10px solid #f4c430;      /* Yellow */
 +
}
 +
table.ambox-merge {
 +
  border-left: 10px solid #9932cc;      /* Purple */
 +
}
 +
table.ambox-growth {
 +
  border-left: 10px solid #228b22;      /* Green */
 +
}
 +
table.ambox-protection {
 +
  border-left: 10px solid #bba;          /* Gray */
 +
}
 +
table.ambox.ambox-mini {                /* small floating box variant */
 +
    float: right;
 +
    clear: right;
 +
    margin: 0 0 0 1em;
 +
    width: 25%;
 +
}</source>
 +
==Template==
 +
</noinclude><div class="metadata plainlinks ambox" style="
 +
  width:auto;
 +
  margin:-1px 10% 0 10%;
 +
  border-collapse: collapse;
 +
  border: 1px solid #aaa;
 +
  border-left: 10px solid {{#switch:{{{type|}}}
 +
  | serious  = #b22222
 +
  | content  = #f28500
 +
  | style    = #f4c430
 +
  | merge    = #9932cc
 +
  | protection=#bba
 +
  | notice  = #1e90ff
 +
  | growth  = #228b22
 +
  | #default = #1e90ff
 +
}};
 +
  background: #f8fcff;">{{
 +
#ifeq:{{{image}}}|none
 +
  | <!-- no image cell -->
 +
  | <div class="ambox-image" style="float:left;width: 52px; padding: 2px 0px 2px 0.5em;"> {{#switch:{{{image|{{{type|}}}}}}
 +
    | serious  = [[Image:Stop hand nuvola.svg|40px]]
 +
    | content  = [[Image:Emblem-important.svg|40px]]
 +
    | style    = [[Image:Broom icon.svg|40px]]
 +
    | merge    = [[Image:Merge-split-transwiki default.svg]]
 +
    | notice  = [[Image:Info non-talk.png|40px]]
 +
    | growth  = [[Image:Green plus icon.png]]
 +
    | blank    = <!-- empty image cell -->
 +
    | #default = {{{image|[[Image:Info non-talk.png|40px]]}}}
 +
  }}</div>
 +
}}
 +
{{#if:{{{imageright|}}}|
 +
  <div class="ambox-imageright" style="float:right;width: 52px; padding: 2px 0.5em 2px 0px;"> {{{imageright}}} </div>
 +
}}
 +
<div> {{{text}}} <noinclude>
 +
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
 +
</noinclude></div>
 +
 
 +
<div style="clear:both;"></div>
 +
</div>

Linked-in.jpg