Template:Ambox

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
 
(12 intermediate revisions by 3 users not shown)
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 -->
+
| obsolete  = imbox-obsolete
| #default  = ambox-notice
+
| archive  = imbox-obsolete
}}" style="{{{style|}}}">
+
| needsexample = imbox-needsexample
 +
| notice         <!-- notice = default -->
 +
| #default  = imbox-notice
 +
}}" style="{{{style|}}} style="width:100%" ">
 
<tr>
 
<tr>
{{#ifeq:{{{image|}}}|none
+
<td class="imbox-image">
| <!-- 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>
+
{{#if:{{{image|}}}
| <td class="ambox-image"><div style="width: 52px;">
+
   | {{{image}}}
  {{#ifeq:{{{image|}}}|blank
+
  | {{#switch:{{{type|}}}
  | &nbsp;
+
    | speedy    = [[Image:Imbox speedy deletion.png|40x40px]]  
   | {{#if:{{{image|}}}
+
    | delete    = [[Image:Imbox deletion.png|40x40px]]  
    | {{{image}}}
+
    | content    = [[Image:Imbox content.png|40x40px]]
    | {{#switch:{{{type|}}}
+
    | style      = [[Image:Imbox style.png|40x40px]]
      | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
+
    | move      = [[Image:Imbox move.png|40x40px]]
      | serious    <!-- This value is **deprecated**, please don't use it! -->
+
    | protection = [[Image:Imbox protection.png|40x40px]]
      | delete    = [[Image:Ambox deletion.png|40x40px]]
+
    | license    = [[Image:Imbox license.png|40x40px]]
      | content    = [[Image:Ambox content.png|40x40px]]
+
    | featured  = [[Image:Imbox featured.png|40x40px]]
      | style      = [[Image:Ambox style.png|40x40px]]
+
    | obsolete  = [[Image:Imbox obsolete.png|40x40px]]
      | merge      <!-- This value is **deprecated**, please don't use it! -->
+
    | archive  = [[Image:Imbox obsolete.png|40x40px]]
      | move      = [[Image:Ambox move.png|40x40px]]
+
    | proposal  = [[Image:Imbox proposal.png|48x48]]
      | protection = [[Image:Ambox protection.png|40x40px]]
+
    | needsexample = [[Image:Imbox needs example.png|48x48px]]
      | notice     <!-- notice = default -->
+
    | notice         <!-- notice = default -->
      | #default  = [[Image:Ambox notice.png|40x40px]]
+
    | #default  = [[Image:Imbox notice.png|40x40px]]
      }}
+
 
     }}
 
     }}
  }}</div></td>
 
 
}}
 
}}
<td class="ambox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
+
</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>

Latest revision as of 07:30, 4 June 2018

[create] Template documentation
Personal tools
General
About This Wiki