Thank you Pierre,
I see the "Edition du livre" SIO instances marked with # char!
Your site is a really good reference for my current database prototyping. I'm trying to convince my team using swm instead of a traditional development with SQL and java. My main task is to implement something that expose the schema and his integrity quality. I don't know what is the way for SMW to keep the "schema integrity" even after some refactoring (and this is a major issue)? I'm trying to "invent" a solution by adding meta properties and categories, even if, and I'm pretty sure, that natives query for maintain already exists.
Sorry for my bad english!
Cheers,
Olivier
On Nov 28, 2011, at 2:20 PM, Pierre Réveillon wrote:
> Hello,
>
> The list of editors is specified by the template "Édition" ({{{for template|Édition...).
> So, in a Book, page, it will generate different template calls, for example in http://www.delibris.fr/wiki/index.php?title=Fortune_de_France_3_-_Paris,_ma_bonne_ville&action=edit:
>
> {{Édition
> |Édition originale=Oui
> |Édition affichée par défaut=Oui
> |Éditeur=Plon
> |Année de parution=1980
> |ISBN=9782259006873
> |Est un extrait=Non
> }}
> {{Édition
> |Édition originale=Non
> |Édition affichée par défaut=Non
> |Est un extrait=Non
> }}
>
> The "Édition" template (http://www.delibris.fr/wiki/index.php?title=Mod%C3%A8le:%C3%89dition&action=edit) sets the properties, using {{#set_internal:}} (provided by the Semantic Internal Objects extension, see http://www.mediawiki.org/wiki/Extension:Semantic_Internal_Objects)
> I'm actually working on this template, because SIO seems to bug when you store AND query properties in the same page, so I'll modify this template to make it return someting that I can reuse on the page.
>
> But this was working before the last Semantic Forms update, the multiple template instances were just appended to the page.
> The last update adds the possibility to embed the multiple instances INSIDE the template generated by the form.
> If you see the page http://www.delibris.fr/wiki/index.php?title=Fortune_de_France_3_-_Paris,_ma_bonne_ville&action=edit, the {{Édition}} calls are inside the {{Page_Livre}}, this allow me to use the editors (when the {{Édition}} template will return something) in the page, without querying it.
>
>
> Hope that helps, don't hesitate if you have more questions!
>
> Cheers,
>
> --
> Pierre
>
>
> On 28/11/2011 12:45, Olivier Evalet wrote:
>> Hello Pierre,
>>
>> Can I ask you something about your usage of properties. Looking the code from the Formulaire:Livre, I saw that you can specify a list of Editor with each time a set of properties (Editeur, Collection, ISBN, ...).
>> {{{for template|Édition|label=Édition(s)|multiple|embed in field=Page Livre[Éditions]}}}
>>
>> My question is how this is working, why the "Editor" content doesn't appears on the Livre (properties)? What is the mechanism here. Sorry for the newbies question.
>>
>> Olivier
>>
>>
>>
>> On Nov 21, 2011, at 5:35 PM, Pierre Réveillon wrote:
>>
>>> Hello Van,
>>>
>>> It's not an official example at all, but I'm actually testing it on my
>>> website.
>>> You can see it "working" here:
>>> The form source code:
>>> http://www.delibris.fr/wiki/index.php?title=Formulaire:Livre&action=edit
>>> The form in action:
>>> http://www.delibris.fr/wiki/index.php?title=AaaTest&action=formedit
>>> The generated code:
>>> http://www.delibris.fr/wiki/index.php?title=AaaTest&action=edit
>>> The "subtemplate":
>>> http://www.delibris.fr/wiki/index.php?title=Mod%C3%A8le:%C3%89dition&action=edit
>>>
>>> It's just a raw test, for now I don't use/show the values. I'll put the
>>> different sets of values in an infobox, but I'm not sure what would be
>>> the cleaner way: make the "Édition" template to show an infobox, or in
>>> the "Page_Livre" template, make a #ask to get Éditions sets, and call
>>> the infobox here...
>>>
>>> Regards,
>>>
>>> --
>>> Pierre
>>>
>>> On 19/11/2011 19:18, Van de Bugger wrote:
>>>>> - You can now nest calls to a multiple-instance template within a call
>>>>> to another template.
>>>> Great news! Any example how to use it?
>>>>
>>>> Thanks,
>>>> Van.
>>>>
>>>> On Fri, 2011-11-18 at 13:17 -0500, Yaron Koren wrote:
>>>>> Hi everyone,
>>>>>
>>>>> Version 2.3 of Semantic Forms has been released. This is a major version,
>>>>> with a lot of cool new features, most of them contributed by people other
>>>>> than me - which is very good news for the software, and also most likely
>>>>> means better code. :) Changes and additions in this version include:
>>>>>
>>>>> - You can now nest calls to a multiple-instance template within a call to
>>>>> another template. This is something that people have asked about for a
>>>>> while. It helps to solve two problems: the awkwardness of putting headers
>>>>> above multiple-instance templates, and excess newlines when displaying
>>>>> multiple-instance templates.
>>>>>
>>>>> As an example, let's say that you have a "Person" page type, that holds
>>>>> information about people - including places they've lived and companies
>>>>> they've worked at. Until now, the page source had to look something like:
>>>>>
>>>>> {{Person
>>>>> ...
>>>>> }}
>>>>> {{Place lived
>>>>> ...
>>>>> }}
>>>>> {{Place lived
>>>>> ...
>>>>> }}
>>>>> {{Company worked at
>>>>> ...
>>>>> }}
>>>>> {{Company worked at
>>>>> ...
>>>>> }}
>>>>>
>>>>> But what if you wanted a header that said "Companies" above the list of
>>>>> companies? Then you would have to create a template called "Companies
>>>>> header" or something, that just contained the header, and have the form
>>>>> stick it there in the middle. But now you can instead have the form save to
>>>>> a page that looks like:
>>>>>
>>>>> {{Person
>>>>> ...
>>>>> |Places lived={{Place lived|...}}{{Place lived|...}}{{Place lived|...}}
>>>>> |Companies worked at={{Company worked at|...}}{{Company worked at|...}}
>>>>> ...
>>>>> }}
>>>>>
>>>>> The "Person" template can seamlessly take care of the entire display - and
>>>>> the lack of newlines between instance of the template should make it easier
>>>>> to avoid having too much whitespace in the output.
>>>>>
>>>>> You can accomplish this using the new "embed in field" and "holds template"
>>>>> parameters for the form definition - in this case, you would add "embed in
>>>>> field=Person[Places lived]" to the "for template" tag for "Place lived",
>>>>> and add "holds template" to the "Places lived" field tag; and do basically
>>>>> the same thing for the company template and field.
>>>>>
>>>>> Thanks to LY Meng for the patch that enabled this cool new feature.
>>>>>
>>>>> - You can now add the WikiEditor toolbar to any textarea in the form, if
>>>>> you have the WikiEditor extension installed (
>>>>> http://www.mediawiki.org/wiki/Extension:WikiEditor). To add it, just add
>>>>> the parameter "|editor=wikieditor" to the "field" tag. (And, again, make
>>>>> sure you have WikiEditor installed). Thanks to Stephan Gambke for this new
>>>>> feature.
>>>>>
>>>>> - An "image preview" feature was added, so that users can see images that
>>>>> were uploaded, within the form itself. To add it, just add "|imagepreview"
>>>>> to the "field" tag. Thanks to Jeroen De Dauw for this feature.
>>>>>
>>>>> - A "placeholder=" parameter was added to the text and textarea form
>>>>> inputs. Using this parameter, you can set a help value that shows up until
>>>>> the user starts typing in the input. It uses the "placeholder" HTML
>>>>> attribute, which was added in HTML5 - which turns out to be adopted in
>>>>> current browsers quite a bit more than I thought it was. So hopefully this
>>>>> is just the beginning of Semantic Forms making use of new HTML5 features.
>>>>> Thanks to LY Meng for the patch to add this functionality.
>>>>>
>>>>> - The "remote autocompletion" parameter was added to the #forminput parser
>>>>> function. This works the same way as "remote autocompletion" within forms -
>>>>> if it's added, the autocomplete values are queried via an Ajax call, which
>>>>> means that you can autocomplete on a lot more values.
>>>>>
>>>>> - When autocompleting on multiple values within a form field, values after
>>>>> the first one get bolded, when the user is typing - this wasn't happening
>>>>> before, due to a bug.
>>>>>
>>>>> - Handling was fixed for templates whose name contains an apostrophe - this
>>>>> was apparently not working for a while.
>>>>>
>>>>> - The "autogrow" parameter for textarea inputs was fixed - before, it
>>>>> wasn't working unless the number of columns was set in the form definition.
>>>>> Now, if "autogrow" is set, the default width of the textarea is set to 90
>>>>> columns, which lets the Javascript work correctly.
>>>>>
>>>>> - Fields that contain a list of values of type Number, URL or Email (as
>>>>> opposed to just one value) no longer get their contents "validated" when
>>>>> the form is submitted - that was causing problems.
>>>>>
>>>>> - The global variable $sfgCacheFormDefinitions, which lets you cache form
>>>>> definitions so that they don't have to be re-parsed every time, was
>>>>> introduced a while ago (version 1.8.8), but it had a bunch of bugs, and at
>>>>> some point it was disabled. It now fully works and has been re-enabled,
>>>>> thanks to an overhaul of the caching system by Stephan Gambke.
>>>>>
>>>>> - Within Special:RunQuery, you can now set a form to be displayed above the
>>>>> search results, instead of below it - to do that, you can use the new
>>>>> "query form at top" parameter for the {{{info}}} tag, within a specific
>>>>> form.
>>>>>
>>>>> - The display of warning and error messages was changed somewhat, to be
>>>>> more in line with MediaWiki's style guidelines. Thanks in part to DaSch for
>>>>> this improvement.
>>>>>
>>>>> - #formlink has a new optional parameter: "tooltip=", which sets text that
>>>>> you see if you hover over the link. Thanks in part to Van de Bugger for
>>>>> this feature.
>>>>>
>>>>> - #autoedit and the optional "Save and continue" button for forms now set
>>>>> an edit summary when they save a page, for display on the history page.
>>>>> This feature was added by Stephan Gambke.
>>>>>
>>>>> - Much greater support was added for the Page Schemas extension (
>>>>> http://www.mediawiki.org/wiki/Extension:Page_Schemas). At some point soon,
>>>>> Page Schemas is planned to become a recommended part of the Semantic Forms
>>>>> setup.
>>>>>
>>>>> - There were various other bug fixes, to both the PHP and Javascript code,
>>>>> done by Jeroen, Stephan, myself and others, notably including, but not
>>>>> limited to, ialex, reedy and nikerabbit.
>>>>>
>>>>> To read more about Semantic Forms, and download the new version, go here:
>>>>> http://www.mediawiki.org/wiki/Extension:Semantic_Forms
>>>>>
>>>>> -Yaron
>>>>> ------------------------------------------------------------------------------
>>>>> All the data continuously generated in your IT infrastructure
>>>>> contains a definitive record of customers, application performance,
>>>>> security threats, fraudulent activity, and more. Splunk takes this
>>>>> data and makes sense of it. IT sense. And common sense.
>>>>> http://p.sf.net/sfu/splunk-novd2d
>>>>> _______________________________________________
>>>>> Semediawiki-user mailing list
>>>>> Semediawiki-user@...
>>>>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>>>>
>>>> ------------------------------------------------------------------------------
>>>> All the data continuously generated in your IT infrastructure
>>>> contains a definitive record of customers, application performance,
>>>> security threats, fraudulent activity, and more. Splunk takes this
>>>> data and makes sense of it. IT sense. And common sense.
>>>> http://p.sf.net/sfu/splunk-novd2d
>>>> _______________________________________________
>>>> Semediawiki-user mailing list
>>>> Semediawiki-user@...
>>>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>>>
>>> ------------------------------------------------------------------------------
>>> All the data continuously generated in your IT infrastructure
>>> contains a definitive record of customers, application performance,
>>> security threats, fraudulent activity, and more. Splunk takes this
>>> data and makes sense of it. IT sense. And common sense.
>>> http://p.sf.net/sfu/splunk-novd2d
>>> _______________________________________________
>>> Semediawiki-user mailing list
>>> Semediawiki-user@...
>>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>
|