From: Dan B. <dan...@gm...> - 2011-04-19 07:59:12
|
On 18 April 2011 20:47, Graham Seaman <gr...@th...> wrote: > So now I need to display properties with multiple values, but I'm having > problems with them. > > I have the template line: > > {{#arraymap:{{{IsRelevantTo|}}}|,|x|[[Resource is relevant to::x]]}} > > where IsRelevantTo is set to a comma separated list in a form. > > The line above displays as (for example): > > Psychology, Geography, Earth Sciences,,, > > > What I would actually like to display is: > > Psychology | Geography | Earth Sciences > > where each of the subject names is a link to the subject page, the > separators are pipe symbols, and there are no trailing commas. I can't > persuade it to do this; can anyone tell me how? You can trade ', 's for ' | 's by using the final field of the arraymap function: http://www.mediawiki.org/wiki/Extension:Semantic_Forms#Multiple_values_for_the_same_field The results should be links if the property is of type Page. > Thanks > Graham > > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > |