×
Namespaces

Variants
Actions
(Difference between revisions)

Template:Sandbox3

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - - Default List: - test just reporting counts)
hamishwillee (Talk | contribs)
m (Hamishwillee - - Default List)
 
(7 intermediate revisions by one user not shown)
Line 181: Line 181:
 
-->  {{#if: {{{more|}}}|<!--  
 
-->  {{#if: {{{more|}}}|<!--  
 
more defined -->
 
more defined -->
format=,\n* [[%PAGE%|%TITLE%]] .. %USER% {{#ifeq: %NR%|{{{count|}}}|true|false}},,
+
format=,\n* [[%PAGE%|%TITLE%]] .. [[User:%USER%]] %NR% res is {{result|%NR%|{{{count|}}} }} and truetest is {{#if: {{result|%NR%|{{{count|}}} }}|true|false}},,
 
<!-- END more defined -->|<!-- more not defined -->}}  
 
<!-- END more defined -->|<!-- more not defined -->}}  
 
|<!-- count is not defined --> }}|  
 
|<!-- count is not defined --> }}|  

Latest revision as of 00:15, 13 December 2013

Internal use only.

Underconstruction.pngUnder Construction: This article is under construction and it may have outstanding issues. If you have any comments please use the comments tab.

Lists recently edited articles in specified categorie(s). Minor edits are ignored and results are specified in descending order of edit date.

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.

[edit] Usage

{{ListRecentlyEdited|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, recently edited '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
  • andcategory (and andcategory2 to andcategory10): Topics returned will be in the intersection of unnamed parameters and categories specified in andcategory
  • notcategory (and notcategory2 to notcategory20): Topics returned will not include articles in these categories
  • platformfilter: Filters topics on the categories associated with the platform - values are:-Windows Phone, Nokia Asha, Symbian, Meego, Java ME

By default the author is shown, 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:

  • columns: Sets the number of columns. Default is to list articles in one column
  • crop: If specified, article titles will be restricted to this length
  • adduser=false: Hides the author - by default the author is shown
  • showkb=false: Be default knowledgebase articles are included. If this parameter is specified as false, the articles will be removed
  • addcategories=true: If specified, categories will be listed in output
  • showdrafts=true: If true, draft items will be shown (hidden by default)
  • showhidden=true: If true, articles in categories Archived, FNWiki and Advertising are shown (hidden by default)
  • addeditdate=true: If specified, date is shown.
    • userdateformat: If specified, used formatstring with letters like "y,Y,m,M,d,D,h,H,i,I,s"
  • 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

The following parameters are specialist (expected to be used by other templates)

  • lastrevisionbefore: Displays only articles created before a certain date in YYYYMMDD format. Used primarily with order=ascending to show lists older than a particular date. By default, not used
  • order=ascending: This can reverse the order of the list so that oldest non-minor edits are shown first.
  • ordermethod=title: To change to alphabetic listing. Default is ordered by last edit.


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
    • heading: (optional) replaces the default heading with a heading of your choice.
    • 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.

[edit] Default List

The default list includes recently edited English topics in any category, excluding minor edits.

 

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×