Template:Index two column: Difference between revisions

From MrMC Wiki
Jump to navigation Jump to search
m (1 revision imported)
 
No edit summary
 
Line 1: Line 1:
{| width="100% cellpadding="7px"
{| width="100% cellpadding="7px"
|- valign="top"
|- valign="top"
| [[File:{{{image 1|Circle arrow right font awesome.png}}}|link={{{link 1|}}}|60x60px|icon]]
| [[File:{{{image 1|Circle arrow right font awesome.svg}}}|link={{{link 1|}}}|60x60px|icon]]
| width="50%" | {{big|'''[[{{{link 1}}}{{#if: {{{link name 1|}}} |{{!}}{{{link name 1|}}} }}]]'''}}<br />{{{description 1|{{#lst:{{{link 1}}}|intro}} }}}
| width="50%" | {{big|'''[[{{{link 1}}}{{#if: {{{link name 1|}}} |{{!}}{{{link name 1|}}} }}]]'''}}<br />{{{description 1|{{#lst:{{{link 1}}}|intro}} }}}
{{#if: {{{link 2|}}} |
{{#if: {{{link 2|}}} |
{{!}} [[File:{{{image 2|Circle arrow right font awesome.png}}}|link={{{link 2|}}}|60x60px|icon]]
{{!}} [[File:{{{image 2|Circle arrow right font awesome.svg}}}|link={{{link 2|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 2}}}{{#if: {{{link name 2|}}} |{{!}}{{{link name 2|}}} }}]]'''}}<br />{{{description 2|{{#lst:{{{link 2}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 2}}}{{#if: {{{link name 2|}}} |{{!}}{{{link name 2|}}} }}]]'''}}<br />{{{description 2|{{#lst:{{{link 2}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 3|}}} |
{{#if: {{{link 3|}}} |
{{!}}- valign="top"
{{!}}- valign="top"
{{!}} [[File:{{{image 3|Circle arrow right font awesome.png}}}|link={{{link 3|}}}|60x60px|icon]]
{{!}} [[File:{{{image 3|Circle arrow right font awesome.svg}}}|link={{{link 3|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 3}}}{{#if: {{{link name 3|}}} |{{!}}{{{link name 3|}}} }}]]'''}}<br />{{{description 3|{{#lst:{{{link 3}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 3}}}{{#if: {{{link name 3|}}} |{{!}}{{{link name 3|}}} }}]]'''}}<br />{{{description 3|{{#lst:{{{link 3}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 4|}}} |
{{#if: {{{link 4|}}} |
{{!}} [[File:{{{image 4|Circle arrow right font awesome.png}}}|link={{{link 4|}}}|60x60px|icon]]
{{!}} [[File:{{{image 4|Circle arrow right font awesome.svg}}}|link={{{link 4|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 4}}}{{#if: {{{link name 4|}}} |{{!}}{{{link name 4|}}} }}]]'''}}<br />{{{description 4|{{#lst:{{{link 4}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 4}}}{{#if: {{{link name 4|}}} |{{!}}{{{link name 4|}}} }}]]'''}}<br />{{{description 4|{{#lst:{{{link 4}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 5|}}} |
{{#if: {{{link 5|}}} |
{{!}}- valign="top"
{{!}}- valign="top"
{{!}} [[File:{{{image 5|Circle arrow right font awesome.png}}}|link={{{link 5|}}}|60x60px|icon]]
{{!}} [[File:{{{image 5|Circle arrow right font awesome.svg}}}|link={{{link 5|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 5}}}{{#if: {{{link name 5|}}} |{{!}}{{{link name 5|}}} }}]]'''}}<br />{{{description 5|{{#lst:{{{link 5}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 5}}}{{#if: {{{link name 5|}}} |{{!}}{{{link name 5|}}} }}]]'''}}<br />{{{description 5|{{#lst:{{{link 5}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 6|}}} |
{{#if: {{{link 6|}}} |
{{!}} [[File:{{{image 6|Circle arrow right font awesome.png}}}|link={{{link 6|}}}|60x60px|icon]]
{{!}} [[File:{{{image 6|Circle arrow right font awesome.svg}}}|link={{{link 6|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 6}}}{{#if: {{{link name 6|}}} |{{!}}{{{link name 6|}}} }}]]'''}}<br />{{{description 6|{{#lst:{{{link 6}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 6}}}{{#if: {{{link name 6|}}} |{{!}}{{{link name 6|}}} }}]]'''}}<br />{{{description 6|{{#lst:{{{link 6}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 7|}}} |
{{#if: {{{link 7|}}} |
{{!}}- valign="top"
{{!}}- valign="top"
{{!}} [[File:{{{image 7|Circle arrow right font awesome.png}}}|link={{{link 7|}}}|60x60px|icon]]
{{!}} [[File:{{{image 7|Circle arrow right font awesome.svg}}}|link={{{link 7|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 7}}}{{#if: {{{link name 7|}}} |{{!}}{{{link name 7|}}} }}]]'''}}<br />{{{description 7|{{#lst:{{{link 7}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 7}}}{{#if: {{{link name 7|}}} |{{!}}{{{link name 7|}}} }}]]'''}}<br />{{{description 7|{{#lst:{{{link 7}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 8|}}} |
{{#if: {{{link 8|}}} |
{{!}} [[File:{{{image 8|Circle arrow right font awesome.png}}}|link={{{link 8|}}}|60x60px|icon]]
{{!}} [[File:{{{image 8|Circle arrow right font awesome.svg}}}|link={{{link 8|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 8}}}{{#if: {{{link name 8|}}} |{{!}}{{{link name 8|}}} }}]]'''}}<br />{{{description 8|{{#lst:{{{link 8}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 8}}}{{#if: {{{link name 8|}}} |{{!}}{{{link name 8|}}} }}]]'''}}<br />{{{description 8|{{#lst:{{{link 8}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 9|}}} |
{{#if: {{{link 9|}}} |
{{!}}- valign="top"
{{!}}- valign="top"
{{!}} [[File:{{{image 9|Circle arrow right font awesome.png}}}|link={{{link 9|}}}|60x60px|icon]]
{{!}} [[File:{{{image 9|Circle arrow right font awesome.svg}}}|link={{{link 9|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 9}}}{{#if: {{{link name 9|}}} |{{!}}{{{link name 9|}}} }}]]'''}}<br />{{{description 9|{{#lst:{{{link 9}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 9}}}{{#if: {{{link name 9|}}} |{{!}}{{{link name 9|}}} }}]]'''}}<br />{{{description 9|{{#lst:{{{link 9}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 10|}}} |
{{#if: {{{link 10|}}} |
{{!}} [[File:{{{image 10|Circle arrow right font awesome.png}}}|link={{{link 10|}}}|60x60px|icon]]
{{!}} [[File:{{{image 10|Circle arrow right font awesome.svg}}}|link={{{link 10|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 10}}}{{#if: {{{link name 10|}}} |{{!}}{{{link name 10|}}} }}]]'''}}<br />{{{description 10|{{#lst:{{{link 10}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 10}}}{{#if: {{{link name 10|}}} |{{!}}{{{link name 10|}}} }}]]'''}}<br />{{{description 10|{{#lst:{{{link 10}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 11|}}} |
{{#if: {{{link 11|}}} |
{{!}}- valign="top"
{{!}}- valign="top"
{{!}} [[File:{{{image 11|Circle arrow right font awesome.png}}}|link={{{link 11|}}}|60x60px|icon]]
{{!}} [[File:{{{image 11|Circle arrow right font awesome.svg}}}|link={{{link 11|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 11}}}{{#if: {{{link name 11|}}} |{{!}}{{{link name 11|}}} }}]]'''}}<br />{{{description 11|{{#lst:{{{link 11}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 11}}}{{#if: {{{link name 11|}}} |{{!}}{{{link name 11|}}} }}]]'''}}<br />{{{description 11|{{#lst:{{{link 11}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 12|}}} |
{{#if: {{{link 12|}}} |
{{!}} [[File:{{{image 12|Circle arrow right font awesome.png}}}|link={{{link 12|}}}|60x60px|icon]]
{{!}} [[File:{{{image 12|Circle arrow right font awesome.svg}}}|link={{{link 12|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 12}}}{{#if: {{{link name 12|}}} |{{!}}{{{link name 12|}}} }}]]'''}}<br />{{{description 12|{{#lst:{{{link 12}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 12}}}{{#if: {{{link name 12|}}} |{{!}}{{{link name 12|}}} }}]]'''}}<br />{{{description 12|{{#lst:{{{link 12}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 13|}}} |
{{#if: {{{link 13|}}} |
{{!}}- valign="top"
{{!}}- valign="top"
{{!}} [[File:{{{image 13|Circle arrow right font awesome.png}}}|link={{{link 13|}}}|60x60px|icon]]
{{!}} [[File:{{{image 13|Circle arrow right font awesome.svg}}}|link={{{link 13|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 13}}}{{#if: {{{link name 13|}}} |{{!}}{{{link name 13|}}} }}]]'''}}<br />{{{description 13|{{#lst:{{{link 13}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 13}}}{{#if: {{{link name 13|}}} |{{!}}{{{link name 13|}}} }}]]'''}}<br />{{{description 13|{{#lst:{{{link 13}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 14|}}} |
{{#if: {{{link 14|}}} |
{{!}} [[File:{{{image 14|Circle arrow right font awesome.png}}}|link={{{link 14|}}}|60x60px|icon]]
{{!}} [[File:{{{image 14|Circle arrow right font awesome.svg}}}|link={{{link 14|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 14}}}{{#if: {{{link name 14|}}} |{{!}}{{{link name 14|}}} }}]]'''}}<br />{{{description 14|{{#lst:{{{link 14}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 14}}}{{#if: {{{link name 14|}}} |{{!}}{{{link name 14|}}} }}]]'''}}<br />{{{description 14|{{#lst:{{{link 14}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 15|}}} |
{{#if: {{{link 15|}}} |
{{!}}- valign="top"
{{!}}- valign="top"
{{!}} [[File:{{{image 15|Circle arrow right font awesome.png}}}|link={{{link 15|}}}|60x60px|icon]]
{{!}} [[File:{{{image 15|Circle arrow right font awesome.svg}}}|link={{{link 15|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 15}}}{{#if: {{{link name 15|}}} |{{!}}{{{link name 15|}}} }}]]'''}}<br />{{{description 15|{{#lst:{{{link 15}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 15}}}{{#if: {{{link name 15|}}} |{{!}}{{{link name 15|}}} }}]]'''}}<br />{{{description 15|{{#lst:{{{link 15}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 16|}}} |
{{#if: {{{link 16|}}} |
{{!}} [[File:{{{image 16|Circle arrow right font awesome.png}}}|link={{{link 16|}}}|60x60px|icon]]
{{!}} [[File:{{{image 16|Circle arrow right font awesome.svg}}}|link={{{link 16|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 16}}}{{#if: {{{link name 16|}}} |{{!}}{{{link name 16|}}} }}]]'''}}<br />{{{description 16|{{#lst:{{{link 16}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 16}}}{{#if: {{{link name 16|}}} |{{!}}{{{link name 16|}}} }}]]'''}}<br />{{{description 16|{{#lst:{{{link 16}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 17|}}} |
{{#if: {{{link 17|}}} |
{{!}}- valign="top"
{{!}}- valign="top"
{{!}} [[File:{{{image 17|Circle arrow right font awesome.png}}}|link={{{link 17|}}}|60x60px|icon]]
{{!}} [[File:{{{image 17|Circle arrow right font awesome.svg}}}|link={{{link 17|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 17}}}{{#if: {{{link name 17|}}} |{{!}}{{{link name 17|}}} }}]]'''}}<br />{{{description 17|{{#lst:{{{link 17}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 17}}}{{#if: {{{link name 17|}}} |{{!}}{{{link name 17|}}} }}]]'''}}<br />{{{description 17|{{#lst:{{{link 17}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 18|}}} |
{{#if: {{{link 18|}}} |
{{!}} [[File:{{{image 18|Circle arrow right font awesome.png}}}|link={{{link 18|}}}|60x60px|icon]]
{{!}} [[File:{{{image 18|Circle arrow right font awesome.svg}}}|link={{{link 18|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 18}}}{{#if: {{{link name 18|}}} |{{!}}{{{link name 18|}}} }}]]'''}}<br />{{{description 18|{{#lst:{{{link 18}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 18}}}{{#if: {{{link name 18|}}} |{{!}}{{{link name 18|}}} }}]]'''}}<br />{{{description 18|{{#lst:{{{link 18}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 19|}}} |
{{#if: {{{link 19|}}} |
{{!}}- valign="top"
{{!}}- valign="top"
{{!}} [[File:{{{image 19|Circle arrow right font awesome.png}}}|link={{{link 19|}}}|60x60px|icon]]
{{!}} [[File:{{{image 19|Circle arrow right font awesome.svg}}}|link={{{link 19|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 19}}}{{#if: {{{link name 19|}}} |{{!}}{{{link name 19|}}} }}]]'''}}<br />{{{description 19|{{#lst:{{{link 19}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 19}}}{{#if: {{{link name 19|}}} |{{!}}{{{link name 19|}}} }}]]'''}}<br />{{{description 19|{{#lst:{{{link 19}}}|intro}} }}} }}<nowiki />
{{#if: {{{link 20|}}} |
{{#if: {{{link 20|}}} |
{{!}} [[File:{{{image 20|Circle arrow right font awesome.png}}}|link={{{link 20|}}}|60x60px|icon]]
{{!}} [[File:{{{image 20|Circle arrow right font awesome.svg}}}|link={{{link 20|}}}|60x60px|icon]]
{{!}} width="50%" {{!}} {{big|'''[[{{{link 20}}}{{#if: {{{link name 20|}}} |{{!}}{{{link name 20|}}} }}]]'''}}<br />{{{description 20|{{#lst:{{{link 20}}}|intro}} }}} }}<nowiki />
{{!}} width="50%" {{!}} {{big|'''[[{{{link 20}}}{{#if: {{{link name 20|}}} |{{!}}{{{link name 20|}}} }}]]'''}}<br />{{{description 20|{{#lst:{{{link 20}}}|intro}} }}} }}<nowiki />
|}<noinclude>{{doc}}</noinclude>
|}<noinclude>{{doc}}</noinclude>

Latest revision as of 23:47, 28 June 2016

icon [[{{{link 1}}}]]
{{#lst:{{{link 1}}}|intro}}

[edit] Template documentation

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