Difference between revisions of "Issue:Categorymatch=with apostrophe"

From FollowTheScore
Jump to: navigation, search
(Reply)
m (Reply)
 
(4 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
  |Version    = 1.7.6+ (at least)
 
  |Version    = 1.7.6+ (at least)
 
  |Description = categorymatch desn't find cats with '
 
  |Description = categorymatch desn't find cats with '
  |Status      = open
+
  |Status      = closed
 
}}
 
}}
  
Line 48: Line 48:
 
[[User:Gero|Gero]] 06:41, 2 August 2009 (UTC)
 
[[User:Gero|Gero]] 06:41, 2 August 2009 (UTC)
  
::I know the underscore problem and it doesn't help. See (cl0.cl_to LIKE '%\'d_%')  this is what causes me problems. [[:Category:Café d'Anvers|'''This''']] is the problem I have. I use a template on all cats that check the for images used on category=<nowiki>{{PAGENAME}}</nowiki>. This works fine for all cats I've checked so far just not for "Café d'Anvers". While it actually should matter much. --[[User:Subfader|Subfader]] 12:12, 2 August 2009 (UTC)
+
::I know the underscore problem and it doesn't help. See (cl0.cl_to LIKE '%\'d_%')  this is what causes me problems. [[:Category:Café d'Anvers|'''This''']] is the problem I have. I use a template on all cats that check the for images used on category=<nowiki>{{PAGENAME}}</nowiki>. This works fine for all cats I've checked so far just not for "Café d'Anvers". But it would work if I use "category=Café d'Anvers" directly. Do you a workaround to make it work for all kind of cat names using <nowiki>{{PAGENAME}}</nowiki>? --[[User:Subfader|Subfader]] 12:12, 2 August 2009 (UTC)
 +
 
 +
:::Resolved in DPL 1.8.7.
 +
:::Mediawiki expands special chars within PAGENAME to html entities and ther & misleads tDPL to take the & as an AND operator.
 +
:::I added a statement to decode html entities and now it seems to work as expected. [[User:Gero|Gero]] 16:12, 2 August 2009 (UTC)
 +
 
 +
::::Oh great. I was waiting for an update. You rock. --[[User:Subfader|Subfader]] 18:51, 2 August 2009 (UTC)
 +
:::::Is there a workaround to use pagename in an older version and to replace the ' and & with e.g. some regex? I can't upgrade onthe server because of the non working totalpages. --[[User:Subfader|Subfader]] 21:53, 2 August 2009 (UTC)

Latest revision as of 22:53, 2 August 2009

Description: categorymatch desn't find cats with '
Extension / Version: DPL   /   1.7.6+ (at least)
Type / Status: Bug   /   closed

Problem

{{#dpl:
|debug=3
|categorymatch=Test'd funk
}}

This doesn't find Muha Test 2. While category= does.

{{#dpl:
|category=Test'd funk
}}

Another one
.

{{#dpl:
|debug=3
|categorymatch=Cat d'Test
}}

Reply

The problem is not the apostrophe but the space char. Replace it by an underscore! I will add a bugfix which automatically replaces spaces by underscores in catgeorymatch ...

categorymatch=%Test'd funk%:

Gero 06:41, 2 August 2009 (UTC)

I know the underscore problem and it doesn't help. See (cl0.cl_to LIKE '%\'d_%') this is what causes me problems. This is the problem I have. I use a template on all cats that check the for images used on category={{PAGENAME}}. This works fine for all cats I've checked so far just not for "Café d'Anvers". But it would work if I use "category=Café d'Anvers" directly. Do you a workaround to make it work for all kind of cat names using {{PAGENAME}}? --Subfader 12:12, 2 August 2009 (UTC)
Resolved in DPL 1.8.7.
Mediawiki expands special chars within PAGENAME to html entities and ther & misleads tDPL to take the & as an AND operator.
I added a statement to decode html entities and now it seems to work as expected. Gero 16:12, 2 August 2009 (UTC)
Oh great. I was waiting for an update. You rock. --Subfader 18:51, 2 August 2009 (UTC)
Is there a workaround to use pagename in an older version and to replace the ' and & with e.g. some regex? I can't upgrade onthe server because of the non working totalpages. --Subfader 21:53, 2 August 2009 (UTC)