When used as {{#tag:ref|...}}, references can contain strip markers,
and different strip markers can hide the same text, so unstrip before
comparing to avoid false warnings.
Bug: T205803
Change-Id: I059fd853d1eea07aa06cc85f80e463dd97fd171a
* noPwrapping and noPre existed to reproduce the symptomatic
effects of other behavior / semantics in the parsing pipeline.
One of that semantic source was the fact that the content
being parsed in their own pipeline was being using in inline
contexts and p-wrapping and indent-pre generation doesn't
make sense in those contexts.
The other semantic source was the fact that when the content
being parsed in their own pipeline was embedded "inPHPBlock"
in the PHP Parser's doBlockLevels sense, i.e. inside a block
element that existed on the same wikitext source line.
* This patch introduces inPHPBlock and inlineContext as two
new parsing pipeline options and uses one or the other or both
where appropriate.
* No change in parser test results as expected.
Change-Id: I2c625456c6593e49b6a247fb9b2f2e3d6021155b
* This removes Cite leakage in html2wt code by adding PHP parser
side-effect leakage into the Cite extension configs.
This is a somewhat temporary solution which we hope to address
better as part of ongoing cleanup.
* After 4 years, 'a quick hack for now' introduced in 3301393515f
has been addressed.
* No change in parser test passes.
Change-Id: Ic5f8c160d4eedcc4236bce5f095344bd879188cd
* cite_reference_link_key_with_num
Dropped from: az diq fa is jv ka ksh min ru sr-ec sr-el tl uk ur
* cite_reference_link_prefix
Dropped from: fa jv min ru sr-ec sr-el tl tmz uk ur
* cite_references_link_prefix
Dropped from: jv min ru sr-ec sr-el tl uk
* cite_references_link_one
Dropped from: diq ka kk-cyrl sr-ec sr-el tl uk
* cite_references_link_many
Dropped from: diq ka kk-cyrl sr-ec sr-el tl tr
* cite_references_link_many_format
Dropped from: az diq id ka ru sr-ec sr-el tl tr uk
* cite_references_link_many_format_backlink_labels
Dropped from: diq es jv min scn tl tr
* cite_references_link_many_sep
Dropped from: az diq is jv ka min ru sr-ec sr-el tl tmz uk
* cite_references_link_many_and
Dropped from: az diq is jv ka ksh min ru sr-ec sr-el tl tmz uk
The other "magic" messages had no unnecessary over-rides:
* cite_reference_link_suffix
* cite_references_link_suffix
* cite_reference_link
* cite_references_no_link
Change-Id: I83eebfeb5ef5cb44a2971ee53b7484b480e5aba6
Because of how arrays are handled, phan-taint-check thought all
return values from refArg() were escaped, where really only $dir
was. We also split the error method into the parse and noparse
case as separate functions so that phan can better analyse these calls.
In linkRef() we suppress the double escaping as the escaping used
is appropriate for inserting into wikitext.
Bug: T195009
Change-Id: I3e04c8cceae727e5470d4ae4fdb2404639f9bf33
@static is intended for use only when the language does
not support the concept of static methods natively
Change-Id: I9a0bf7db493d5667b22508e65a34034cefdbcbfa