From: Steiner D. <d.s...@fu...> - 2011-09-02 11:15:16
|
Hi Felix For this you could use the #arraymap: function of Semantic Forms extension. ... || {{#if: {{{6}}} | {{#arraymap:{{{6}}}|,|$$|[[$$]]|}} }} || ... Have a look at http://www.mediawiki.org/wiki/Extension:Semantic_Forms#Multiple_values_for_the_same_field Daniel -----Ursprüngliche Nachricht----- Von: Schöppenthau, Felix [mailto:fel...@io...] Gesendet: Freitag, 2. September 2011 10:02 An: Steiner Dani; sem...@li... Betreff: AW: [Semediawiki-user] Is it possible to create separated links in atable field? Hi Daniel hi community, Thank you for your quick response and for your help. If you apply your solution proposal to the fields 1 and 2 in the Vorlage:Table-template then you are correct. However, I need it for the field 6 in the Vorlage:Table-template. See: {{#if: {{{6}}}|[[{{{6}}}]]|}} Their solution is based on the field 6, partially correct, it creates a second link that will be duplicated. Is it possible to divide the content of field 6 into two different links? (See the following example) E.g. test1, test2 the following link shows the current state, it should not be <a href="/index.php?title=test1,_test2&action=edit&redlink=1" class="new" title="test1, test2">test1, test2</a> It should be <a href="/index.php?title=test1&action=edit&redlink=1" class="new" title="test1">test1</a> <a href="/index.php?title=test2&action=edit&redlink=1" class="new" title="test2">test2</a> Vorlage:Table-Vorlage [[Category::]] <!-field 1--> [[Name::]] <!-field 2--> [[Beschreibung::]] <!-field 3--> [[Zustand::]] <!-field 4--> [[Methodendokument::]] <!-field 5--> [[Literatur::test1, test2]] <!-field 6--> [[Mitglieder::]] <!-field 7--> [[Infos::]] <!-field 8--> [[Sonstiges::]] <!-field 9--> Vorlage:Table-template <includeonly> | [[{{{1}}}|{{{2}}}]] || {{{3}}} || {{{4}}} || {{{5}}} ||{{#if: {{{6}}} | | [[{{{6}}}]] [[{{{6}}}]] |}}|| {{#if: {{{7}}}|[[{{{7}}}]]|}} || {{{8}}} || |{{{9}}} |- </includeonly> Thank you very much for your help! Best regards, Felix -----Ursprüngliche Nachricht----- Von: Steiner Dani [mailto:d.s...@fu...] Gesendet: Donnerstag, 1. September 2011 18:50 An: Schöppenthau, Felix; sem...@li... Betreff: AW: [Semediawiki-user] Is it possible to create separated links in atable field? Hi Felix I think you should change your template to : Vorlage:Table-template <includeonly> | [[{{{1}}}]] [[{{{2}}}]] || {{{3}}} || {{{4}}} || {{{5}}} || {{#if: |{{{6}}}|[[{{{6}}}]]|}} || {{#if: {{{7}}}|[[{{{7}}}]]|}} || {{{8}}} || |{{{9}}} |- </includeonly> Cheers Daniel -----Ursprüngliche Nachricht----- Von: Schöppenthau, Felix [mailto:fel...@io...] Gesendet: Donnerstag, 1. September 2011 14:15 An: sem...@li... Betreff: [Semediawiki-user] Is it possible to create separated links in atable field? Hello, I created a templates page for table. If I enter two different words in a table field, then both words will appear as a single link instead of two independent links. Is it possible to create separated links in a table field? E.g. test1, test2 are shown as a single link like <a href="/index.php?title=test1,_test2&action=edit&redlink=1" class="new" title="test1, test2">test1, test2</a> Instead of <a href="/index.php?title=test1&action=edit&redlink=1" class="new" title="test1">test1</a> <a href="/index.php?title=test2&action=edit&redlink=1" class="new" title="test2">test2</a> Vorlage:Table-template <includeonly> | [[{{{1}}}|{{{2}}}]] || {{{3}}} || {{{4}}} || {{{5}}} || {{#if: |{{{6}}}|[[{{{6}}}]]|}} || {{#if: {{{7}}}|[[{{{7}}}]]|}} || {{{8}}} || |{{{9}}} |- </includeonly> Thank you very much for your help! Best regards, Felix ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ Semediawiki-user mailing list Sem...@li... https://lists.sourceforge.net/lists/listinfo/semediawiki-user |