Difference between revisions of "Listing Redirects and Location"
From FollowTheScore
(9 intermediate revisions by 2 users 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 | + | |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 6: | Line 6: | ||
<dpl> | <dpl> | ||
category = Test acronym redirects | category = Test acronym redirects | ||
+ | redirects = only | ||
</dpl> | </dpl> | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 11: | Line 12: | ||
<dpl> | <dpl> | ||
category = Test acronym redirects | category = Test acronym redirects | ||
+ | redirects = only | ||
+ | include = | ||
</dpl> | </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 [[Template:Listing Redirects and Location Sub|sub-template]] accepts open references: | ||
+ | |||
+ | {{#dpl: | ||
+ | |category = Test acronym redirects | ||
+ | |redirects = only | ||
+ | |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