Difference between revisions of "Listing Redirects and Location"
From FollowTheScore
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{Type | + | {{Type Test |
|parameter = 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). | |parameter = 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). | ||
}} | }} | ||
Line 26: | Line 26: | ||
---- | ---- | ||
− | With two nested DPL statements (see the source of this article) you can achieve this: | + | With two nested DPL statements (see the source of this article) you can achieve this. Note that the linksfrom statement in the [[Template:Listing Redirects and Location Sub|sub-template]] accepts open references: |
{{#dpl: | {{#dpl: | ||
|category = Test acronym redirects | |category = Test acronym redirects | ||
|redirects = only | |redirects = only | ||
− | |format = ,\n*[[%PAGE%|%TITLE]] redirects to ²{Listing Redirects | + | |format = ,\n*[[%PAGE%|%TITLE%]] redirects to ²{Listing Redirects and Location Sub¦%PAGE%}² |
}} | }} |
Latest revision as of 12:51, 28 January 2008
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