Difference between revisions of "Listing Redirects and Location"

From FollowTheScore
Jump to: navigation, search
(New page: {{Type:Test |parameter = Get redirects and where they redirect to. The ideal result would be everything from 'test acroynm redirects' and where each page links to (better example to follo...)
 
 
(11 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 acroynm 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).
 
}}
 
}}
  
 
<pre><nowiki>
 
<pre><nowiki>
 
<dpl>
 
<dpl>
   category = test acroynm redirects
+
   category = Test acronym redirects
 +
  redirects = only
 
</dpl>
 
</dpl>
 
</nowiki></pre>
 
</nowiki></pre>
  
 
<dpl>
 
<dpl>
   category = test acroynm 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:


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: