Difference between revisions of "Template:Side box"

From Recidemia English
Jump to: navigation, search
m (Protected "Template:Side box": High-impact page: meta-template used to build many other templates ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
m (1 revision: 7)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<table class="metadata plainlinks mbox-small{{#ifeq:{{lc:{{{position|}}}}}|left|-left}}" 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|}}}">
 
<tr>
 
<tr>
 
{{#switch:{{{image|}}}
 
{{#switch:{{{image|}}}
Line 14: Line 14:
 
}}
 
}}
 
</table><noinclude>
 
</table><noinclude>
 +
 
{{Documentation}}
 
{{Documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 16:50, 22 March 2012

[edit] [history] [purge] Documentation icon Template documentation

This template is a meta-template that can be used to create nicely-styled floating content boxes.

Usage

  • |text= – the text to display in the box
  • |image= – a full image tag (or other content)
  • |imageright= – a full image tag (or other content) to display in a separate table cell on the right of the box
  • |position= – if set to left, floats the box on the left side of the page rather than the right
  • |style= – styles to apply to the box
  • |textstyle= – styles to apply to the text cells only
  • |below= – content to appear in a separate row underneath the main cell (and spanning the entire width of the box)

See also

bs:Šablon:Sporedni okvir cy:Nodyn:Blwch ymyl dsb:Pśedłoga:Bocny kašćik et:Mall:Äärekast eo:Ŝablono:Flanka kesto hsb:Předłoha:Bóčny kašćik ja:Template:Side box pt:Predefinição:Side box sr:Шаблон:Side box ur:سانچہ:Side box tr:Şablon:Side box vi:Tiêu bản:Side box