Thanks Tobias!
That was it. I merged the single instance onto the main one and only used
the embed in field for the multi instance one. Thanks.
On Tue, Dec 8, 2015 at 12:35 AM, Tobias Oetterer <oetterer(a)uni-paderborn.de>
wrote:
Hey Ed
I think I had a similar problem. Try putting in a "multiple" in your
template call "{{{for template|B|embed in field=A[bbb]}}}", that should
work. You can use minimum instances=1 and maximum instances=1 to make sure,
it only generates one instance.
Manual says: "holds template - Specifies that this field is meant to hold
a multiple-instance template,[..]"
Regards,
Tobias
--
If this email is rather brief, it is not meant to be impolite but to
respect your time.
http://five.sentenc.es
No trees were killed to send this message, but a large number of electrons
were terribly inconvenienced
University of Paderborn
Zentrum IMT
Warburger Straße 100
33098 Paderborn
Office: N5.341
Phone: 05251/60-2194
Internet:
http://imt.uni-paderborn.de
-----Ursprüngliche Nachricht-----
Von: MediaWiki-l [mailto:mediawiki-l-bounces@lists.wikimedia.org] Im
Auftrag von Ed
Gesendet: Dienstag, 8. Dezember 2015 04:43
An: MediaWiki announcements and site admin list
Betreff: [MediaWiki-l] [SemanticForms] Form Rendering Order for Embedded
Templates
Hi everyone,
I have a form that uses 3 templates A, B, and C. Template A is a wrapper
that brings B (single instance) and C (multi instance) together. No matter
what I do C(m) always show at the top and B at the bottom. Is there a way
that I can have B at the top and C(m) at the bottom?
BTW, the template presentation is fine and the template calls on the page
are fine. The issue is with the input form.
This is how the form is defined:
<includeonly>
{{{for template|A}}}
{{{field|bbb|holds template}}}
{{{field|ccc|holds template}}}
{{{end template}}}
{{{for template|B|embed in field=A[bbb]}}}
{| class="formtable"
! B1:
| {{{field|b1}}}
|-
! B2:
| {{{field|b2}}}
|}
{{{end template}}}
{{{for template|C|multiple|embed in field=A[ccc]}}}
{| class="formtable"
|{{{field|c1}}}
|{{{field|c2}}}
|}
{{{end template}}}
</includeonly>
This is how the input form is rendered:
input fields for C[1]
input fields for C[2]
input fields for C[3]
input fields for B
This is how I would like it to be rendered:
input fields for B
input fields for C[1]
input fields for C[2]
input fields for C[3]
Is that possible?
Thanks!
-Ed
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l