Template:Imbox: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>David Levy switched to imbox-specific image files for future flexibility and replaced PD icon with example/default license icon that doesn't specify copyright status |
meta>Davidgothberg Fixing the empty "image=" parameter bug. Dropping the "image=blank" option. (Tested in sandbox.) |
||
Line 1: | Line 1: | ||
<table class="metadata plainlinks" style="margin: 4px 10%; border-collapse: collapse; border: 1px solid #aaa; background: #fbfbfb; | <table class="metadata plainlinks" style="margin: 4px 10%; border-collapse: collapse; border: 1px solid #aaa; background: #fbfbfb; | ||
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
| speedy = border: 3px solid #b22222; background: #fee; | |||
| delete = border: 3px solid #b22222; | |||
| content = border: 3px solid #f28500; | |||
| style = border: 3px solid #f4c430; | |||
| move = border: 3px solid #9932cc; | |||
| protection = border: 3px solid #bba; | |||
| license = border: 3px solid #88a; background: #f7f8ff; | |||
| featured = border: 3px solid #cba135; | |||
| notice <!-- notice = default --> | |||
| #default = border: 3px solid #1e90ff; | |||
}} {{{style|}}}"> | }} {{{style|}}}"> | ||
<tr> | <tr> | ||
<td style="border: none; padding: 2px 0px 2px 0.5em; text-align: center;"> | <td style="border: none; padding: 2px 0px 2px 0.5em; text-align: center;"> | ||
{{#ifeq:{{{image|}}}|none | {{#ifeq:{{{image|}}}|none | ||
| <!-- No image cell; empty cell necessary for text cell to have 100% width --> | |||
| <div style="width:52px;"> | |||
{{#if:{{{image|}}} | |||
| {{{image}}} | |||
| {{#switch:{{{type|}}} | |||
| speedy = [[Image:Imbox speedy deletion.png|40x40px]] | | speedy = [[Image:Imbox speedy deletion.png|40x40px]] | ||
| delete = [[Image:Imbox deletion.png|40x40px]] | | delete = [[Image:Imbox deletion.png|40x40px]] | ||
Line 25: | Line 28: | ||
| license = [[Image:Imbox license.png|40x40px]] | | license = [[Image:Imbox license.png|40x40px]] | ||
| featured = [[Image:Imbox featured.png|40x40px]] | | featured = [[Image:Imbox featured.png|40x40px]] | ||
| notice | | notice <!-- notice = default --> | ||
| #default = [[Image:Imbox notice.png|40x40px]] | |||
| #default = | }} | ||
}}</div> | }}</div> | ||
}}</td> | }}</td> |