PHP-Wikipedia-Syntax-Parser icon indicating copy to clipboard operation
PHP-Wikipedia-Syntax-Parser copied to clipboard

some issue i encounter

Open henryatman opened this issue 7 years ago • 1 comments

hi, Don, thank your share this wonderful project, it's best wiki parse of php i can find,

i have some issue, like :

have text {{flag|some useful text}}, this text only use template flag ico, just remove from body document, even can't find in templates object, it's really frustrate me,

otherwise, more important issue,

any ref, any template text, img, file after extract but can't recover to origin position if need show it, not anchor provide to do it,

is there any advice or improvement ?

thanks

henryatman avatar Jan 26 '18 03:01 henryatman

{{flag|some useful text}} might be using an alternate version of template name, Wikipedia redirects old Template usage to the most correct one. You might have to add several additions to ignore_template_matches array.

Image URLs aren't easy to calculate from the template alone - see https://www.mediawiki.org/wiki/Manual:Linked_images

donwilson avatar Jan 30 '18 00:01 donwilson