Difference between revisions of "Template:Side box"
Jump to navigation
Jump to search
imported>WOSlinker (remove {{pp-template}} since included in {{documentation}}) |
imported>Thumperward (add support for {{{above}} per talk) |
||
Line 1: | Line 1: | ||
<table class="metadata mbox-small{{#ifeq:{{lc:{{{position|}}}}}|left|-left}} {{{class|}}}" style="border:1px solid #aaa; background-color:#f9f9f9; {{{style|}}}"> | <table class="metadata mbox-small{{#ifeq:{{lc:{{{position|}}}}}|left|-left}} {{{class|}}}" style="border:1px solid #aaa; background-color:#f9f9f9; {{{style|}}}"> | ||
+ | {{#if:{{{above|}}} | ||
+ | | <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}{{{abovestyle|}}}"> | ||
+ | {{{above}}}</td></tr> | ||
+ | }} | ||
<tr> | <tr> | ||
{{#switch:{{{image|}}} | {{#switch:{{{image|}}} | ||
Line 5: | Line 9: | ||
|#default=<td class="mbox-image">{{{image}}}</td> | |#default=<td class="mbox-image">{{{image}}}</td> | ||
}} | }} | ||
− | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | + | <td class="mbox-text" style="{{{textstyle|}}}">{{{text}}}</td> |
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
| <td class="mbox-imageright">{{{imageright}}}</td> | | <td class="mbox-imageright">{{{imageright}}}</td> | ||
Line 11: | Line 15: | ||
</tr> | </tr> | ||
{{#if:{{{below|}}} | {{#if:{{{below|}}} | ||
− | | <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-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>{{Documentation}}<!-- Add categories and interwikis to the /doc subpage --></noinclude> |
− | |||
− | {{Documentation}} | ||
− | <!-- Add categories and interwikis to the /doc subpage | ||
− | </noinclude> |
Revision as of 16:25, 15 August 2012
Template:Td
{{{text}}} |
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |