Quantcast

Per property separators?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Per property separators?

Niklas Laxström
Hi Markus,
Let's say I have query like:

{{#ask:[[Liittyvä nimitys::{{FULLPAGENAME}}]] [[Kieli::!suomi]]
|intro=<h2>Käännösvastineet</h2>
|mainlabel=-
|?Nimitys =
|?Kieli =
|?Käännösvastaavuus =
|sort=Kieli
|format=ul
}}

Which gives output like:

* blómhlífarblað (islanti)
* blomsterblad (norja)
* hylleblad (ruotsi osittainen käännösvastaavuus: viittaa laajempaan
käsitteesen)

But I'd like to have the output as:

* blómhlífarblað (islanti)
* blomsterblad (norja)
* hylleblad (ruotsi; osittainen käännösvastaavuus: viittaa laajempaan
käsitteesen)

But I'd like to have it like this:
NimitysValue (KieliValue)
NimitysValue (KieliValue; KäännösvastaavuusValue)

So to have ; as separator if there is multiple properties in the
parenthesis. In IRC I found out that there is something called per
property separators, but I could not accomplish above with
documentation or help from the channel, and they told that you would
know how to do this if it is supported.

  -Niklas

--
Niklas Laxström

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Per property separators?

badon
I think you need to have this bug fixed for that to work:

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

I haven't used that format in a long time because of that problem, so maybe there's another way to do it that I don't know about.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Per property separators?

Stephan Gambke-2
In reply to this post by Niklas Laxström
> So to have ; as separator if there is multiple properties in the
> parenthesis. In IRC I found out that there is something called per
> property separators, but I could not accomplish above with
> documentation or help from the channel, and they told that you would
> know how to do this if it is supported.

Hi Niklas,

just activated the "sep" parameter for formats ul and ol. Try the dev
version of SRF please.

Cheers,
Stephan

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Per property separators?

Niklas Laxström
On 22 February 2012 01:10, Stephan Gambke <[hidden email]> wrote:

>> So to have ; as separator if there is multiple properties in the
>> parenthesis. In IRC I found out that there is something called per
>> property separators, but I could not accomplish above with
>> documentation or help from the channel, and they told that you would
>> know how to do this if it is supported.
>
> Hi Niklas,
>
> just activated the "sep" parameter for formats ul and ol. Try the dev
> version of SRF please.


Thanks, but it looks like Foxtrott made sep= work for all lists in SMW
in the mean time, so I don't need to install a new extension to do
that.
  -Niklas


--
Niklas Laxström

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Per property separators?

Stephan Gambke-2
That's me.  :)
Just mixed up SMW and SRF.

Cheers,
Stephan


On 23 February 2012 16:44, Niklas Laxström <[hidden email]> wrote:

> On 22 February 2012 01:10, Stephan Gambke <[hidden email]> wrote:
>>> So to have ; as separator if there is multiple properties in the
>>> parenthesis. In IRC I found out that there is something called per
>>> property separators, but I could not accomplish above with
>>> documentation or help from the channel, and they told that you would
>>> know how to do this if it is supported.
>>
>> Hi Niklas,
>>
>> just activated the "sep" parameter for formats ul and ol. Try the dev
>> version of SRF please.
>
>
> Thanks, but it looks like Foxtrott made sep= work for all lists in SMW
> in the mean time, so I don't need to install a new extension to do
> that.
>  -Niklas
>
>
> --
> Niklas Laxström

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Loading...