Difference between revisions of "Template:Links 2"

From FollowTheScore
Jump to: navigation, search
Line 6: Line 6:
 
  |debug=1
 
  |debug=1
 
  |{{#ifeq:{{{1}}}|to|linksto={{{2}}}|linksfrom={{{2}}}}}
 
  |{{#ifeq:{{{1}}}|to|linksto={{{2}}}|linksfrom={{{2}}}}}
 +
|ordermethod=title
 
  |format=,**[[%PAGE%|%TITLE%]],\n²{Links 2.1¦{{{1}}}¦%PAGE%¦%TITLE%}²,
 
  |format=,**[[%PAGE%|%TITLE%]],\n²{Links 2.1¦{{{1}}}¦%PAGE%¦%TITLE%}²,
 
}}
 
}}
Line 18: Line 19:
 
  |debug=1
 
  |debug=1
 
  |{{#ifeq:{{{1}}}|to|linksto={{{2}}}|linksfrom={{{2}}}}}
 
  |{{#ifeq:{{{1}}}|to|linksto={{{2}}}|linksfrom={{{2}}}}}
 +
|ordermethod=title
 
  |format=,**[[%PAGE%|%TITLE%]],\n²{Links 2.1¦{{{1}}}¦%PAGE%¦%TITLE%}²,
 
  |format=,**[[%PAGE%|%TITLE%]],\n²{Links 2.1¦{{{1}}}¦%PAGE%¦%TITLE%}²,
 
}}
 
}}

Revision as of 22:38, 24 June 2009


Template code

{{#if:{{{3|}}}|
* [[{{{2}}}{{!}}{{{3}}}]]|
* [[{{{2}}}]]}}
{{#dpl:
 |debug=1
 |{{#ifeq:{{{1}}}|to|linksto={{{2}}}|linksfrom={{{2}}}}}
 |ordermethod=title
 |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}}}}

{{#tree:


}}

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

{{#tree:


}}

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

{{#tree:


}}