Template:Wpbox/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Created page with "Creates a box in the new XBMC website style. ==Usage== <pre> {{wpbox| | header = | image = | image_size = (optional. defaults to 60px.) | text = | text_size = (optional...")
 
(Fix broken image syntax and update examples)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
Creates a box in the new XBMC website style.
Creates a box in the new XBMC website style.


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


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 {{Tlx|-}}.
== Example ==
<pre>
<pre>
{{wpbox|
{{Wpbox
  | header =  
  | header = Kore, Official Remote for Kodi
  | image =  
  | image = Android vector.jpg
  | image_size = (optional. defaults to 60px.)
  | text  = An open source, full-featured remote for {{Kodi}}. It features library browsing, direct remote control and a slick interface.
| text =  
 
| text_size = (optional. defaults to 320px.)
{{U|1=[https://play.google.com/store/apps/details?id=org.xbmc.kore Download here]}}
}}
}}
<includeonly>[[Category:Formatting templates]]
</pre>
 
creates
 
{{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]}}
}}<includeonly>
 
 
[[Category:Formatting templates]]</includeonly>

Latest revision as of 00:06, 14 September 2022

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