틀:Imbox: 두 판 사이의 차이

Revi HQ
내용 추가됨 내용 삭제됨
(switched to imbox-specific image files for future flexibility and replaced PD icon with example/default license icon that doesn't specify copyright status)
(Fixing the empty "image=" parameter bug. Dropping the "image=blank" option. (Tested in sandbox.))
1번째 줄: 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;
| speedy = border: 3px solid #b22222; background: #fee;
| delete = border: 3px solid #b22222;
| delete = border: 3px solid #b22222;
| content = border: 3px solid #f28500;
| content = border: 3px solid #f28500;
| style = border: 3px solid #f4c430;
| style = border: 3px solid #f4c430;
| move = border: 3px solid #9932cc;
| move = border: 3px solid #9932cc;
| protection = border: 3px solid #bba;
| protection = border: 3px solid #bba;
| license = border: 3px solid #88a; background: #f7f8ff;
| license = border: 3px solid #88a; background: #f7f8ff;
| featured = border: 3px solid #cba135;
| featured = border: 3px solid #cba135;
| notice <!-- notice = default -->
| notice <!-- notice = default -->
| #default = border: 3px solid #1e90ff;
| #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 -->
| <!-- No image cell; empty cell necessary for text cell to have 100% width -->
| <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
| <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]]
25번째 줄: 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 = [[Image:Imbox notice.png|40x40px]]
| notice <!-- notice = default -->
| blank = &nbsp;
| #default = [[Image:Imbox notice.png|40x40px]]
}}
| #default = {{{image|[[Image:Imbox notice.png|40x40px]]}}}
}}</div>
}}</div>
}}</td>
}}</td>

2008년 5월 11일 (일) 13:30 판

틀:Pp-template

Template documentation[create]