Difference between revisions of "Listing Redirects and Location"

From FollowTheScore
Jump to: navigation, search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Type:Test
+
{{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 13: Line 13:
 
   category = Test acronym redirects
 
   category = Test acronym redirects
 
   redirects = only
 
   redirects = only
 +
  include =
 
</dpl>
 
</dpl>
  
Line 23: Line 24:
 
* [[ATR2]] redirects to [[A Test Redirect 2]]
 
* [[ATR2]] redirects to [[A Test Redirect 2]]
 
* [[ATR3]] redirects to [[A Test Redirect 3]]
 
* [[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:


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: