Difference between revisions of "DPL:FAQ"

From FollowTheScore
Jump to: navigation, search
Line 3: Line 3:
 
=== Answer ===
 
=== Answer ===
 
Normally, DPL replaces all undercores in article names by spaces when showing the result. You can replace underscores by their ''symbolic html name'' via the 'replaceintitle' statement. So DPL will no longer recognize the underscores and the html engine will translate the symbol name to underscores.
 
Normally, DPL replaces all undercores in article names by spaces when showing the result. You can replace underscores by their ''symbolic html name'' via the 'replaceintitle' statement. So DPL will no longer recognize the underscores and the html engine will translate the symbol name to underscores.
 +
 +
This wiki contains an [[Article_with_underscore]]. Normally DPL would show it as {{#dpl:titlematch=%underscore}}.
 +
But with <tt><nowiki>{{#dpl:titlematch=%underscore|replaceintitle=/ /,&amp;#95;}}</nowiki></tt> you will get {{#dpl:titlematch=%underscore|replaceintitle=/ /,&#95;}}

Revision as of 06:08, 25 July 2007

Question

My article name contains underscores, but in the DPL result they don´t appear.

Answer

Normally, DPL replaces all undercores in article names by spaces when showing the result. You can replace underscores by their symbolic html name via the 'replaceintitle' statement. So DPL will no longer recognize the underscores and the html engine will translate the symbol name to underscores.

This wiki contains an Article_with_underscore. Normally DPL would show it as . But with {{#dpl:titlematch=%underscore|replaceintitle=/ /,&#95;}} you will get