Page MenuHomePhabricator

Use of templates in #info: doesn't display properly in 'edit with from' (since SMW 2.5.0)
Closed, InvalidPublic

Description

Today we upgraded to SMW 2.5.0 (after getting the latest PF 4.1)

This code

! Context:  {{#info: {{Help:InfoContext}} }}
| {{{field|Context|input type=tree|structure={{ComponentContextWaarden}}|mandatory }}}

shows InfoContext]]"> (instead of Context:) followed by ? icon when the page is edited with form.
The whole text is sensitive for the mouse hovering and shows the content from page Help:InfoContext.

! Context:  {{#info: Hallo world }}

displays label Context: properly when edit with form and hovering over ? icon shows 'Hallo world'

Note: When the template referred to #info does not exist, the label is displayed as expected.

Previously we used SMW 2.4.2 where this construct of #info referring to a template works as you would expect. Problem seems to be browser independent.

Event Timeline

Does this also happen if you put such a call in a regular page, or only in forms?

Good question!

I created another test, looks like this happens when it is inside a table. See attached screenshot.

Screen Shot 2017-04-03 at 23.18.22 .jpg (300×341 px, 32 KB)

I now see that parser function #info is part of SMW. Should I open an issue there?

Great - I'm closing this one, then.