Template:Wpbox: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
m (Protected "Template:Wpbox" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="display: inline-block; float: left; padding: 10px; margin-right: 10px; -moz-border-radius: 5px; border-radius: 5px; background-color: #f2f9fc; border: 1px solid #e1e9ed; {{box-shadow|2px|2px|2px|#888}}"
{| style="display: inline-block; float: left; padding: 10px; margin-right: 10px; {{border-radius|5px}}; background-color: #f2f9fc; border: 1px solid #e1e9ed; {{box-shadow|2px|2px|2px|#888}}"
| colspan="2" | '''<big>{{{header|}}}</big>'''
| colspan="2" | <big>{{{header|}}}</big>
|-
|-
| style="margin: 5px; padding-top: 5px; width: {{{image_size|60px}}}; float: left;" | [[File:{{{image|}}}|{{{image_size|60px}}}]]
| style="margin: 5px; padding-top: 5px; width: {{{image_size|60px}}}; float: left;" | [[File:{{{image|}}}|{{{image_size|60px}}}|link=]]
| style="width: {{{text_size|320px}}}; display: inline-block;" |  
| style="width: {{{text_size|320px}}}; display: inline-block;" |  
{{{text|}}}
{{{text|}}}
|}<noinclude>
|}<noinclude>{{-}}{{doc}}</noinclude>
 
 
{{doc}}</noinclude>

Latest revision as of 20:30, 27 July 2013

[[File:|60px|link=]]


[edit] Template documentation

Creates a box in the new XBMC website style.

Usage

{{Wpbox
 | header     = 
 | image      = 
 | image_size = <!-- optional, defaults to 60px -->
 | text       = 
 | text_size  = <!-- optional, defaults to 320px -->
}}

Changing text_size will change the overall size of the box.

Objects after the box will float to the right in order to allow multiple boxes to be side-by-side. You can force a line break by using {{-}}.

Example

{{Wpbox
 | header = Kore, Official Remote for Kodi
 | image  = Android vector.jpg
 | text   = An open source, full-featured remote for {{Kodi}}. It features library browsing, direct remote control and a slick interface.

{{U|1=[https://play.google.com/store/apps/details?id=org.xbmc.kore Download here]}}
}}

creates

Kore, Official Remote for Kodi
Android vector.jpg

An open source, full-featured remote for Kodi. It features library browsing, direct remote control and a slick interface.

Download here