Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6666419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:49:35+00:00 2026-05-26T02:49:35+00:00

Many, many times, I have wanted to create a template that takes a list

  • 0

Many, many times, I have wanted to create a template that takes a list of values, and displays them in a table, each on their own line. I’ve tried hiding the comma in a span, but that breaks the table.

<span style="display:none;">{{#arraymap: {{{programmers|}}}|,|x|</span><!--
-->{{!}} Programmer: {{!!}} x
{{!-}}<span style="display:none;">}}</span>

Is there a method of hiding the delimiter and still getting a table, or perhaps, is there a separate way to do this altogether?

If you want a full simplified testcase, I have the following input:

{{authors|programmers=Ryan Scheel, Ryan Dean}}

and I want the following output:

{| class="wikitable"
|-
! colspan="2" style="text-align:center;" ! Authors
|-
| Programmer: || Ryan Scheel
|-
| Programmer: || Ryan Dean
|}

or in template form:

{{{!}} class="wikitable"
{{!-}}
! colspan="2" style="text-align:center;" ! Authors
{{!-}}
{{!}} Programmer: {{!!}} Ryan Scheel
{{!-}}
{{!}} Programmer: {{!!}} Ryan Dean
{{!}}}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:49:36+00:00Added an answer on May 26, 2026 at 2:49 am

    I solved your problem by passing an empty 5th argument to the function[1]. This argument defines what to replace the delimiter with.

    {{#arraymap: Ryan Scheel, Ryan Dean|,|x|<nowiki />
    {{!-}}
    {{!}} Programmer: {{!!}} x
    |<!-- empty 5th parameter -->}}
    

    expanded result will be as following:

    {|
    <nowiki />
    |-
    | Programmer: || Ryan Scheel<nowiki />
    |-
    | Programmer: || Ryan Dean
    |}
    

    I slightly modified your example for my own convenience during my tests, feel free to adjust it to your taste. I put the |- (HTML <tr>) before the | (HTML <td>) because it is more logical.

    More important, as you may already know, arguments of parser functions are trimed[2]. The problem is that wiki tables markup ({|, |-, etc.) should be at the beginning of the lines of the source, otherwise it is not interpreted[3]. So, in order to insert a linebreak, in this example before the |-‘s, I used the pretty <nowiki /> trick 😉

    As a side note, your line ! colspan="2" (...) ! Authors has a mistake, the ! before “Authors” has to be a | instead.

    [1] documentation at http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Semantic_Forms_and_templates

    [2] contrary to unnamed parameters of templates!

    [3] The only exception, as far as I know, is that you can put spaces and HTML comments before.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an imagemap and wanted to keep track of how many times it
I have heard it many times that garbage collection in PyS60 is not up
I have read so many times, here and everywhere on the net, that mutexes
I seem to have faced this problem many times and I wanted to ask
I just need little help, that is: many times i have seen http://www.xyz.com/index.jsp?etetet%rr^_frfwrw.... .
I have read it many times, I just wanted to clarify. HashMap is said
How many times have you seen someone trying to Log the command I run
I have searched through many times but have not seen this before. Probably really
This problem has bugged me so many times and i have now decided to
I have used NSSets many times in my apps, but I have never created

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.