Hi there,
I may have found a bug in the DisplayTitle extension. When creating a link to a page in a template that is nested inside another template, it does not utilize the page display title. This behaviour was found in MW 1.31/DP 2.0 & DP 1.5.3 (full stack below) and found not present in MW 1.27.4/DP 1.2 (full stack below).
I've set up a test wiki where the problem is shown:
https://dev3.wikibase.nl/index.php/Main_Page
Screenshot where I highlighted the link that's incorrectly shown:
{F28545901}
# Stack - not working
Installed software
|Product|Version
|----|----
|MediaWiki|1.31.1 (c520c19) 05:30, 26 March 2019
|PHP|7.0.32-0ubuntu0.16.04.1 (apache2handler)
|MySQL|5.7.25-0ubuntu0.16.04.2
Installed extensions
|Extension|Version
|----|----
|DisplayTitle|2.0.0 (0705659) 14:51, 6 February 2019
# Stack - working
Installed software
|Product|Version
|----|----
|MediaWiki|1.27.4
|PHP|7.0.32-0ubuntu0.16.04.1 (apache2handler)
|MySQL|5.7.25-0ubuntu0.16.04.2
Installed extensions
|Extension|Version
|----|----
|DisplayTitle|1.2 (e3db03d) 19 apr 2017 20:55