Template:Links 1

From No Subject - Encyclopedia of Psychoanalysis
Revision as of 15:31, 12 January 2008 by Riot Hero (talk | contribs) (New page: <includeonly> {{#if:{{{3|}}}| * [[{{{2}}}{{!}}{{{3}}}]]| * [[{{{2}}}]]}} {{#dpl: |debug=1 |{{#ifeq:{{{1}}}|to|linksto={{{2}}}|linksfrom={{{2}}}}} |format=,**%TITLE%,\n, }} </...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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:

{{#dpl:

|debug=1
|linksfrom=Wgraph
|format=,**%TITLE%,\n,

}}

}}

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

{{#tree:

{{#dpl:

|debug=1
|linksto=Wgraph
|format=,**%TITLE%,\n,

}}

}}

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

{{#tree:

{{#dpl:

|debug=1
|linksto=Wgraph
|format=,**%TITLE%,\n,

}}

}}