×
Namespaces

Variants
Actions
(Difference between revisions)

Template:LanguageCategoryPageProxy

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - Add filters to code example section)
hamishwillee (Talk | contribs)
m (Hamishwillee - Extend to support up to 10 OR categories)
Line 12: Line 12:
 
* Un named parameters: categories to display on the page - e.g. Symbian C++. Multiple categories are also possible
 
* Un named parameters: categories to display on the page - e.g. Symbian C++. Multiple categories are also possible
 
* ''language'': language code for articles to display (e.g. Lang-Portuguese)
 
* ''language'': language code for articles to display (e.g. Lang-Portuguese)
 +
* ''platformfilter'': Filters topics on the categories associated with the platform - values are:-[[Template:PlatformCategoriesWindowsPhone|Windows Phone]], [[Template:PlatformCategoriesJavaME|Java ME]]
 
* ''count'': (optional) defines number of items to display in the recently edited and most viewed lists up the top
 
* ''count'': (optional) defines number of items to display in the recently edited and most viewed lists up the top
 
* ''andcategory'': (andcategory2 ... 12)
 
* ''andcategory'': (andcategory2 ... 12)
Line 45: Line 46:
 
|crop={{{crop|}}}
 
|crop={{{crop|}}}
 
|language={{{language|}}}
 
|language={{{language|}}}
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|
+
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{8}}}|{{{10}}}|
 
platformfilter={{{platformfilter|}}}|
 
platformfilter={{{platformfilter|}}}|
 
andcategory={{{andcategory|}}}|  
 
andcategory={{{andcategory|}}}|  
Line 88: Line 89:
 
|crop={{{crop|}}}
 
|crop={{{crop|}}}
 
|language={{{language|}}}
 
|language={{{language|}}}
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|
+
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{8}}}|{{{10}}}|
 
platformfilter={{{platformfilter|}}}|
 
platformfilter={{{platformfilter|}}}|
 
andcategory={{{andcategory|}}}|  
 
andcategory={{{andcategory|}}}|  
Line 132: Line 133:
 
|crop={{{crop|}}}
 
|crop={{{crop|}}}
 
|language={{{language|}}}
 
|language={{{language|}}}
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|
+
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{8}}}|{{{10}}}|
 
platformfilter={{{platformfilter|}}}|
 
platformfilter={{{platformfilter|}}}|
 
andcategory={{{andcategory|}}}|  
 
andcategory={{{andcategory|}}}|  
Line 186: Line 187:
 
|showhidden={{{showhidden|false}}}
 
|showhidden={{{showhidden|false}}}
 
|language={{{language|}}}
 
|language={{{language|}}}
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|
+
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{8}}}|{{{10}}}|
 
andcategory={{{andcategory|}}}|  
 
andcategory={{{andcategory|}}}|  
 
andcategory2={{{andcategory2|}}}|  
 
andcategory2={{{andcategory2|}}}|  
Line 231: Line 232:
 
|showhidden={{{showhidden|false}}}
 
|showhidden={{{showhidden|false}}}
 
|language={{{language|}}}
 
|language={{{language|}}}
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|
+
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{8}}}|{{{10}}}|
 
andcategory={{{andcategory|}}}|  
 
andcategory={{{andcategory|}}}|  
 
andcategory2={{{andcategory2|}}}|  
 
andcategory2={{{andcategory2|}}}|  
Line 277: Line 278:
 
|showhidden={{{showhidden|false}}}
 
|showhidden={{{showhidden|false}}}
 
|language={{{language|}}}
 
|language={{{language|}}}
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|
+
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{8}}}|{{{10}}}|
 
andcategory={{{andcategory|}}}|  
 
andcategory={{{andcategory|}}}|  
 
andcategory2={{{andcategory2|}}}|  
 
andcategory2={{{andcategory2|}}}|  
Line 323: Line 324:
 
|showhidden={{{showhidden|false}}}
 
|showhidden={{{showhidden|false}}}
 
|language={{{language|}}}
 
|language={{{language|}}}
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|
+
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{8}}}|{{{10}}}|
 
andcategory={{{andcategory|}}}|  
 
andcategory={{{andcategory|}}}|  
 
andcategory2={{{andcategory2|}}}|  
 
andcategory2={{{andcategory2|}}}|  
Line 385: Line 386:
 
|crop={{{crop|}}}
 
|crop={{{crop|}}}
 
|language={{{language|}}}
 
|language={{{language|}}}
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|
+
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{8}}}|{{{10}}}|
 
platformfilter={{{platformfilter|}}}|
 
platformfilter={{{platformfilter|}}}|
 
andcategory={{{andcategory|}}}|  
 
andcategory={{{andcategory|}}}|  
Line 432: Line 433:
 
{{#ifeq: {{{platformfilter|}}}|Windows Phone|{{platformCategoriesWindowsPhone}}|}}|
 
{{#ifeq: {{{platformfilter|}}}|Windows Phone|{{platformCategoriesWindowsPhone}}|}}|
 
{{#ifeq: {{{platformfilter|}}}|Java ME|{{platformCategoriesJavaME}}|}}|
 
{{#ifeq: {{{platformfilter|}}}|Java ME|{{platformCategoriesJavaME}}|}}|
 +
{{#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: {{{7|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}¦{{{4}}}¦{{{5}}}¦{{{6}}}¦{{{7}}}|
 
{{#if: {{{6|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}¦{{{4}}}¦{{{5}}}¦{{{6}}}|
 
{{#if: {{{6|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}¦{{{4}}}¦{{{5}}}¦{{{6}}}|
Line 439: Line 443:
 
{{#if: {{{2|}}}|category={{{1}}}¦{{{2}}}|
 
{{#if: {{{2|}}}|category={{{1}}}¦{{{2}}}|
 
{{#if: {{{1|}}}|category={{{1}}}|}}
 
{{#if: {{{1|}}}|category={{{1}}}|}}
}} }} }} }} }} }}|
+
}} }} }} }} }} }} }} }} }}|
 
{{#if: {{{language|}}}|category={{{language}}}|notcategorymatch=Lang-%}}|  
 
{{#if: {{{language|}}}|category={{{language}}}|notcategorymatch=Lang-%}}|  
 
{{#if: {{{andcategory|}}}|category={{{andcategory}}}|}}|  
 
{{#if: {{{andcategory|}}}|category={{{andcategory}}}|}}|  
Line 509: Line 513:
 
{{#dpl:
 
{{#dpl:
 
namespace={{{namespace|}}}|
 
namespace={{{namespace|}}}|
 +
{{#ifeq: {{{platformfilter|}}}|Windows Phone|{{platformCategoriesWindowsPhone}}|}}|
 +
{{#ifeq: {{{platformfilter|}}}|Java ME|{{platformCategoriesJavaME}}|}}|
 +
{{#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: {{{7|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}¦{{{4}}}¦{{{5}}}¦{{{6}}}¦{{{7}}}|
 
{{#if: {{{6|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}¦{{{4}}}¦{{{5}}}¦{{{6}}}|
 
{{#if: {{{6|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}¦{{{4}}}¦{{{5}}}¦{{{6}}}|
Line 516: Line 525:
 
{{#if: {{{2|}}}|category={{{1}}}¦{{{2}}}|
 
{{#if: {{{2|}}}|category={{{1}}}¦{{{2}}}|
 
{{#if: {{{1|}}}|category={{{1}}}|}}
 
{{#if: {{{1|}}}|category={{{1}}}|}}
}} }} }} }} }} }}|
+
}} }} }} }} }} }} }} }} }}|
 
{{#if: {{{language|}}}|category={{{language}}}|notcategorymatch=Lang-%}}|  
 
{{#if: {{{language|}}}|category={{{language}}}|notcategorymatch=Lang-%}}|  
 
{{#if: {{{andcategory|}}}|category={{{andcategory}}}|}}|  
 
{{#if: {{{andcategory|}}}|category={{{andcategory}}}|}}|  
Line 588: Line 597:
 
{{#dpl:
 
{{#dpl:
 
namespace=¦Archived¦{{{namespace|}}}|
 
namespace=¦Archived¦{{{namespace|}}}|
 +
{{#ifeq: {{{platformfilter|}}}|Windows Phone|{{platformCategoriesWindowsPhone}}|}}|
 +
{{#ifeq: {{{platformfilter|}}}|Java ME|{{platformCategoriesJavaME}}|}}|
 +
{{#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: {{{7|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}¦{{{4}}}¦{{{5}}}¦{{{6}}}¦{{{7}}}|
 
{{#if: {{{6|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}¦{{{4}}}¦{{{5}}}¦{{{6}}}|
 
{{#if: {{{6|}}}|category={{{1}}}¦{{{2}}}¦{{{3}}}¦{{{4}}}¦{{{5}}}¦{{{6}}}|
Line 595: Line 609:
 
{{#if: {{{2|}}}|category={{{1}}}¦{{{2}}}|
 
{{#if: {{{2|}}}|category={{{1}}}¦{{{2}}}|
 
{{#if: {{{1|}}}|category={{{1}}}|}}
 
{{#if: {{{1|}}}|category={{{1}}}|}}
}} }} }} }} }} }}|
+
}} }} }} }} }} }} }} }} }}|
 
{{#if: {{{language|}}}|category={{{language}}}|notcategorymatch=Lang-%}}|  
 
{{#if: {{{language|}}}|category={{{language}}}|notcategorymatch=Lang-%}}|  
 
{{#if: {{{andcategory|}}}|category={{{andcategory}}}|}}|  
 
{{#if: {{{andcategory|}}}|category={{{andcategory}}}|}}|  

Revision as of 09:13, 19 July 2013

This template creates a "pseudo" category page. It is intended to allow us to create category pages for other languages, without having to use real non-English category names.

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.


Usage

{{LanguageCategoryPageProxy|language=XXX|}}

The parameters are:

  • Un named parameters: categories to display on the page - e.g. Symbian C++. Multiple categories are also possible
  • language: language code for articles to display (e.g. Lang-Portuguese)
  • platformfilter: Filters topics on the categories associated with the platform - values are:-Windows Phone, Java ME
  • count: (optional) defines number of items to display in the recently edited and most viewed lists up the top
  • andcategory: (andcategory2 ... 12)
  • notcategory: (notcategory2... 12)
  • showhidden=true: If true, articles in categories Archived, FNWiki and Advertising are shown (hidden by default)
  • 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
  • listportals=true: If defined, lists all articles that have title prefix "Portals:" in the current language
  • shrinkleft=true: If defined, makes the first lists shrink left rather than display full width. This then works better with a right aligned lists. May be used in conjunction with listed portals.
  • showbycategories=true : If defined, lists all articles with categories. Usual for "main" category page.
  • notheadlines=true : Hides the headline section (and DPL is not executed) - recent edits, most viewed, newest. Note, these would also be hidden if empty
  • addplatforms=true : Adds a section displaying the topics in the main platforms (Windows Phone, Nokia Asha, Symbian Meego).
    • notplatform-asha=true : If platforms have been enabled, this disables the portal for Nokia Asha - used if Asha portal already exists and has been displayed
    • notplatform-symbian=true : If platforms have been enabled, this disables the portal for Symbian - used if Symbian portal already exists and has been displayed
    • notplatform-meego=true : If platforms have been enabled, this disables the portal for MeeGo - used if meego portal already exists
    • notplatform-windowsphone=true : If platforms have been enabled, this disables the portal for Windows Phone - used if WP portal already exists
  • addhighlightnewest=true : Adds a list containing the newest articles

Appearance

The default template does ...

Recently Edited

Most Viewed



Code Examples

There are 500 Code Example (Articles with downloadable source code packages).

2

A

B

C

C cont.

D

E

E cont.

F

G

H


Articles

There are 500 Articles (without downloadable source code packages.)

2

3

5

A

A cont.

B

C

C cont.


Archived

There are 500 Archived Articles/Code Examples

A

B

C

C cont.

C cont.

D

E

577 page views in the last 30 days.
×