×
Namespaces

Variants
Actions
(Difference between revisions)

Template:Sandbox3

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
(Hamishwillee -)
hamishwillee (Talk | contribs)
m (Hamishwillee - - Default List)
 
(31 intermediate revisions by one user not shown)
Line 1: Line 1:
<noinclude>{{Abstract|This template is used by [[Template:ArticleMetaData]] to provide a default (English) translation.}} It can be copied to create translations in new languages.
+
<noinclude>{{InternalUse|visible=true}}{{UnderConstruction|This is a draft (experimental) template for category pages }}
 +
{{Abstract|visible=true|Lists recently edited articles in specified categorie(s)}}. Minor edits are ignored and results are specified in descending order of edit date.
  
{{InternalUse|visible=true}}
+
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.
 +
 +
[[Category:FNWiki]]
 
== Usage ==
 
== Usage ==
 +
<nowiki>{{ListRecentlyEdited</nowiki>|''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:-[[Template:PlatformCategoriesWindowsPhone|Windows Phone]], Nokia Asha, Symbian, Meego, [[Template:PlatformCategoriesJavaME|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.
  
The template is automatically included in new articles. To add to an existing article, copy-paste the text below and replace the html comments with your own values. Note that empty values (and HTML comments) are not displayed, so there is no need to delete unused values.
 
<code text>{{ArticleMetaData
 
|sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] -->
 
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 
|devices= <!-- Devices tested against - e.g. ''devices=Nokia 6131 NFC, Nokia C7-00'') -->
 
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
 
|platform= <!-- Compatible platforms - e.g. Symbian^1 and later, Qt 4.6 and later -->
 
|devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) -->
 
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 
|signing=<!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer -->
 
|capabilities=<!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 
|keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
 
|id= <!-- Article Id (Knowledge base articles only) -->
 
|language=<!-- Language category code for non-English topics - e.g. Lang-Chinese -->
 
|review-by=<!-- After re-review: [[User:username]] -->
 
|review-timestamp=<!-- After re-review: YYYYMMDD -->
 
|update-by=<!-- After significant update: [[User:username]]-->
 
|update-timestamp=<!-- After significant update: YYYYMMDD -->
 
|creationdate= <!-- Format YYYYMMDD -->
 
|author= <!-- Display as link [[User:username]] -->
 
}}
 
</code>
 
  
The parameters are documented in more detail below. Note that only the Creation parameters are mandatory.
+
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
  
=== Article Information ===
+
Tab mode - for displaying the list in a tabber control
==== Creation====
+
* ''tab=true'': Adds list with in tab format.
These parameters record the original article author. They are intended to give the author credit for their work, and to make it easy for readers to find out more about the author:
+
** ''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.
  
* ''creationdate''=Article creation date, format YYYYMMDD.
+
== Default List ==
* ''author''=Original article author, format <nowiki>[[User:hamishwillee]]</nowiki>.
+
The default list includes recently edited English topics in any category, excluding minor edits.
 +
</noinclude>{{#dpl:
 +
namespace={{{namespace|}}}|
 +
{{#ifeq: {{{platformfilter|}}}|Windows Phone|{{platformCategoriesWindowsPhone}}|}}|
 +
{{#ifeq: {{{platformfilter|}}}|Java ME|{{platformCategoriesJavaME}}|}}|
 +
{{#ifeq: {{{platformfilter|}}}|Nokia Asha|{{platformCategoriesJavaME}}¦Series 40¦Nokia Asha¦Nokia Asha Web Apps¦Nokia Asha Platform 1.0|}}|
 +
{{#ifeq: {{{platformfilter|}}}|Symbian|category=Symbian¦Symbian C++¦Flash Lite¦Symbian Web Runtime¦PySymbian|}}|
 +
{{#ifeq: {{{platformfilter|}}}|Meego|category=MeeGo Harmattan¦Maemo|}}|
 +
{{#if: {{{10|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}¦{{{4}}}¦{{{5}}}¦{{{6}}}¦{{{7}}}¦{{{8}}}¦{{{9}}}¦{{{10}}}|
 +
{{#if: {{{9|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}¦{{{4}}}¦{{{5}}}¦{{{6}}}¦{{{7}}}¦{{{8}}}¦{{{9}}}|
 +
{{#if: {{{8|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}¦{{{4}}}¦{{{5}}}¦{{{6}}}¦{{{7}}}¦{{{8}}}|
 +
{{#if: {{{7|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}¦{{{4}}}¦{{{5}}}¦{{{6}}}¦{{{7}}}|
 +
{{#if: {{{6|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}¦{{{4}}}¦{{{5}}}¦{{{6}}}|
 +
{{#if: {{{5|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}¦{{{4}}}¦{{{5}}}|
 +
{{#if: {{{4|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}¦{{{4}}}|
 +
{{#if: {{{3|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}|
 +
{{#if: {{{2|}}}|category={{{1}}}¦{{{2}}}|
 +
{{#if: {{{1|}}}|category={{{1}}}|}}
 +
}} }} }} }} }} }} }} }} }}|
 +
{{#ifeq: {{{language|}}}|notenglish|categorymatch=Lang-%|{{#ifeq: {{{language|}}}|all|<!-- DO NOT filter on languages -->|{{#if: {{{language|}}}|category={{{language}}}|notcategorymatch=Lang-%}} }} }}|
 +
{{#if: {{{andcategory|}}}|category={{{andcategory}}}|}}|
 +
{{#if: {{{andcategory2|}}}|category={{{andcategory2}}}|}}|
 +
{{#if: {{{andcategory3|}}}|category={{{andcategory3}}}|}}|
 +
{{#if: {{{andcategory4|}}}|category={{{andcategory4}}}|}}|
 +
{{#if: {{{andcategory5|}}}|category={{{andcategory5}}}|}}|
 +
{{#if: {{{andcategory6|}}}|category={{{andcategory6}}}|}}|
 +
{{#if: {{{andcategory7|}}}|category={{{andcategory7}}}|}}|
 +
{{#if: {{{andcategory8|}}}|category={{{andcategory8}}}|}}|
 +
{{#if: {{{andcategory9|}}}|category={{{andcategory9}}}|}}|
 +
{{#if: {{{andcategory10|}}}|category={{{andcategory10}}}|}}|
 +
{{#if: {{{andcategory11|}}}|category={{{andcategory11}}}|}}|
 +
{{#if: {{{andcategory12|}}}|category={{{andcategory12}}}|}}|
 +
{{#if: {{{notcategory|}}}|notcategory={{{notcategory}}}|}}|
 +
{{#if: {{{notcategory2|}}}|notcategory={{{notcategory2}}}|}}|
 +
{{#if: {{{notcategory3|}}}|notcategory={{{notcategory3}}}|}}|
 +
{{#if: {{{notcategory4|}}}|notcategory={{{notcategory4}}}|}}|
 +
{{#if: {{{notcategory5|}}}|notcategory={{{notcategory5}}}|}}|
 +
{{#if: {{{notcategory6|}}}|notcategory={{{notcategory6}}}|}}|
 +
{{#if: {{{notcategory7|}}}|notcategory={{{notcategory7}}}|}}|
 +
{{#if: {{{notcategory8|}}}|notcategory={{{notcategory8}}}|}}|
 +
{{#if: {{{notcategory9|}}}|notcategory={{{notcategory9}}}|}}|
 +
{{#if: {{{notcategory10|}}}|notcategory={{{notcategory10}}}|}}|
 +
{{#if: {{{notcategory11|}}}|notcategory={{{notcategory11}}}|}}|
 +
{{#if: {{{notcategory12|}}}|notcategory={{{notcategory12}}}|}}|
 +
{{#if: {{{notcategory13|}}}|notcategory={{{notcategory13}}}|}}|
 +
{{#if: {{{notcategory14|}}}|notcategory={{{notcategory14}}}|}}|
 +
{{#if: {{{notcategory15|}}}|notcategory={{{notcategory15}}}|}}|
 +
{{#if: {{{notcategory16|}}}|notcategory={{{notcategory16}}}|}}|
 +
{{#if: {{{notcategory17|}}}|notcategory={{{notcategory17}}}|}}|
 +
{{#if: {{{notcategory18|}}}|notcategory={{{notcategory18}}}|}}|
 +
{{#if: {{{notcategory19|}}}|notcategory={{{notcategory19}}}|}}|
 +
{{#if: {{{notcategory20|}}}|notcategory={{{notcategory20}}}|}}|
 +
{{#if: {{{notcategory21|}}}|notcategory={{{notcategory21}}}|}}|
 +
{{#if: {{{notcategory22|}}}|notcategory={{{notcategory22}}}|}}|
 +
{{#if: {{{notcategory23|}}}|notcategory={{{notcategory23}}}|}}|
 +
{{#if: {{{notcategory24|}}}|notcategory={{{notcategory24}}}|}}|
 +
{{#if: {{{notcategory25|}}}|notcategory={{{notcategory25}}}|}}|
 +
{{#if: {{{notcategory26|}}}|notcategory={{{notcategory26}}}|}}|
 +
{{#if: {{{notcategory27|}}}|notcategory={{{notcategory27}}}|}}|
 +
{{#if: {{{notcategory28|}}}|notcategory={{{notcategory28}}}|}}|
 +
{{#if: {{{notcategory29|}}}|notcategory={{{notcategory29}}}|}}|
 +
{{#if: {{{notcategory30|}}}|notcategory={{{notcategory30}}}|}}|
 +
{{#if: {{{notcategory31|}}}|notcategory={{{notcategory31}}}|}}|
 +
{{#if: {{{notcategory32|}}}|notcategory={{{notcategory32}}}|}}|
 +
{{#if: {{{notcategory33|}}}|notcategory={{{notcategory33}}}|}}|
 +
{{#if: {{{notcategory34|}}}|notcategory={{{notcategory34}}}|}}|
 +
{{#if: {{{notcategory35|}}}|notcategory={{{notcategory35}}}|}}|
 +
{{#if: {{{notcategory36|}}}|notcategory={{{notcategory36}}}|}}|
 +
{{#if: {{{notcategory37|}}}|notcategory={{{notcategory37}}}|}}|
 +
{{#if: {{{notcategory38|}}}|notcategory={{{notcategory38}}}|}}|
 +
{{#if: {{{notcategory39|}}}|notcategory={{{notcategory39}}}|}}|
 +
{{#if: {{{notcategory40|}}}|notcategory={{{notcategory40}}}|}}|
 +
{{#if: {{{columns|}}}|columns={{{columns}}}|}}|
 +
{{#if: {{{crop|}}}|titlemaxlength={{{crop}}}|}}|
 +
{{#ifeq: {{{showkb|}}}|false|notuses=Template:KBKI¦Template:KBTS¦Template:KBCS|}}|
 +
{{#ifeq: {{{showcategories|}}}|true|addcategories=true|}}|
 +
{{#ifeq: {{{addcategories|}}}|true|addcategories=true|}}|
 +
{{#ifeq: {{{adduser|}}}|false||adduser=true}}|
 +
{{#ifeq: {{{showdrafts|}}}|true||notcategory=Draft}}|
 +
{{#ifeq: {{{showhidden|}}}|true||notcategory=FNWiki}}|
 +
{{#ifeq: {{{showhidden|}}}|true||notcategory=Advert}}|
 +
{{#ifeq: {{{showhidden|}}}|true||notcategory=Advertising}}|
 +
{{#ifeq: {{{showhidden|}}}|true||notcategory=Archived}}|
 +
{{#ifeq: {{{showdate|}}}|true|addeditdate=true|}}| <!-- deprecated (and now not documented) -->
 +
{{#ifeq: {{{addeditdate|}}}|true|addeditdate=true|}}|
 +
{{#if: {{{userdateformat|}}}|userdateformat={{{userdateformat}}}|}}|
 +
{{#if: {{{uses|}}}|uses={{{uses}}}|}}|
 +
{{#if: {{{notuses|}}}|notuses={{{notuses}}}|}}|
 +
ordermethod={{{ordermethod|lastedit}}}|
 +
{{#ifeq: {{{ordermethod|}}}|title|adduser=false|}}|
 +
{{#ifeq: {{{ordermethod|}}}|title||minoredits={{{minoredits|exclude}}} }}|
 +
order={{{order|descending}}}|
 +
displaynewicon=30|
 +
{{#if: {{{tab|}}}|resultsheader={{!}}-{{!}} {{{heading|{{#switch: {{{language|}}} 
 +
| Lang-PT
 +
| Lang-Portuguese = Modificados recentemente
 +
| Lang-RU
 +
| Lang-Russian = Недавно измененные
 +
| Lang-CN
 +
| Lang-Chinese = 最近编辑
 +
| Lang-JP
 +
| Lang-Japanese = Recently Edited
 +
| #default = 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|}}} 
 +
| Lang-PT
 +
| Lang-Portuguese = Modificados recentemente
 +
| Lang-RU
 +
| Lang-Russian = Недавно измененные
 +
| Lang-CN
 +
| Lang-Chinese = 最近编辑
 +
| Lang-JP
 +
| Lang-Japanese = Recently Edited
 +
| #default = Recently Edited
 +
}} }}}</h2>{{#if: {{{collapsible|}}}|<div class="mw-collapsible-content">|}}|}}|
 +
{{#if: {{{addheading|}}}|{{#if: {{{collapsible|}}}|resultsfooter=</div></div>|}}|}}|<!-- for collapsable headings close the divs -->
 +
{{#if: {{{addheading|}}}{{{tab}}}|<!-- empty -->|noresultsheader=None<!-- default-->}}|
 +
{{#if: {{{lastrevisionbefore|}}}|lastrevisionbefore={{{lastrevisionbefore}}}|}}|
 +
<!-- 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 -->}}|
  
 +
<!-- Only define count variable if count is specified and more is not specified -->
 +
{{#if: {{{count|}}}|
 +
<!-- count is defined
 +
-->  {{#if: {{{more|}}}|<!-- more defined -->|<!-- more not defined -->count={{{count|}}} }}
 +
|<!-- count is not defined --> }}|
  
==== Review ====
+
<!-- Add support for MORE button IF count is specified and more is specified-->
The (optional) review parameters allow end-users to see the last date that an article was known to be accurate. With this information readers can still "trust" older articles.
+
{{#if: {{{count|}}}|
 +
<!-- count is defined
 +
-->  {{#if: {{{more|}}}|<!--
 +
more defined -->
 +
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 -->}}
 +
|<!-- count is not defined --> }}|
  
The parameters can be updated by any wiki user who is technically competent in the article area.
 
* ''review-by''=Reviewer user id, in format <nowiki>[[User:hamishwillee]]</nowiki>
 
* ''review-timestamp''=Timestamp of review, in format YYYYMMDD
 
  
 
+
}}
==== Update ====
+
Articles may periodically receive a significant update. These parameters allow the author of the update to be recognised for their work, and alongside the [[#Review]] parameters, help end-users determine how likely it is that the content is still relevant.
+
 
+
* ''update-by''=Update author in format <nowiki>[[User:hamishwillee]]</nowiki>
+
* ''update-timestamp''=Update timestamp, format YYYYMMDD
+
 
+
 
+
==== Translation====
+
Translated articles should use the following additional parameters to record the translator and translation version information. Note that these create links to the actual translated version of the topic:
+
* ''translated-by''= Link to the translator user id - e.g.  <nowiki>[[User:hamishwillee|hamishwillee]]</nowiki>
+
* ''translated-from-title''= Name of original article: "Article Title"
+
* ''translated-from-id''= Id of translated page. If the URL of the revision in History tab ends in ''&oldid=111747'', the id is 111747
+
<!--
+
|translated-by= [[User: XXXXX|XXXXX]]</nowiki>
+
|translated-from-title=
+
|translated-from-id=
+
-->
+
 
+
==== Miscellaneous ====
+
* ''language'': Category code for the natural language (e.g. Lang-Portuguese, Lang-Chinese) to display the template in that language. Default is English.
+
 
+
* ''keywords'': APIs, classes and methods of related articles
+
* ''id'': Knowledge-base identifier. Should be applied only by Nokia knowledgebase team.
+
 
+
=== Compatibility ===
+
These option parameters allow you to specify the device and platform compatibility. This includes the actual devices and platforms you tested against (and know it to work for) and the ones you expect it to work against. To make it easier for users, also provide link to the SDK you used to build this against.
+
 
+
* ''devices'': Devices actually tested against. For example Nokia C7-00. We prefer the full name of the device, but shorthand is "better than nothing".
+
* ''sdk'': Actual SDK(s) built and tested against as a URL link
+
* ''platform'': Compatible platforms - e.g. Symbian^1 and later, Qt 4.6 and later, Flash Lite 1.0
+
* ''devicecompatability'': Compatible devices e.g.: All* (must have internal GPS).
+
* ''dependencies'': Any other compatibility/dependency information not captured by above. For example dependency on an external API like Google Maps or a particular non-Nokia framework library.
+
 
+
=== Platform Security ===
+
Applies to secure platforms only (e.g. Symbian)
+
* ''signing'': What level of signing is required. Empty means "Any". Otherwise use one of: Self-Signed, DevCert, Manufacturer.
+
* ''capabilities'': Platform security "Capabilities" required by the article/code example (e.g. Location, NetworkServices).
+
 
+
=== Downloads ===
+
These parameters provide direct links to downloads (source or installation files) associated with the article.
+
 
+
* ''sourcecode'': Link to example source code e.g. [[Media:The Code Example ZIP.zip]]
+
* ''installfile'': Link to installation file (e.g. [[Media:The Installation File.sis]])
+
 
+
=== Deprecated ===
+
These parameters are deprecated, and will not be displayed even if declared
+
* ''category''
+
* ''subcategory''
+
 
+
== Template appearance ==
+
When added to an article, the header is displayed on the top right of the article, along with any information entered when the template was created. Note that parameters with no content are not displayed.
+
 
+
</noinclude><div class="toccolours mw-collapsible">
+
== Article Metadata ==
+
<div class="mw-collapsible-content">
+
<!-- Code Example -->{{#if:{{{sourcecode|}}}{{{installfile|}}}|<hr />Code Example|}}<!--
+
-->{{#if: {{{sourcecode|}}}|<div style="font-size:11px; padding-left:10px; padding-top:10px; padding-right:10px;">Source file: {{{sourcecode}}}</div>|}}<!--
+
-->{{#if: {{{installfile|}}}|<div style="font-size:11px; padding:10px 10px 5px 10px;">Installation file: {{{installfile}}}</div>|}}<!--
+
--><!-- Testing-->{{#if: {{{sdk|}}}{{{devices|}}}|<hr />Tested with|}}<!--
+
-->{{#if: {{{sdk|}}}|<div style="font-size:11px; padding-left:10px; padding-top:10px; padding-right:10px;">SDK: {{{sdk}}}</div>|}}<!--
+
-->{{#if: {{{devices|}}}|<div style="font-size:11px; padding:10px 10px 5px 10px;">Devices(s): {{{devices}}}</div>|}}<!--
+
--><!-- Compatability -->{{#if: {{{platform|}}}{{{devicecompatability|}}}|<hr />Compatibility|}}<!--
+
-->{{#if: {{{platform|}}}|<div style="font-size:11px; padding-left:10px; padding-top:10px; padding-right:10px;">Platform(s): {{{platform}}}</div>|}}<!--
+
-->{{#if: {{{devicecompatability|}}}|<div style="font-size:11px; padding:10px 10px 5px 10px;">Device(s): {{{devicecompatability}}}</div>|}}<!--
+
-->{{#if: {{{dependencies|}}}|<div style="font-size:11px; padding:10px 10px 5px 10px;">Dependencies: {{{dependencies}}}</div>|}}<!--
+
--><!-- PlatSec-->{{#if: {{{signing|}}}{{{capabilities|}}}|<hr />Platform Security|}}<!--
+
-->{{#if: {{{signing|}}}|<div style="font-size:11px; padding-left:10px; padding-top:10px; padding-right:10px;">Signing Required: {{{signing}}}</div>|}}<!--
+
-->{{#if: {{{capabilities|}}}|<div style="font-size:11px; padding:10px 10px 5px 10px;">Capabilities: {{{capabilities}}}</div>|}}<!--
+
--><!-- Article Metadata --><hr />Article<!--
+
-->{{#if: {{{id|}}}|<div style="font-size:11px; padding-left:10px; padding-top:10px; padding-right:10px;">Article ID: {{{id}}}</div>|}}<!--
+
-->{{#if: {{{keywords|}}}|<div style="font-size:11px; padding-left:10px; padding-top:10px; padding-right:10px;">Keywords: {{{keywords}}}</div>|}}<!--
+
-->{{#if: {{{translated-by|}}}{{{translated-from-id|}}}{{{translated-from-title|}}}{{{translated-from-url|}}}|<!--
+
--><div style="font-size:11px; padding-left:10px; padding-top:10px; padding-right:10px;">Translated:</div>
+
<div style="font-size:10px; padding-left:15px; padding-top:10px; padding-right:10px;">From {{#if:{{{translated-from-url|}}}|<!-- is url -->{{#if:{{{translated-from-title|}}}|[{{{translated-from-url|}}} {{{translated-from-title|}}}]|{{{translated-from-url|}}} }}<!-- /is url -->|<!--NOT url -->{{#if:{{{translated-from-id|}}}|[{{fullurl:{{{translated-from-title}}}|oldid={{{translated-from-id}}} }} {{{translated-from-title}}}]|[[{{{translated-from-title}}}]] }}<!--/NOT url -->}}</div>
+
{{#if:{{{translated-by|}}}|<div style="font-size:10px; padding-left:15px; padding-top:10px; padding-right:10px;">By {{{translated-by}}}</div>|}}|<!--
+
Not translated
+
--><div style="font-size:11px; padding-left:10px; padding-top:10px; padding-right:10px;">Created: {{#if: {{{author|}}}|{{{author}}}| {{#dpl:titlematch={{FULLPAGENAME}}%|namespace={{NAMESPACE}}|skipthispage=no|addauthor=true|format=,[[User:%USER%|%USER%]],,}}  }} ({{#if: {{{creationdate|}}}|<!-- Format date to standard -->{{#iferror:{{#time: d M Y|{{{creationdate}}} }}|{{{creationdate}}}|{{#time: d M Y|{{{creationdate}}} }} }}<!-- End Format date to standard -->|{{#dpl:titlematch={{FULLPAGENAME}}%|skipthispage=no|ordermethod=firstedit|addeditdate=true|userdateformat=d M Y|format=,%DATE%,,}} }})</div><!--
+
 
+
-->}}<!--
+
 
+
-->{{#if: {{{update-by|}}}|<div style="font-size:11px; padding:10px 10px 5px 10px;">Updated: {{{update-by}}} {{#if: {{{update-timestamp|}}}| ({{#time: d M Y|{{{update-timestamp}}} }})</div>|}}|}}<!--
+
 
+
-->{{#if: {{{review-by|}}}|<div style="font-size:11px; padding:10px 10px 5px 10px;">Reviewed: {{{review-by}}} {{#if: {{{review-timestamp|}}}| ({{#time: d M Y|{{{review-timestamp}}} }})</div>|}}|}}<!--
+
 
+
--><div style="font-size:11px; padding:10px 10px 5px 10px;">Last edited: [[User:{{REVISIONUSER}}]] ({{#time: d M Y | {{REVISIONTIMESTAMP}} }})</div><!--
+
 
+
--> </div></div>
+

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.

×