Template:Index two column/doc

From MrMC Wiki
Jump to navigation Jump to search

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.png 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.

Examples

Example 1

<syntaxhighlight lang="text" enclose="div">

icon Video management
{{#lst:Video management|intro}}
icon Video playback
{{#lst:Video playback|intro}}
icon Video navigation
{{#lst:Video navigation|intro}}
icon Live TV
{{#lst:Live TV|intro}}
icon Music videos
{{#lst:Music videos|intro}}
icon Add-ons
{{#lst:Add-ons|intro}}
icon Video library settings
The main Video Library settings can be accessed from the Library tab in Videos Settings. Those can be accessed either from the Settings menu from the home screen, or via the context menu as seen above.

</syntaxhighlight>

creates:

icon Video management
{{#lst:Video management|intro}}
icon Video playback
{{#lst:Video playback|intro}}
icon Video navigation
{{#lst:Video navigation|intro}}
icon Live TV
{{#lst:Live TV|intro}}
icon Music videos
{{#lst:Music videos|intro}}
icon Add-ons
{{#lst:Add-ons|intro}}
icon Video library settings
The main Video Library settings can be accessed from the Library tab in Videos Settings. Those can be accessed either from the Settings menu from the home screen, or via the context menu as seen above.

Blank template

{{Index two column
 | image 1 = 
 | link 1 = 
 | image 2 = 
 | link 2 = 
 | image 3 = 
 | link 3 = 
 | image 4 = 
 | link 4 = 
 | image 5 = 
 | link 5 = 
 | image 6 = 
 | link 6 = 
 | image 7 = 
 | link 7 = 
 | image 8 = 
 | link 8 = 
}}

See also