https://bugzilla.wikimedia.org/show_bug.cgi?id=49410

       Web browser: ---
            Bug ID: 49410
           Summary: Semantic Forms using holds template/embed in field
                    inside of another form breaks template output
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: SemanticForms
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

I'm using a multiple form inside of another form and the UI works well, but the
template it produces is broken. The form is like this (sorry for no link, the
wiki this is on isn't publicly available):

{{{for template|Foo}}}
A: {{{field|A}}}<br/>
B: {{{field|B}}}<br/>
SpecialStuff: {{{field|Special stuff|holds template}}}<br/>
{{{for template|Specials|multiple|embed in field=Foo[SpecialStuff]}}}
X: {{{field|X}}}<br/>
Y: {{{field|Y}}}<br/>
{{{end template}}}
C: {{{field|C}}}<br/>
D: {{{field|D}}}<br/>
{{{end template}}}

This works fine and is awesome in the form UI. However, the template that it
writes is problematic because the "inner template" closes out the outer one.
You get something like.

{{{Foo
|A=A
|B=B
|SpecialStuff={{Specials
|X=1
|Y=2}}{{Specials
|X=5
|Y=6}}
}}

|C=C
|D=D
}}

Obviously the last half is orphaned.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to