Difference between revisions of "Template:Links 2"

From FollowTheScore
Jump to: navigation, search
m (Examples)
(Examples: rm Links 1 examples)
Line 34: Line 34:
 
<pre>
 
<pre>
 
;From
 
;From
{{#tree:{{Links 1|from|Wgraph}}}}
 
 
{{#tree:{{Links 2|from|Wgraph}}}}
 
{{#tree:{{Links 2|from|Wgraph}}}}
  
 
;To
 
;To
{{#tree:{{Links 1|to|Wgraph}}}}
 
 
{{#tree:{{Links 2|to|Wgraph}}}}
 
{{#tree:{{Links 2|to|Wgraph}}}}
  
 
;<nowiki>Alias</nowiki>
 
;<nowiki>Alias</nowiki>
{{#tree:{{Links 1|to|Wgraph|Foo}}}}
 
 
{{#tree:{{Links 2|to|Wgraph|Foo}}}}
 
{{#tree:{{Links 2|to|Wgraph|Foo}}}}
 
</pre>
 
</pre>
 
;From
 
;From
{{#tree:{{Links 1|from|Wgraph}}}}
 
 
{{#tree:{{Links 2|from|Wgraph}}}}
 
{{#tree:{{Links 2|from|Wgraph}}}}
  
 
;To
 
;To
{{#tree:{{Links 1|to|Wgraph}}}}
 
 
{{#tree:{{Links 2|to|Wgraph}}}}
 
{{#tree:{{Links 2|to|Wgraph}}}}
  
 
;<nowiki>Alias</nowiki>
 
;<nowiki>Alias</nowiki>
{{#tree:{{Links 1|to|Wgraph|Foo}}}}
 
 
{{#tree:{{Links 2|to|Wgraph|Foo}}}}
 
{{#tree:{{Links 2|to|Wgraph|Foo}}}}
 
</noinclude>
 
</noinclude>

Revision as of 18:18, 17 October 2007


Template code

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


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 2|from|Wgraph}}}}

;To
{{#tree:{{Links 2|to|Wgraph}}}}

;Alias
{{#tree:{{Links 2|to|Wgraph|Foo}}}}
From

{{#tree:


}}

To

{{#tree:


}}

Alias

{{#tree:


}}