Listing Redirects and Location
From FollowTheScore
Test | Get redirects and where they redirect to. The ideal result would be everything from 'test acronym redirects' and where each page links to (better example to follow of desired result). |
<dpl> category = Test acronym redirects redirects = only </dpl>
--
Desired output would be:
- ATR1 redirects to A Test Redirect 1
- ATR2 redirects to A Test Redirect 2
- ATR3 redirects to A Test Redirect 3
With two nested DPL statements (see the source of this article) you can achieve this. Note that the linksfrom statement in the sub-template accepts open references:
- ATR1 redirects to A Test Redirect 1
- ATR2 redirects to A Test Redirect 2
- ATR3 redirects to A Test Redirect 3