Topic on Help talk:Extension:FileImporter

Is "subst:" allowed in {{tl|Information}} template configuration?

4
Summary by Johanna Strodt (WMDE)
Jarekt (talkcontribs)

I am trying to properly configure Extension:FileImporter/Data/en.wikipedia after there were requests to rewrite Information template on Commons to make it work with this extension. The issue is that w:en:Template:Information has some rarely used extra parameters as compared to c:Template:Information ("Location" and "Additional_information")and we would like not to loose their content. Traditionally when mapping from one template to another we use substitution, for example c:Template:Artwork/subst(information) can be used to map from c:Template:Information to c:Template:Artwork. I would like to use the same mechanism to handle w:en:Template:Information's "Location" and "Additional_information" so we can add them either to c:Template:Information's "description" field or to a separate field added using "Other fields" parameter. So can I use "Subst:" configuration file?

Johanna Strodt (WMDE) (talkcontribs)

Thanks for testing the feature and for your question, @Jarekt. Using "Subst:" currently isn't possible, but I've created a Phabricator ticket so T214365 we have this request on our radar.

Best,

Johanna

Jarekt (talkcontribs)

Johanna thanks for you reply. Is there another way one can use to map multiple fields in the source template into one?

Johanna Strodt (WMDE) (talkcontribs)

Hi @Jarekt. No, I'm afraid at the moment there's no way to merge multiple source parameters into one. I've updated the task description to make room for other solutions than "subst:". I hope that's alright with you.

Also, I've added your question to the FAQ, as I can imagine it's of interest for others, too.

Best,

Johanna