Template:Wpbox/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Fix broken image syntax and update examples)
 
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>
<pre>
{{wpbox|
{{Wpbox
  | header =  
  | header     =  
  | image =  
  | image     =  
  | image_size = (optional. defaults to 60px.)
  | image_size = <!-- optional, defaults to 60px -->
  | text =  
  | text       =  
  | text_size = (optional. defaults to 320px.)
  | text_size = <!-- optional, defaults to 320px -->
}}
}}
</pre>
</pre>


Changing text_size will change the over-all size of the box.
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 {{tl|-}}
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==
== Example ==
<pre>
<pre>
{{wpbox
{{Wpbox
  | header=XBMC Remote Control for Android
  | header = Kore, Official Remote for Kodi
  | image=android vector.jpg
  | image = Android vector.jpg
  | text=An open source, full-featured remote for XBMC. It features library browsing, direct remote control and a slick interface.
  | 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.android.remote Download here]}}
{{U|1=[https://play.google.com/store/apps/details?id=org.xbmc.kore Download here]}}
}}
}}
</pre>
</pre>
Line 31: Line 29:
creates
creates


{{wpbox
{{Wpbox
  | header=XBMC Remote Control for Android
  | header = Kore, Official Remote for Kodi
  | image=android vector.jpg
  | image = Android vector.jpg
  | text=An open source, full-featured remote for XBMC. It features library browsing, direct remote control and a slick interface.
  | 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.android.remote Download here]}}
{{U|1=[https://play.google.com/store/apps/details?id=org.xbmc.kore Download here]}}
}}
}}<includeonly>




<includeonly>
[[Category:Formatting templates]]</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