Difference between revisions of "Template:Links 1"
From FollowTheScore
Line 6: | Line 6: | ||
|debug=1 | |debug=1 | ||
|{{#ifeq:{{{1}}}|to|linksto={{{2}}}|linksfrom={{{2}}}}} | |{{#ifeq:{{{1}}}|to|linksto={{{2}}}|linksfrom={{{2}}}}} | ||
− | |||
|format=,**[[%PAGE%|%TITLE%]],\n, | |format=,**[[%PAGE%|%TITLE%]],\n, | ||
}} | }} | ||
Line 19: | Line 18: | ||
|debug=1 | |debug=1 | ||
|{{#ifeq:{{{1}}}|to|linksto={{{2}}}|linksfrom={{{2}}}}} | |{{#ifeq:{{{1}}}|to|linksto={{{2}}}|linksfrom={{{2}}}}} | ||
− | |||
|format=,**[[%PAGE%|%TITLE%]],\n, | |format=,**[[%PAGE%|%TITLE%]],\n, | ||
}} | }} |
Revision as of 05:32, 25 June 2009
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:
}}