×
Namespaces

Variants
Actions
(Difference between revisions)

Template:RelatedPortals

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee -)
hamishwillee (Talk | contribs)
m (Hamishwillee -)
Line 42: Line 42:
 
|nottitlematch=Sandbox%¦Wiki Home%¦Portal:Tools_and_SDK¦Portal:Most Viewed%¦Portal:%Code Examples¦Lang-Chinese¦Lang-Portuguese¦Lang-Arabic¦Lang-Spanish¦Lang-Bahasa Indonesia¦Lang-Russian¦Lang-Japanese¦HTML5¦%Symbian%¦%Qt%¦%Python%¦%PySymbian%¦
 
|nottitlematch=Sandbox%¦Wiki Home%¦Portal:Tools_and_SDK¦Portal:Most Viewed%¦Portal:%Code Examples¦Lang-Chinese¦Lang-Portuguese¦Lang-Arabic¦Lang-Spanish¦Lang-Bahasa Indonesia¦Lang-Russian¦Lang-Japanese¦HTML5¦%Symbian%¦%Qt%¦%Python%¦%PySymbian%¦
 
|{{#if: {{{notcategory|}}}|notcategory={{{notcategory}}}|}}
 
|{{#if: {{{notcategory|}}}|notcategory={{{notcategory}}}|}}
|notcategory=unlikelycategory3134e
+
|notcategory=unlikelycategory334
 
|noresultsheader={{#ifeq: {{{debug|}}}|true|DEBUG - NO RESULTS<br />|}}
 
|noresultsheader={{#ifeq: {{{debug|}}}|true|DEBUG - NO RESULTS<br />|}}
 
|resultsheader={{#ifeq: {{{debug|}}}|true|DEBUG - PAGES RETURNED: %PAGES%<br />|}}
 
|resultsheader={{#ifeq: {{{debug|}}}|true|DEBUG - PAGES RETURNED: %PAGES%<br />|}}
 
|format=,,{{#ifeq: {{{debug|}}}|true|DEBUG - PORTAL [[%PAGE%]]<br />|}},
 
|format=,,{{#ifeq: {{{debug|}}}|true|DEBUG - PORTAL [[%PAGE%]]<br />|}},
 
}}<!-- end do only if namespace is NOT category -->}}<!-- end do template because we're not on a portal page -->}}<!--  
 
}}<!-- end do only if namespace is NOT category -->}}<!-- end do template because we're not on a portal page -->}}<!--  
PORTAL DEBUG  
+
DEBUG  
 
-->{{#ifeq: {{{debug|}}}|true|
 
-->{{#ifeq: {{{debug|}}}|true|
 
* first unnamed parameter (title): {{{1}}}
 
* first unnamed parameter (title): {{{1}}}

Revision as of 09:19, 4 July 2013

This template lists portal pages which link against the current (or specified) page. It is an experimental template for determining if we can get better "related topic" matching than is provided by categories.

Internal use only.

This template uses Template:AddPortalIcon.dpl.default to define the mapping between portal title and icon. Need this because the parserfunction does not seem to be expanded within DPL.


Contents

Usage

{{RelatedPortals|Target page name}}

The parameters are:

  • (optional) The first unnamed parameter is the name of the target page. If not specified, this defaults to the current page.
  • debug: (optional) Forces some debug output.
  • notcategory: (optional) Specify a category like veryunlikelycategory1 to force a refresh.

Examples

{{RelatedPortals|How to get IMEI in Java ME}}


DEBUG: Running query because we are not on Category or Portal page
DEBUG - NO RESULTS

  • first unnamed parameter (title): How to get IMEI in Java ME
  • Full page name: Template:RelatedPortals
  • titleparts full page name: Template:RelatedPortals
  • Links to: How to get IMEI in Java ME
  • Namespace - note only reliable on actual page (is namespace of current page not of specified page) Template


Tiles defined here

WP Metro Icon File.png


Appearance

Default use on this page (should be "nothing")


253 page views in the last 30 days.
×