틀:Imbox: 두 판 사이의 차이

Revi HQ
내용 추가됨 내용 삭제됨
(Decreasing the empty left image cell from a total of 3px width to 1px width. Can't be 0px since then boxes who are not filled with text don't stay 80% wide.)
(Updating to use "mbox-*" class names instead of "imbox-*". See Template talk:Mbox#Simpler to use class names.)
15번째 줄: 15번째 줄:
{{#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: 0px; width: 1px;"></td>
| <!-- 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>
| <td class="imbox-image">
| <td class="mbox-image">
{{#if:{{{image|}}}
{{#if:{{{image|}}}
| {{{image}}}
| {{{image}}}
32번째 줄: 32번째 줄:
}}</td>
}}</td>
}}
}}
<td class="imbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| <td class="imbox-imageright"> {{{imageright}}} </td>
| <td class="mbox-imageright"> {{{imageright}}} </td>
}}
}}
</tr>
</tr>
{{#if:{{{below|}}}
{{#if:{{{below|}}}
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="imbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
}}
}}
</table><noinclude>
</table><noinclude>


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

2008년 9월 28일 (일) 01:19 판

틀:Pp-template

Template documentation[create]