Template:Index two column/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 21: Line 21:
| An icon to be displayed with the link. The icon will be clickable with the above link. All images are auto resized to fit within 60px wide or tall. If no image is provided then [[:File:Circle arrow right font awesome.svg]] will be used.
| An icon to be displayed with the link. The icon will be clickable with the above link. All images are auto resized to fit within 60px wide or tall. If no image is provided then [[:File:Circle arrow right font awesome.svg]] will be used.
|-
|-
| {{nowrap|'''<code><nowiki>|</nowiki> description # =</code>'''}}<br />{{small|''(optional)''}}
| {{nowrap|1='''<code><nowiki>|</nowiki> description # =</code>'''}}<br />{{small|''(optional)''}}
| By default the descriptive text is the "intro" section (if marked) on the target link page. Use this parameter to override this.
| By default the descriptive text is the "intro" section (if marked) on the target link page. Use this parameter to override this.
|}
|}

Revision as of 11:47, 4 April 2014

Used for "landing pages" or "indexes" for a given topic. Creates a two column layout for links and summaries for those pages, with the summaries being generated from the intro sections marked on a given page.

Usage

The template can format anywhere between 1 and 20 page links.

The only required parameter is | link 1 =. To make a second link, use | link 2 =, and so on until 20.

Each link can also have an image icon, defined by | image =.

Parameters

Parameter Description
| link # = Page title to be linked to.
| link name # =
(optional)
If you wish the displayed title to be different.
| image # =
(optional)
An icon to be displayed with the link. The icon will be clickable with the above link. All images are auto resized to fit within 60px wide or tall. If no image is provided then File:Circle arrow right font awesome.svg will be used.
| description # =
(optional)
By default the descriptive text is the "intro" section (if marked) on the target link page. Use this parameter to override this.

Example

{{Index two column
 | image 1 = OptiUser-info.svg
 | link 1 = XBMC Quick Start Guide
 | image 2 = FAQ icon.png
 | link 2 = FAQs
 | link name 2 = Frequently Asked Questions
 | image 3 = Go-home-2.svg
 | link 3 = Home screen and basic controls
 | image 4 = Gnome-media-playback-start.svg
 | link 4 = Remote controls
 | image 5 = Video.svg
 | link 5 = Adding videos to the library
 | description 5 = {{#lst:Video library|adding videos to the library}}
 | image 6 = IYY logo.png
 | link 6 = Adding music to the library
}}