×
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 49: Line 49:
 
|include={AddPortalIcon}.dpl
 
|include={AddPortalIcon}.dpl
 
|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%¦
|notcategory=unlikelycategory19
+
|notcategory=unlikelycategory20
 
|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 -->}}

Revision as of 14:17, 17 May 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.


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.

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



Appearance

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



319 page views in the last 30 days.
×