Template:AppListItem: Difference between revisions

From KDE UserBase Wiki
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
This template inserts a suitable table row with an image left side and an textblock on the right containing a title and a short description.
The image will commonly be the icon of the application. You can adjust optionally the image size with the size parameter; remember to use px unit. Image and title both link to the page.
The title is marked up as heading level 4 and will appear in the table of contents.
If title is omitted the pagename will be used as title instead and vice versa.
==Usage==
<pre>:{|
{{AppListItem|image=Konqueror.png|size=64px|page=Konqueror|title=Konqui|description=The one and only internet browser.}}
|-
{{AppListItem|image=Kate.png|page=Kate|title=KAnotherTextEditor|description=A very powerful editor.}}
|}
</pre>
Notice the wrapping table markup <nowiki>:{|</nowiki> ... <nowiki>|}</nowiki>
==Preview==
:{|
{{AppListItem|image=Konqueror.png|size=64px|page=Konqueror|title=Konqui|description=The one and only internet browser.}}
|-
{{AppListItem|image=Kate.png|page=Kate|title=KAnotherTextEditor|description=A very powerful editor.}}
|}


----
----


</noinclude>
</noinclude>
|rowspan="2" style="padding-right:2em;"|[[Image:{{{image}}}|48px|link=Special:myLanguage/{{{page}}}]]
|rowspan="2" style="padding-right:2em;"|[[Image:{{{image}}}|{{{size|48px}}}|link=Special:myLanguage/{{{page|{{{title}}}}}}]]
|<h4 style="margin:0; padding:0;">[[Special:myLanguage/{{{page}}}|{{{title|{{{page}}}}}}]]</h4>
|<h4 style="margin:0; padding:0;">[[Special:myLanguage/{{{page}}}|{{{title|{{{page}}}}}}]]</h4>
|-
|-
|{{{description}}}
|{{{description}}}

Revision as of 17:47, 5 September 2010

This template inserts a suitable table row with an image left side and an textblock on the right containing a title and a short description.

The image will commonly be the icon of the application. You can adjust optionally the image size with the size parameter; remember to use px unit. Image and title both link to the page.

The title is marked up as heading level 4 and will appear in the table of contents.

If title is omitted the pagename will be used as title instead and vice versa.

Usage

:{|
{{AppListItem|image=Konqueror.png|size=64px|page=Konqueror|title=Konqui|description=The one and only internet browser.}}
|-
{{AppListItem|image=Kate.png|page=Kate|title=KAnotherTextEditor|description=A very powerful editor.}}
|}

Notice the wrapping table markup :{| ... |}

Preview

Konqui

The one and only internet browser.

KAnotherTextEditor

A very powerful editor.


|rowspan="2" style="padding-right:2em;"|[[Image:{{{image}}}|48px|link=Special:myLanguage/{{{title}}}]]

|

[[Special:myLanguage/{{{page}}}|{{{page}}}]]

|- |{{{description}}}