×
Namespaces

Variants
Actions
(Difference between revisions)

Template:LanguageCategoryPageProxy

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - Revert to version without messy rendering)
hamishwillee (Talk | contribs)
(Hamishwillee - Change the highlight section to use updated lists and also make it possible to fully hide this highlight section)
Line 23: Line 23:
 
* ''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.
 
* ''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.
 
* ''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 == <!-- Remove or rename section based on what the template does -->
 
== Appearance == <!-- Remove or rename section based on what the template does -->
 
The default template does ...
 
The default template does ...
  
</noinclude>{|style="vertical-align:top; {{#if:{{{shrinkleft|}}}|width:inherit;|}}"
+
</noinclude>{{#if: {{{notheadlines|}}}|<!-- hide the default headlines -->|
|-
+
<table style="vertical-align:top; {{#if:{{{shrinkleft|}}}|width:inherit;|}}">
|colspan="2"|
+
<tr>
== {{#switch: {{{language|}}} 
+
<td>
| Lang-PT
+
| Lang-Portuguese = Artigos modificados recentemente e artigos mais acessados
+
| Lang-RU
+
| Lang-Russian = Недавно измененные и наиболее популярные
+
| Lang-CN
+
| Lang-Chinese = 最近编辑以及最多浏览
+
| Lang-JP
+
| Lang-Japanese = Recently Edited and Most Viewed
+
| #default = Recently Edited and Most Viewed
+
}} ==
+
__NOEDITSECTION__
+
|-
+
|style="width:50%;"|
+
===={{#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
+
}}====
+
__NOEDITSECTION__
+
 
{{ListRecentlyEdited
 
{{ListRecentlyEdited
 +
|addheading=true
 
|showhidden={{{showhidden|false}}}
 
|showhidden={{{showhidden|false}}}
 
|count={{{count|15}}}
 
|count={{{count|15}}}
Line 96: Line 75:
 
uses={{{uses|}}}|
 
uses={{{uses|}}}|
 
notuses={{{notuses|}}}|
 
notuses={{{notuses|}}}|
  }}
+
  }}</td><td>
|style="width:50%;"|
+
===={{#switch: {{{language|}}} 
+
| Lang-PT
+
| Lang-Portuguese = Mais acessados
+
| Lang-RU
+
| Lang-Russian = Наиболее популярные
+
| Lang-CN
+
| Lang-Chinese = 最多浏览
+
| Lang-JP
+
| Lang-Japanese = Most Viewed
+
| #default = Most Viewed
+
}}====
+
__NOEDITSECTION__
+
 
{{ListMostViewed
 
{{ListMostViewed
 +
|addheading=true
 +
|showhidden={{{showhidden|false}}}
 +
|count={{{count|15}}}
 +
|crop={{{crop|}}}
 +
|language={{{language|}}}
 +
|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|
 +
andcategory={{{andcategory|}}}|
 +
andcategory2={{{andcategory2|}}}|
 +
andcategory3={{{andcategory3|}}}|
 +
andcategory4={{{andcategory4|}}}|
 +
andcategory5={{{andcategory5|}}}|
 +
andcategory6={{{andcategory6|}}}|
 +
andcategory7={{{andcategory7|}}}|
 +
andcategory8={{{andcategory8|}}}|
 +
andcategory9={{{andcategory9|}}}|
 +
andcategory10={{{andcategory10|}}}|
 +
andcategory11={{{andcategory11|}}}|
 +
andcategory12={{{andcategory12|}}}|
 +
notcategory={{{notcategory|}}}|
 +
notcategory2={{{notcategory2|}}}|
 +
notcategory3={{{notcategory3|}}}|
 +
notcategory4={{{notcategory4|}}}|
 +
notcategory5={{{notcategory5|}}}|
 +
notcategory6={{{notcategory6|}}}|
 +
notcategory7={{{notcategory7|}}}|
 +
notcategory8={{{notcategory8|}}}|
 +
notcategory9={{{notcategory9|}}}|
 +
notcategory10={{{notcategory10|}}}|
 +
notcategory11={{{notcategory11|}}}|
 +
notcategory12={{{notcategory12|}}}|
 +
notcategory13={{{notcategory13|}}}|
 +
notcategory14={{{notcategory14|}}}|
 +
notcategory15={{{notcategory15|}}}|
 +
notcategory16={{{notcategory16|}}}|
 +
notcategory17={{{notcategory17|}}}|
 +
notcategory18={{{notcategory18|}}}|
 +
notcategory19={{{notcategory19|}}}|
 +
notcategory20={{{notcategory20|}}}| 
 +
uses={{{uses|}}}|
 +
notuses={{{notuses|}}}|
 +
}}</td>
 +
<!-- start of section for highlightnewest-->{{#if:{{{addhighlightnewest|}}}|<td>
 +
{{ListRecentlyCreated
 +
|addheading=true
 
|showhidden={{{showhidden|false}}}
 
|showhidden={{{showhidden|false}}}
 
|count={{{count|15}}}
 
|count={{{count|15}}}
Line 151: Line 161:
 
notuses={{{notuses|}}}|
 
notuses={{{notuses|}}}|
 
}}
 
}}
|}
+
</td><!-- end of addhighlightnewest-->|}}</tr></table> <!-- end of notheadlines-->}}<!-- end of headlines section
<!-- List by category section: only displayed if "showbycategories=true"-->
+
 
 +
--><!-- List by category section: only displayed if "showbycategories=true"-->
 
{{#if: {{{showbycategories|}}}|<br />
 
{{#if: {{{showbycategories|}}}|<br />
 
== {{#switch: {{{language|}}}   
 
== {{#switch: {{{language|}}}   

Revision as of 14:05, 16 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


332 page views in the last 30 days.
×