Difference between revisions of "Issue:Escaping AND characters in Category parameter"

From FollowTheScore
Jump to: navigation, search
(New page: {{Issue |Type = Bug |Extension = DPL |Version = All |Description = Is there a way to escape the & characters when choosing categories ? |Status = open }} == Problem...)
 
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:
  
 
== Problem ==
 
== Problem ==
Problem is some of my categories contain a & character. For example I have [[Category:Speak & Spell]]. When trying to include this category, DPL understands that I'm looking for articles that would in [[Category:Speak ]] AND [[Category: Spell]].
+
Problem is some of my categories contain a & character. For example I have <nowiki>[[Category:Speak & Spell]]</nowiki>. When trying to include this category, DPL understands that I'm looking for articles that would in <nowiki>[[Category:Speak ]]</nowiki> AND <nowiki>[[Category: Spell]]</nowiki>.
  
  
  
 
== Reply ==
 
== Reply ==
 +
Create a Template ([[Template:amp]] in our case) which contains a single "&" and then write something like:
 +
<pre>
 +
<dpl>
 +
debug=3
 +
category=A{{amp}}B
 +
</dpl>
 +
</pre>
 +
 +
[[User:Gero|Gero]] 22:10, 16 September 2008 (UTC)

Latest revision as of 00:10, 17 September 2008

Description: Is there a way to escape the & characters when choosing categories ?
Extension / Version: DPL   /   All
Type / Status: Bug   /   open

Problem

Problem is some of my categories contain a & character. For example I have [[Category:Speak & Spell]]. When trying to include this category, DPL understands that I'm looking for articles that would in [[Category:Speak ]] AND [[Category: Spell]].


Reply

Create a Template (Template:amp in our case) which contains a single "&" and then write something like:

<dpl>
 debug=3
 category=A{{amp}}B
</dpl>

Gero 22:10, 16 September 2008 (UTC)