Difference between revisions of "Issue:%PAGE% bug in image link"

From FollowTheScore
Jump to: navigation, search
(New page: {{Issue |Type = Bug <-- please select |Extension = DPL <-- please select |Version = 1.8.9 |Description = :%PAGE% bug in image link |Status = open }} == Problem == W...)
 
 
Line 1: Line 1:
 
{{Issue
 
{{Issue
  |Type        = Bug <-- please select
+
  |Type        = Bug  
  |Extension  = DPL <-- please select
+
  |Extension  = DPL  
 
  |Version    = 1.8.9
 
  |Version    = 1.8.9
 
  |Description = :%PAGE% bug in image link
 
  |Description = :%PAGE% bug in image link

Latest revision as of 01:36, 25 May 2010

Description: :%PAGE% bug in image link
Extension / Version: DPL   /   1.8.9
Type / Status: Bug   /   open

Problem

When using %PAGE% in a link field ina mediawiki image (to link the image to another page) it does not work if the page name has a space in it. e.g. IN the example below, all references to %PAGE% work perfectly if the page name is one word, but if it is a two word page title, the link=http://mysite.com/index.php?title=%PAGE% fails - instead it links to the image file path. But this works fine if the page title is one word

{{#dpl: |category=catname |namespace=Main |randomcount=1 |include=teaser |format = ,\n'''[[%PAGE%|%TITLE%]]'''[[Image:%PAGE%-main.jpg|border|150px|right|link=http://mysite.com/index.php?title=%PAGE%]], [[%PAGE%|...Read more about %PAGE%...]], }}

Reply