Difference between revisions of "Template:Ambox"

From Taijitu
Jump to: navigation, search
(Created; imported from Wikipedia)
 
(Fixed and added instructions)
Line 1: Line 1:
<table style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}}
+
{|style="margin: auto; width: 75%; outline: grey solid thin; border-collapse: collapse;" border="0"
  | serious  = ambox-serious
+
|-
  | content  = ambox-content
+
|style="background: #1E90FF; width: 6px; height: 40px; padding-top: 0.6cm; padding-bottom: 0.6cm;"|
  | style    = ambox-style
+
|style="width: 45px;"|
  | merge    = ambox-merge
+
|align="left"|{{{text}}}
  | notice  = ambox-notice
+
|}
  | #default = ambox-notice
+
 
}}">
+
<noinclude>
<tr>
+
For some reason, the wikipedia version of "Ambox" doesn't want to work for us (I'm guessing a lack of style sheets, but I'm not really sure).  As a fix, I've changed it so it works for us, but so far, it's fairly basic.  I will work on getting up and running properly as soon as I can, but it's here for now.
<td class="ambox-image">
+
 
{{#ifeq:{{{image}}}|none
+
===How to Use "Ambox"===
  | <!-- no image cell; empty cell necessary for text cell to have 100% width -->
+
use this template, and replace the relevant bits with what you want:
  | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
+
 
    | serious  = [[Image:Stop hand nuvola.svg|40px]]
+
<nowiki>
    | content  = [[Image:Emblem-important.svg|40px]]
+
{{ambox|text="<insert you text here>"}}
    | style   = [[Image:Broom icon.svg|40px]]
+
    | merge    = [[Image:Merge-split-transwiki default.svg]]
+
    | notice  = [[Image:Info non-talk.png|40px]]
+
    | blank    = [[Image:No image.svg]]
+
    | #default = {{{image|[[Image:Info non-talk.png|40px]]}}}
+
  }}</div>
+
}}</td>
+
<td class="ambox-text">{{{text}}}</td>
+
{{#if:{{{imageright|}}}|
+
  <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
+
}}
+
</tr>
+
</table><noinclude>
+
{{template doc}}
+
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
+
 
</noinclude>
 
</noinclude>

Revision as of 11:21, 15 February 2008

{{{text}}}


For some reason, the wikipedia version of "Ambox" doesn't want to work for us (I'm guessing a lack of style sheets, but I'm not really sure). As a fix, I've changed it so it works for us, but so far, it's fairly basic. I will work on getting up and running properly as soon as I can, but it's here for now.

How to Use "Ambox"

use this template, and replace the relevant bits with what you want:

{{ambox|text="<insert you text here>"}} </noinclude>