Template:Ambox

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
<table class="metadata plainlinks ambox
+
<table class="plainlinks imbox
 
{{#switch:{{{type|}}}
 
{{#switch:{{{type|}}}
| speedy    = ambox-speedy
+
| speedy    = imbox-speedy
| serious    <!-- This value is **deprecated**, please don't use it! -->
+
| delete    = imbox-delete
| delete    = ambox-delete
+
| content    = imbox-content
| content    = ambox-content
+
| style      = imbox-style
| style      = ambox-style
+
| move      = imbox-move
| merge      <!-- This value is **deprecated**, please don't use it! -->
+
| protection = imbox-protection
| move      = ambox-move
+
| license    = imbox-license
| protection = ambox-protection
+
| featured  = imbox-featured
| notice     <!-- notice = default -->
+
| notice         <!-- notice = default -->
| #default  = ambox-notice
+
| #default  = imbox-notice
 
}}" style="{{{style|}}}">
 
}}" style="{{{style|}}}">
 
<tr>
 
<tr>
 
{{#ifeq:{{{image|}}}|none
 
{{#ifeq:{{{image|}}}|none
 
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td>
 
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td>
| <td class="ambox-image"><div style="width: 52px;">
+
| <td class="imbox-image">
   {{#ifeq:{{{image|}}}|blank
+
   {{#if:{{{image|}}}
  | &nbsp;
+
   | {{{image}}}
   | {{#if:{{{image|}}}
+
  | {{#switch:{{{type|}}}
    | {{{image}}}
+
    | speedy    = [[Image:Imbox speedy deletion.png|40x40px]]  
    | {{#switch:{{{type|}}}
+
    | delete    = [[Image:Imbox deletion.png|40x40px]]  
      | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
+
    | content    = [[Image:Imbox content.png|40x40px]]
      | serious    <!-- This value is **deprecated**, please don't use it! -->
+
    | style      = [[Image:Imbox style.png|40x40px]]
      | delete    = [[Image:Ambox deletion.png|40x40px]]
+
    | move      = [[Image:Imbox move.png|40x40px]]
      | content    = [[Image:Ambox content.png|40x40px]]
+
    | protection = [[Image:Imbox protection.png|40x40px]]
      | style      = [[Image:Ambox style.png|40x40px]]
+
    | license    = [[Image:Imbox license.png|40x40px]]
      | merge      <!-- This value is **deprecated**, please don't use it! -->
+
     | featured  = [[Image:Imbox featured.png|40x40px]]
      | move      = [[Image:Ambox move.png|40x40px]]
+
    | notice          <!-- notice = default -->
      | protection = [[Image:Ambox protection.png|40x40px]]
+
    | #default  = [[Image:Imbox notice.png|40x40px]]
      | notice     <!-- notice = default -->
+
      | #default  = [[Image:Ambox notice.png|40x40px]]
+
      }}
+
 
     }}
 
     }}
   }}</div></td>
+
   }}</td>
 
}}
 
}}
<td class="ambox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
+
<td class="imbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
{{#if:{{{imageright|}}}
| <td class="ambox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>
+
| <td class="imbox-imageright"> {{{imageright}}} </td>
 
}}
 
}}
 
</tr>
 
</tr>
</table>
+
{{#if:{{{below|}}}
<!-- Detect and report usage with faulty "type" parameter: -->
+
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="imbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
{{#switch:{{{type|}}}
+
}}
|   <!-- No type fed, is also valid input -->
+
</table><noinclude>
| speedy
+
| delete
+
| content
+
| style
+
| move
+
| protection
+
| notice    =   <!-- Do nothing, valid "type" -->
+
| #default  = [[Category:Ambox templates using deprecated types|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
+
}}<noinclude>
+
  
 
{{pp-template|small=yes}}
 
{{pp-template|small=yes}}
 
{{Documentation}}
 
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 07:18, 26 September 2008

[create] Template documentation
Personal tools
General
About This Wiki