Difference between revisions of "Template:Links 1"

From FollowTheScore
Jump to: navigation, search
Line 1: Line 1:
<includeonly>
+
 
 
{{#if:{{{3|}}}|
 
{{#if:{{{3|}}}|
 
* [[{{{2}}}{{!}}{{{3}}}]]|
 
* [[{{{2}}}{{!}}{{{3}}}]]|
Line 8: Line 8:
 
  |format=,**[[%PAGE%|%TITLE%]],\n,
 
  |format=,**[[%PAGE%|%TITLE%]],\n,
 
}}
 
}}
</includeonly>
+
 
 
<noinclude>
 
<noinclude>
 
==Template code==
 
==Template code==

Revision as of 08:33, 10 August 2010

  • [[{{{2}}}]]

Extension:DynamicPageList (DPL), version 3.2.1: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants


Template code

{{#if:{{{3|}}}|
* [[{{{2}}}{{!}}{{{3}}}]]|
* [[{{{2}}}]]}}
{{#dpl:
 |debug=1
 |{{#ifeq:{{{1}}}|to|linksto={{{2}}}|linksfrom={{{2}}}}}
 |format=,**[[%PAGE%|%TITLE%]],\n,
}}


Parameters

Required
  • {{{1}}}: Links from or to. Valid values: from (default), to
  • {{{2}}}: Article for creating link tree
Optional
  • {{{3}}}: Alias name for article

Examples

From
{{#tree:{{Links 1|from|Wgraph}}}}

{{#tree:


}}

To
{{#tree:{{Links 1|to|Wgraph}}}}

{{#tree:


}}

Alias
{{#tree:{{Links 1|to|Wgraph|Foo}}}}

{{#tree:


}}