틀:Tmbox: 두 판 사이의 차이

Revi HQ
내용 추가됨 내용 삭제됨
(Changed design based off of Wikipedia:Deletion message boxes by User:Edokter)
잔글 (Code derived from imbox, updated to standardised talk page brown style, trying the darker grey border other boxes uses on the move type. This code is NOT ready, but is a basis for discussion.)
1번째 줄: 1번째 줄:
<table class="plainlinks" style="margin: 4px 10%; border-collapse: collapse; background: #f8eaba; border: 1px solid #c0c090;
<table class="metadata plainlinks tmbox {{
#switch: {{{type|}}}
{{#switch:{{{type|}}}
| speedy = border: 1px solid #c0c090;
| serious = tmbox-serious
| delete = border: 1px solid #c0c090;
| content = tmbox-content
| content = border: 1px solid #c0c090;
| style = tmbox-style
| style = border: 1px solid #c0c090;
| merge = tmbox-merge
| move = border: 1px solid #aaa;
| notice = tmbox-notice
| protection = border: 1px solid #c0c090;
| #default = tmbox-notice
| notice
}}" style="width: 80%; margin: 0 auto; background-color: #ecfcf4; line-height: 1.5em; font-size: xx-small; color: #000000; text-align: center; border: 1px solid #aaa; border-left: 5px solid #b22222; {{{style|}}}">
| #default = border: 1px solid #c0c090;
}} {{{style|}}}">
<tr>
<tr>
{{#ifeq:{{{image|}}}|none
{{
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
#ifeq: {{{image}}} | none
| <td style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;">
| <!-- no image cell; empty cell necessary for text cell to have 100% width -->
{{#if:{{{image|}}}
| <td class="ambox-image" style="width:26px">{{
#switch: {{{image|{{{type|}}}}}}
| {{{image}}}
| {{#switch:{{{type|}}}
| serious = [[Image:Stop hand nuvola.svg|20px]]
| content = [[Image:Emblem-important.svg|20px]]
| speedy = [[Image:Imbox speedy deletion.png|40x40px]]
| style = [[Image:Broom icon.svg|20px]]
| delete = [[Image:Imbox deletion.png|40x40px]]
| merge = [[Image:Merge-split-transwiki default.svg]]
| content = [[Image:Imbox content.png|40x40px]]
| notice = [[Image:Info non-talk.png|20px]]
| style = [[Image:Imbox style.png|40x40px]]
| blank = [[Image:No image.svg]]
| move = [[Image:Imbox move.png|40x40px]]
| #default = {{{image|[[Image:Info non-talk.png|20px]]}}}
| protection = [[Image:Imbox protection.png|40x40px]]
| notice <!-- notice = default -->
| #default = [[Image:Imbox notice.png|40x40px]]
}}
}}</td>
}}</td>
}}
}}
<td class="ambox-text" style="{{{textstyle|}}}">{{{text}}}</td>
<td style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{
| <td style="border: none; padding: 2px 0.9em 2px 0px; text-align: center;"> {{{imageright}}} </td>
#if: {{{imageright|}}}
| <td class="ambox-imageright" style="width:26px">{{{imageright}}}</td>
}}
}}
</tr>
</tr>
</table><noinclude>
</table><noinclude>

{{documentation}}
<!-- {{pp-template|small=yes}} -->
{{Documentation}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

2008년 5월 30일 (금) 12:10 판

Template documentation[create]