×
Namespaces

Variants
Actions
Revision as of 08:55, 13 September 2013 by hamishwillee (Talk | contribs)

Template:ListMostViewed

From Nokia Developer Wiki
Jump to: navigation, search

Internal use only. Lists most viewed articles in specified categorie(s). All non-hidden results are shown (500) in descending order of number of views.

The template allows you to control the appearance and content of the list by restricting the number of items shown, add categories, show hidden articles, specify the language etc.

It is also possible to automatically add a heading IFF there are items in the list, and to make it collapsible and default collapsed.

Usage

{{ListMostViewed|category name}}

where category name is any category. The maximum number of topics that can be listed will be displayed. If no category is specified, 'English' topics will be displayed. Other parameters may be passed as pipe separated values

  • Un named parameters: Up to 7 un-named parameters are treated as additional categories included in the search (ie the union of all topics in all categories specified as unnamed parameters will be part of the results set)
  • count: The number of values to return. If unspecified this will be the maximum number that can be returned by DPL
  • language: The category of the specific language returned values are to be restricted to. If no language is specified then English topics will be returned.
    • all: no language filter
    • notenglish: Only non-English topics
  • andcategory (and andcategory2): Topics returned will be in the intersection of unnamed parameters and categories specified in andcategory and andcategory2
  • notcategory: (and notcategory2, notcategory3). Topics returned will not include those in the specified notcategory(s)
  • columns: Displays the list in specified number of columns. Default is to list articles in one column
  • platformfilter: Filters topics on the categories associated with the platform - values are:-Windows Phone, Nokia Asha, Symbian, Meego, Java ME
  • uses: Specify the templates that must be in articles in the list .Note that to specify multiple templates use the half pipe - e.g.
uses=Template:KBKI ¦ Template:KBTS ¦ Template:KBCS
  • notuses: Specify the templates that must not be in articles in the list .Note that to specify multiple templates use the half pipe - e.g.
notuses=Template:KBKI ¦ Template:KBTS ¦ Template:KBCS

By default categories are not shown, article names are displayed full length and knowledgbase articles are included in the output. These can be changed using the following parameters:

  • crop: If specified, article titles will be restricted to this length
  • showcategories=true: If specified, categories will be listed in output
  • showkb=false: Be default knowledgebase articles are included. If this parameter is specified as false, the articles will be removed
  • showdrafts=true: If true, draft items will be shown (hidden by default)
  • showhidden=true: If true, articles in categories FNWiki and Advert are shown (hidden by default)


Heading mode - for displaying a heading automatically with the list

  • addheading=true: Adds level 2 heading "Recently Edited" (in the supported language). In this mode the heading will disappear if there are no returned results
    • collapsible=true: To make the heading collapsible - by default it is not collapsible and is expanded
      • collapsed=true: To make the heading collapsed when loaded


Tab mode - for displaying the list in a tabber control

  • tab=true: Adds list with in tab format.
    • heading: (optional) heading to be used for the tab - defaults to "Recently Edited"
    • tabheading: (optional) heading to be used for the list INSIDE the tab. By default there is no such heading.

Default List

The default list includes recently edited English topics in any category:

 
×