-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm using "input templates" and "output templates" on my Wiki, so that I can
reuse them in multiple forms in different constellations.

Here is a (simplified) example of a page that gets created by Form:Person:

{{Person output}}
{{Person
|GivenName=Patrick
|FamilyName=Nagel
...
}}
{{Person functions
|IsEmployee=Yes
...
}}
Some free text

The "Person functions" template looks like this (in the Wiki it's just one
long line):
<noinclude>This template puts a person page into the appropriate
categories</noinclude><includeonly>{{ #ifeq: {{{IsEmployee|No}}} | Yes |
[[Category:Employees]] }}</includeonly>

Now my problem is, that although those "input templates" (like "Person" and
"Person functions") should not output anything (well, except Category or
Property assignments), they show up as '<p><br /></p>' when the page is 
rendered.

Since I have many more than just the two input templates that you can see in
the simplified example, this leads to a *lot* of whitespace (many <p><br
/><p>, resulting in many blank lines in the rendered page). This is annoying
because I either have whitespace at the top of each page, between the actual
output (done by the "Person output" template) and the free text (as in my
example) or at the end of the page.

I can "trick" MediaWiki into not inserting this whitespace by changing the
Wikitext of my above example Person page to the following:

{{Person output}} {{Person
|WesternGivenName=Patrick
|WesternFamilyName=Nagel
...
}} {{Person functions
|IsEmployee=Yes
...
}}
Some free text

Note: I removed the line breaks between template calls.

It definitely makes the Wikitext much less nice to read, which is a problem.
But even if I decided that I could live with that problem, there would be
another one: Whenever Semantic Forms processes such a page, it will
reintroduce the line breaks, and I haven't found a way to stop it from doing 
that.

Does anybody have an idea what I could do to get rid of that whitespace?

Thanks,
Patrick.

- --
Key ID: 0x86E346D4            http://patrick-nagel.net/key.asc
Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknJcdEACgkQyYHmhobjRtSYOgCgkcI2gqemNoTXCjdABjqmedcC
Q+EAn3GztZTiNhYnSf1ZdkSKB1chaPeO
=7Vmi
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Semantic Forms" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/semantic-forms?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to