×
Namespaces

Variants
Actions
(Difference between revisions)

Template:Sandbox3

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - - Default List)
hamishwillee (Talk | contribs)
m (Hamishwillee -)
Line 138: Line 138:
 
order={{{order|descending}}}|
 
order={{{order|descending}}}|
 
displaynewicon=30|
 
displaynewicon=30|
{{#if: {{{tab|}}}|resultsheader={{!}}-{{!}} {{{heading|Recently Edited}}}{{=}} {{#if: {{{tabheading|}}}|<h2>{{{heading|Recently Edited}}}</h2>|}} |<!-- not tab -->}}|
+
{{#if: {{{tab|}}}|resultsheader={{!}}-{{!}} {{{heading|Recently Edited}}}{{=}} {{#if: {{{tabheading|}}}|<h2>{{{tabheading}}}</h2>|}} |<!-- not tab -->}}|
 
{{#if: {{{addheading|}}}|resultsheader={{#if: {{{collapsible|}}}|<div class="mw-collapsible {{#if: {{{collapsed|}}}|mw-collapsed|}}">|}}<h2>{{{heading|{{#switch: {{{language|}}}   
 
{{#if: {{{addheading|}}}|resultsheader={{#if: {{{collapsible|}}}|<div class="mw-collapsible {{#if: {{{collapsed|}}}|mw-collapsed|}}">|}}<h2>{{{heading|{{#switch: {{{language|}}}   
 
| Lang-PT
 
| Lang-PT
Line 151: Line 151:
 
}} }}}</h2>{{#if: {{{collapsible|}}}|<div class="mw-collapsible-content">|}}|}}|
 
}} }}}</h2>{{#if: {{{collapsible|}}}|<div class="mw-collapsible-content">|}}|}}|
 
{{#if: {{{addheading|}}}|{{#if: {{{collapsible|}}}|resultsfooter=</div></div>|}}|}}|<!-- for collapsible headings close the divs -->
 
{{#if: {{{addheading|}}}|{{#if: {{{collapsible|}}}|resultsfooter=</div></div>|}}|}}|<!-- for collapsible headings close the divs -->
{{#if: {{{addheading|}}}|<!-- empty -->|noresultsheader=None<!-- default-->}}|
+
{{#if: {{{addheading|}}}{{{tab}}}|<!-- empty -->|noresultsheader=None<!-- default-->}}|
 
{{#if: {{{lastrevisionbefore|}}}|lastrevisionbefore={{{lastrevisionbefore}}}|}}|
 
{{#if: {{{lastrevisionbefore|}}}|lastrevisionbefore={{{lastrevisionbefore}}}|}}|
 
<!-- Fix formatting bugs in DPL. Note, this only adds page and revision, ignores adding author etc-->
 
<!-- Fix formatting bugs in DPL. Note, this only adds page and revision, ignores adding author etc-->
 
{{#if: {{{lastrevisionbefore|}}}|format=,\n* [[%PAGE%|%TITLE%]] (%DATE%)<!-- Need to fix formatting-->|<!-- Formatting OK -->}}|
 
{{#if: {{{lastrevisionbefore|}}}|format=,\n* [[%PAGE%|%TITLE%]] (%DATE%)<!-- Need to fix formatting-->|<!-- Formatting OK -->}}|
 
}}
 
}}

Revision as of 11:02, 12 September 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.

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

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.

×