Difference between revisions of "Template:Side box"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Happy-melon
(make metadata optional - this metatemplate 1is used to create content boxes (eg {{listen}}) as well as maintenance templates (ambox-small etc))
imported>Mr. Stradivarius
(convert to Module:Side box)
Line 1: Line 1:
−
<table class="{{#ifeq:{{lc:{{{metadata|}}}}}|no||metadata}} mbox-small{{#ifeq:{{lc:{{{position|}}}}}|left|-left}} {{{class|}}}" style="border:1px solid #aaa; background-color:#f9f9f9; {{{style|}}}">
+
{{#invoke:Side box|main}}<noinclude>
−
{{#if:{{{above|}}}
+
{{documentation}}
−
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}{{{abovestyle|}}}">
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
−
{{{above}}}</td></tr>
+
</noinclude>
−
}}
 
−
<tr>
 
−
{{#switch:{{{image|}}}
 
−
|<!--BLANK-->|none={{td}}
 
−
|#default=<td class="mbox-image">{{{image}}}</td>
 
−
}}
 
−
<td class="mbox-text plainlist" style="{{{textstyle|}}}">{{{text}}}</td>
 
−
{{#if:{{{imageright|}}}
 
−
| <td class="mbox-imageright">{{{imageright}}}</td>
 
−
}}
 
−
</tr>
 
−
{{#if:{{{below|}}}
 
−
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}">{{{below}}}</td></tr>
 
−
}}
 
−
</table><noinclude>{{Documentation}}<!-- Add categories and interwikis to the /doc subpage --></noinclude>
 

Revision as of 05:58, 3 June 2014

Template documentation[create]