View Single Post
Old 05-15-2022, 01:32 PM   #863
ackomb
Zealot
ackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura about
 
Posts: 106
Karma: 4486
Join Date: Mar 2020
Location: Netherlands
Device: i-pad
Hi, I've been using action chains for a while now and I have a question, I've been searching online all day, been looking at the template functions, but I can't figure out how they work without an example that make sense.
I just can't find the answer to this question.

We all know AO3 is a mess when it comes to tags. So I've created a separate column for them (#ao3tags). Some of them I actually want to use within my column (#genre) others I just want to leave as be.

How to I move a number of specific tags from one column to the other with leaving the rest untouched?

For example you have the tags
Code:
car, tram, train, bike, bus, boat, ferry, cat, dog,
and then I want
Code:
^tram$|^train$|^bus$|^ferry$
to be moved from the column
Code:
#ao3tags
to the column
Code:
#genre
While leaving the rest in the tags column.

Obviously you won't see these tags in a fanfic, but it illustrates the purpose.

I've tried using the search and replace, but the problem is that it not only amends and moves the tags I want, but also the ones I don't want in my 2nd column.

Can this be done using template functions, and if so can you code different replacements within the same template?
ackomb is offline   Reply With Quote