Extension talk:Page Forms

Make form generate tags in the resulting article
I want a form to generate an article that has tags in the article itself (around the properties table). This is because later on, when i embed/transclude that article in another, i do not want the properties table to show - only the article proper (free text). Maybe i'm missing something very basic here - i'm still quite new to smw. So far, in the form definition, i tried wrapping the tags in  tags - to no avail. Maybe including tags isn't even necessary. Maybe there is another way, how to embed articles without displaying their properties table? Any advice greatly appreciated :) Andi 3ö (talk) 13:25, 3 April 2015 (UTC)


 * See "onlyinclude free text", here. Yaron Koren (talk) 23:07, 5 April 2015 (UTC)


 * Ooops, didn't see that. Thank you so much!! Andi 3ö (talk) 21:22, 7 April 2015 (UTC)

Templates, how to introduce categories instead of properties
Hello,

So actually i have this template: Try template

Edit the page to see the text in template

Which will add the thing i add to Departments and autor to those properties. I want, instead, to add them to categories. How can i do this?

I tried with this:

http://en.wikipedia.org/wiki/Help:Category:

And this

https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Semantic_Forms_and_templates

But i do not manage that when someone fills the field, things get in the correct category. How could i do this?


 * Change it to something like this:

! Departments ! Autor
 * Category:
 * Yaron Koren (talk) 21:00, 7 April 2015 (UTC)

Actually that is not working for me, i tried, but seems the boxes to fill in the form will only show an string instead. Perhaps it can be a problem with versions? Using MW 1.24.1 AND SF 3.2. All the tries i have made have resulted in an string as output, or something which did not do the thing.

Could you post an example which it is known to work please?


 * It's important to clarify that the form and the template are two different things - you asked about the template before, not the form. For the form, I don't know what input you want those fields to be, but the "tree" input type might be helpful. Yaron Koren (talk) 13:50, 8 April 2015 (UTC)

Sorry! I meant the template. I made a mistake there! I mean that is not working in my template. Could i have an example of how to make the template do that please?


 * That was my first response. Yaron Koren (talk) 20:21, 8 April 2015 (UTC)

Still not working, but perhaps it is a formulated the question badly.

Ok, this is the situation, i want a form to use the template, and do what i told.

In the form we will have 2 text box to fill, "Autor" and "Departments".


 * Category:

this for example, will add the page created with the form to "value entered in "Autor field" " category, and in the "Autor" field of the page, it will put "category:"entered value"", but will not do what i am asking for. Hope i got clearer now!


 * What is it that you're asking for? Yaron Koren (talk) 01:16, 9 April 2015 (UTC)

I want to know what do i have to put in my template so that when someone fills a text box in my form (for example, the mentioned "Autor" or "Departments"), which are taken from the template to the form.

I get the syntax of -> This means the page created with the form, will receive

Category:-> This instead, means that in the !Autor box of the created page, we will have (all of it, as an String).

In both ocasions there are 2 individuals working(Indication of category and what user writted). But what i am asking for is the syntax of 3 individuals working.

I need 1º what the User has written "", 2º the indication that value is going to be in a category "[[Category:]]" , 3º which category will it be "Autor".

For example , but this is not the syntax. Which would be?


 * Oh, I made a small mistake in my original example. Try this:

! Departments ! Autor
 * Category:
 * ...or, if you want to keep things simple, this:

! Departments ! Autor
 * Yaron Koren (talk) 01:59, 9 April 2015 (UTC)

Actually this is kind of what i was looking for: ! Autor Category:Autor

It manages to redirect what it is in to the category i want "Autor", although it does not introduce it. This is kind of a redirect. So that i will have a box in which i will click in the introduced value and i will be redirected to "Autor", but not introduce the value itself to the category. Any solution?


 * Did you try what I suggested? Yaron Koren (talk) 12:11, 9 April 2015 (UTC)

Getting CSS codes in dropdown list items when using a mapping template
Hi

I recently update SForms to 3.2 and now get $result tags around dropdown list items. The list items themselves use a mapping template as I'm using semantic title to provide an alternative name for the pages. I've had this working in the past but have just noticed I now get the CSS tags.

I wondered if anyone has encountered this before or got any idea what might cause it?

Many thanks

Duncan