Page MenuHomePhabricator

Do not use {title} of outer template when replacing {linkstring} with archive template
Closed, ResolvedPublic

Description

On dewiki, it is often intentional that the link text is not the title of the linked document. With the update to v2.0beta10, in cases like this

{{Literatur|Titel=Some Title|...|Online=[https://somelink online (PDF)]}}

where the template description is

{{Literatur|Titel={title}|...|Online={linkstring}}}

IABot replaces the link text with the {title} attribute:

{{Literatur|Titel=Some Title|...|Online={{Webarchiv|text=Some Title|...}}}}

Examples:

IABot should not do that unless specifically asked to do so. Instead, the {linkstring} should be handled like a blank wikilink:

{{Literatur|Titel=Some Title|...|Online={{Webarchiv|text=online (PDF)|...}}}}

Event Timeline

It seems as if this only happens within {{Literatur}}, not in other cases.

Cirdan renamed this task from IABot should not replace link text unless specifically configured to do so to Do not use {title} of outer template when replacing {linkstring} with archive template.Dec 5 2018, 5:17 PM
Cirdan updated the task description. (Show Details)

I figured out the underlying mechanism and updated the description accordingly.