×
Namespaces

Variants
Actions
(Difference between revisions)

Template:LanguageCategoryPageProxy

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - Fix typo)
hamishwillee (Talk | contribs)
m (Hamishwillee - support for portal lists)
Line 16: Line 16:
 
* ''notcategory'': (notcategory2... 12)
 
* ''notcategory'': (notcategory2... 12)
 
* ''showhidden=true'': If true, articles in categories Archived, FNWiki and Advertising are shown (hidden by default)
 
* ''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'': 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
 
  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'': 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
 
  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 list. You do not need to do this if listportals is defined - this is for manual portals.
  
 
== Appearance == <!-- Remove or rename section based on what the template does -->
 
== Appearance == <!-- Remove or rename section based on what the template does -->
Line 32: Line 33:
 
| #default = Recently Edited and Most Viewed
 
| #default = Recently Edited and Most Viewed
 
}} ==
 
}} ==
{|style="vertical-align:top; {{#if:{{{listportals|}}}|width:inherit;|}}"
+
{|style="vertical-align:top; {{#if:{{{listportals|}}}|width:inherit;|}} {{#if:{{{shrinkleft|}}}|width:inherit;|}}"
 
|style="width:50%;"|
 
|style="width:50%;"|
 
===={{#switch: {{{language|}}}   
 
===={{#switch: {{{language|}}}   

Revision as of 03:18, 25 July 2011

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)
  • 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 list. You do not need to do this if listportals is defined - this is for manual portals.

Appearance

The default template does ...

Recently Edited and Most Viewed

Recently Edited

Most Viewed


Code Examples

There are 500 Code Examples

2

A

B

C

C cont.

D

E

E cont.

F

G

H


Articles

There are 500 Articles

2

3

5

A

A cont.

B

C

C cont.


493 page views in the last 30 days.

Was this page helpful?

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

 

Thank you!

We appreciate your feedback.

×