Page MenuHomePhabricator

[Migrated] FixReferenceTags: remove nowiki; encode titles
Open, Needs TriagePublic


If the title and url parameters in a citation template are defined, then the title is linked. If the title contains certain characters, then the link is broken and the display is malformed. The standard fix is to encode the offending characters in the title field, however some editors have been wrapping the value in <nowiki>. While the visual rendering is fine, the metadata in the COinS output is mangled, with the strip markers exposed; see Help:Strip markers for details.

We need to remove <nowiki> tags and encode characters in the title and chapter fields.

  • remove <nowiki> and </nowiki>
  • change newline to space
  • change [ to &#91;
  • change ] to &#93;
  • change &#124; to &#124;

:This needs clarification. Is it requested to remove "encode[d] characters" (as well as "nowiki" constructs)? Or is that certain characters (e.g., square brackets) should be represented by their codes ("&#91;")? ~ J. Johnson 21:57, 19 January 2012 (UTC)

Event Timeline

Reguyla raised the priority of this task from to Needs Triage.
Reguyla updated the task description. (Show Details)
Reguyla added a project: AutoWikiBrowser.
Reguyla moved this task to Feature request (unsorted) on the AutoWikiBrowser board.
Josve05a updated the task description. (Show Details)May 17 2015, 12:12 AM
Josve05a set Security to None.
Josve05a removed a subscriber: J.
Josve05a renamed this task from [Migrate] FixReferenceTags: remove nowiki; encode titles to [Migrated] FixReferenceTags: remove nowiki; encode titles.May 17 2015, 12:16 AM