Page MenuHomePhabricator

Plain wikitext gets ignored with "display=table"
Closed, DeclinedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):
if you adding plain wikitext (not {{field}} tag) - Multiple-instance templates ({{{for template|Occupation|multiple.) just ignoring it entirely.

For example

{{{for template
|section1
|add button text=add more
|embed in field=fox
|display=table 
|multiple

}}}
* this is very important field
* please add it every time
{{field|field_first|label=First field|input type=text }}}
{{end template}}}

What happens?:
The dotted text (bullets in wikitext) never printed

What should have happened instead?:

The dotted text (bullets in wikitext) should be printed in each instance
That's would let us add less limited message then the label of field

Event Timeline

Change 771999 had a related patch set uploaded (by Anysite; author: Anysite):

[mediawiki/extensions/PageForms@master] Multiple-instance templates: add wikitext

https://gerrit.wikimedia.org/r/771999

You have some missing curly brackets in that example text, but I assume that's just a problem in the example. The real issue, I think, is "display=table", which does indeed ignore everything outside of the {{{field}}} tags (as does "display=spreadsheet"). If you really want a customized display, why not just get rid of "display=table"?

Because table let me nice and tidy look out of the box,

Yaron_Koren renamed this task from Multiple-instance templates: plain wikitext get ignored to Plain wikitext gets ignored with "display=table".Mar 21 2022, 1:52 AM

Well, sure, but that convenience comes at a cost, as you can see. Anyway, I renamed this bug report, for clarity.

I'm marking this as "Declined" - I don't think it makes sense to handle free-form wikitext within "display=".