×
Namespaces

Variants
Actions
(Difference between revisions)

Template:LanguageCategoryPageProxy

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - disable "listportals" - relies on toggledisplay which we don't need. Make archived section "expandable")
hamishwillee (Talk | contribs)
m (Hamishwillee - - Appearance: - make code example and article sections collapsible)
Line 272: Line 272:
 
{{#if: {{{uses|}}}|uses={{{uses}}}|}}|
 
{{#if: {{{uses|}}}|uses={{{uses}}}|}}|
 
{{#if: {{{notuses|}}}|notuses={{{notuses}}}|}}|
 
{{#if: {{{notuses|}}}|notuses={{{notuses}}}|}}|
|resultsheader=<br />{{#switch: {{{language|}}}   
+
|resultsheader=<br /><div class="mw-collapsible" >{{#switch: {{{language|}}}   
 
  | Lang-PT
 
  | Lang-PT
  | Lang-Portuguese = <h2>Exemplos de código</h2>Esta página tem %PAGES% exemplos de código
+
  | Lang-Portuguese = <h2>Exemplos de código</h2>
 
  | Lang-RU
 
  | Lang-RU
  | Lang-Russian = <h2>Примеры кода</h2>В категории %PAGES% приме ров кода
+
  | Lang-Russian = <h2>Примеры кода</h2>
 
  | Lang-CN
 
  | Lang-CN
  | Lang-Chinese = <h2>代码示例</h2>共 %PAGES% 个代码示例
+
  | Lang-Chinese = <h2>代码示例</h2>
 
  | Lang-JP
 
  | Lang-JP
  | Lang-Japanese = <h2>Code Examples</h2>There are %PAGES% Code Examples
+
  | Lang-Japanese = <h2>Code Examples</h2>
  | #default = <h2>Code Examples</h2>There are %PAGES% Code Example (Articles with downloadable source code packages).
+
  | #default = <h2>Code Examples</h2>
 +
}}<div class="mw-collapsible-content">{{#switch: {{{language|}}} 
 +
| Lang-PT
 +
| Lang-Portuguese =Esta página tem %PAGES% exemplos de código
 +
| Lang-RU
 +
| Lang-Russian =В категории %PAGES% приме ров кода
 +
| Lang-CN
 +
| Lang-Chinese =共 %PAGES% 个代码示例
 +
| Lang-JP
 +
| Lang-Japanese =There are %PAGES% Code Examples
 +
| #default =There are %PAGES% Code Example (Articles with downloadable source code packages).
 
  }}
 
  }}
 +
|resultsfooter=</div></div>
 
|mode=category
 
|mode=category
 
}}
 
}}
Line 338: Line 349:
 
{{#if: {{{uses|}}}|uses={{{uses}}}|}}|
 
{{#if: {{{uses|}}}|uses={{{uses}}}|}}|
 
{{#if: {{{notuses|}}}|notuses={{{notuses}}}|}}|
 
{{#if: {{{notuses|}}}|notuses={{{notuses}}}|}}|
|resultsheader=<br />{{#switch: {{{language|}}}   
+
|resultsheader=<br /><div class="mw-collapsible" >{{#switch: {{{language|}}} 
 +
| Lang-PT
 +
| Lang-Portuguese = <h2>Artigos</h2>
 +
| Lang-RU
 +
| Lang-Russian = <h2>Статьи</h2>
 +
| Lang-CN
 +
| Lang-Chinese = <h2>文章</h2>
 +
| Lang-JP
 +
| Lang-Japanese = <h2>Articles</h2>
 +
| #default = <h2>Articles</h2>
 +
}}<div class="mw-collapsible-content">{{#switch: {{{language|}}}   
 
  | Lang-PT
 
  | Lang-PT
  | Lang-Portuguese = <h2>Artigos</h2>Esta página tem %PAGES% artigos  
+
  | Lang-Portuguese =Esta página tem %PAGES% artigos  
 
  | Lang-RU
 
  | Lang-RU
  | Lang-Russian = <h2>Статьи</h2>В категории %PAGES% стат ей
+
  | Lang-Russian =В категории %PAGES% стат ей
 
  | Lang-CN
 
  | Lang-CN
  | Lang-Chinese = <h2>文章</h2>共 %PAGES% 篇文章
+
  | Lang-Chinese =共 %PAGES% 篇文章
 
  | Lang-JP
 
  | Lang-JP
  | Lang-Japanese = <h2>Articles</h2>There are %PAGES% Articles
+
  | Lang-Japanese =There are %PAGES% Articles
  | #default = <h2>Articles</h2>There are %PAGES% Articles (without downloadable source code packages.)
+
  | #default =There are %PAGES% Articles (without downloadable source code packages.)
 
  }}
 
  }}
 +
|resultsfooter=</div></div>
 
|mode=category
 
|mode=category
 
}}
 
}}

Revision as of 08:22, 20 May 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)
  • 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 exectuted) - recent edits, most viewed, newest. Note, these would also be hidden if empty
  • 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

485 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.

×