Topic on Extension talk:PubmedParser

Brackets not formatted in balance

7
Summary by Kghbln

Caused by Semantic MediaWiki.

Kghbln (talkcontribs)

Hi, the brackets generated by the parser function, which point to the reference at the bottom of the page e.g. [1] are not formatted in balance. The opening bracket is part of the link while the closing bracket is not. See this image. The closing bracket should be part of the link, too. Cheers

MediaWiki 1.27.3, PubmedParser v4.0.2, PHP 5.6.30

Bovender (talkcontribs)

I believe that's not an issue with PubmedParser. All that PubmedParser does is write out <ref>...</ref> tags, i.e., it makes use of the Cite extension. Besides, I can't reproduce on my Wiki?

Kghbln (talkcontribs)

Well, it must be an issue with the Cite extension on REL1_27. Doing <ref>{{#pmid:19782018}}</ref> not using the reference name parameter gives the same unbalanced view.

Kghbln (talkcontribs)

Just tested this with BlueSpiceSkin, Foreground and Vector on two different wikis with different setups and they all give me this view. Which version of MediaWiki are you using?

Bovender (talkcontribs)

I'm on MW 1.18.0, PubmedParser 4.0.1 (funny, not current), PHP 5.5.9 on my production wiki and on MW 1.26.3, PubmedParser 4.0.2, PHP 7.0.18 on my development wiki. If it's a REL1_27 issue, it was not there in 1.26 and disappeared in 1.27 ;-)

Just verified that I really do not see this behavior.

Kghbln (talkcontribs)

I keep this on close watch. There is a reason but I have not figured it out yet.

Kghbln (talkcontribs)

I have found another case where the trailing bracket gets formatted differently. So it must be the Foreground skin doing this and not this extension. Thanks for your time anyways!