Template:Links 1

From FollowTheScore
Revision as of 19:58, 17 October 2007 by Zven (talk | contribs) (Add {{#switch: {{{1|from}}}| from=from |to=to | from}} for {{{1}}} = from/to)
Jump to: navigation, search


Template code

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


}}