ઢાંચો:Tmbox/core: આવૃત્તિઓ વચ્ચેનો તફાવત

વિકિપીડિયામાંથી
Content deleted Content added
add type synonyms from ambox for mbox compatibility
નાનું Reverted edits by Happy-melon (talk) to last version by Davidgothberg
લીટી ૧: લીટી ૧:
<table class="plainlinks tmbox {{#switch:{{{type|}}}
<table class="plainlinks" style="margin: 4px 10%; border-collapse: collapse; background: #f8eaba; border: 1px solid #c0c090;
| speedy = tmbox-speedy
| delete <!-- delete = serious -->
| serious = tmbox-delete
| content = tmbox-content
| style = tmbox-style
| move <!-- move = merge -->
| merge = tmbox-move
| protection = tmbox-protection
| notice <!-- notice = default -->
| #default = tmbox-notice
}}" style="margin: 4px 10%; border-collapse: collapse; background: #f8eaba; border: 1px solid #c0c090;
{{#ifeq:{{{small|}}}|yes| float: right; clear: both; margin: 4px 0 4px 1em; width: 238px; font-size: 85%; line-height: 1.25em; }}
{{#ifeq:{{{small|}}}|yes| float: right; clear: both; margin: 4px 0 4px 1em; width: 238px; font-size: 85%; line-height: 1.25em; }}
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
| speedy = border: 2px solid #b22222; background: #fee;
| speedy = border: 2px solid #b22222; background: #fee;
| serious
| delete = border: 2px solid #b22222;
| delete = border: 2px solid #b22222;
| content = border: 2px solid #f28500;
| content = border: 2px solid #f28500;
| style = border: 2px solid #f4c430;
| style = border: 2px solid #f4c430;
| merge
| move = border: 2px solid #9932cc;
| move = border: 2px solid #9932cc;
| protection <!-- protection = notice = default -->
| protection <!-- protection = notice = default -->
| notice
| notice
| #default = border: 1px solid #c0c090;
| #default = border: 1px solid #c0c090;
લીટી ૨૮: લીટી ૧૫:
{{#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: 1px;"></td>
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
| <td class="tmbox-image" style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;">
| <td style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;">
{{#if:{{{image|}}}
{{#if:{{{image|}}}
| {{{image}}}
| {{{image}}}
| [[Image:{{#switch:{{{type|}}}
| [[Image:{{#switch:{{{type|}}}
| speedy = Imbox speedy deletion.png
| speedy = Imbox speedy deletion.png
| delete <!-- delete = serious -->
| delete = Imbox deletion.png
| serious = Imbox deletion.png
| content = Imbox content.png
| content = Imbox content.png
| style = Imbox style.png
| style = Imbox style.png
| move <!-- move = merge -->
| move = Imbox move.png
| merge = Imbox move.png
| protection = Imbox protection.png
| protection = Imbox protection.png
| notice <!-- notice = default -->
| notice <!-- notice = default -->
લીટી ૪૫: લીટી ૩૦:
}}</td>
}}</td>
}}
}}
<td class="tmbox-text" style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
<td style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| {{#ifeq:{{{imageright|}}}|none
| {{#ifeq:{{{imageright|}}}|none
| <!-- No image. -->
| <!-- No image. -->
| <td class="tmbox-imageright" style="border: none; padding: 2px 0.9em 2px 0px; text-align: center;"> {{{imageright}}} </td>
| <td style="border: none; padding: 2px 0.9em 2px 0px; text-align: center;"> {{{imageright}}} </td>
}}
}}
}}
}}

૦૦:૧૧, ૧૮ ઓગસ્ટ ૨૦૦૮ સુધીનાં પુનરાવર્તન

Template documentation[create]