Template suggestion: Member ONS - multiple names

+5 votes
236 views
I have a suggestion: On the Member template, for the ONS project, the name parameter only allows a single name.

Can the template be extended to allow a comma-delimited string for a list of name studies that we are a member of? That way it shows up in a single box, instead of having multiple stickers.
in Policy and Style by Eric Weddington G2G6 Pilot (523k points)
reshown by Eric Weddington

1 Answer

+3 votes
The thing is: the single-name sticker links through to a project redirect, linking it to the Name Study in question. If, say, you ran three ONSs, and had three names on your sticker, how would it know which ONS to link to?
by Ros Haywood G2G Astronaut (2.0m points)
It could work like this:

{{Member|ONS|names=Weddington, Vanover, Longan}}
That's the coding.  But how would you click through to the Weddington ONS, or the Vanover ONS, or the Longan ONS? The sticker probably wouldn't end up being able to link through to anything.

So how it works now is {{Member|ONS|name=Weddington}} displays a box that says, "Eric Weddington is a member of the Weddington Name Study"

Then why can't a comma separated list of names like so: 

{{Member|ONS|names=Weddington, Vanover, Longan}}

be turned into a comma separated list within the box like: "Eric Weddington is a member of the Weddington Name Study, Vanover Name Study, Longan Name Study Projects."

I'm just looking to combine them all in a single box instead of multiple boxes.

Templates are extremely limited in capabilities and looping through multiple values is not possible. Template also pools the image from the name study.

Some solution might be implemented using multiple parameters, but the template is already quite big and its complexity will grow with adding support for other projects.
That makes sense Aleš.

Instead would it be possible for me to do something like the {{Member}} template without having to specify the project, then have some freeform text after it? I could then write out a comma-delimited list with links to each project.
And you just violated my privacy too. My Biography is not public. I asked about possibilities of templates. Not a critique of what I have on my Biography.
Sorry about that. I wanted just to help you. I didn't notice it was private. I will hide the post.

Related questions

+12 votes
1 answer
+3 votes
1 answer
+5 votes
1 answer
195 views asked Feb 19, 2017 in The Tree House by Richard Shelley G2G6 Pilot (248k points)
+9 votes
1 answer
+4 votes
2 answers
194 views asked May 3, 2018 in Policy and Style by Jillaine Smith G2G6 Pilot (918k points)
+6 votes
1 answer
+13 votes
1 answer

WikiTree  ~  About  ~  Help Help  ~  Search Person Search  ~  Surname:

disclaimer - terms - copyright

...