Difference between revisions of "Template:Links 1"
From FollowTheScore
m |
(expand doc) |
||
| Line 10: | Line 10: | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
| − | Template code | + | ==Template code== |
<pre> | <pre> | ||
{{#if:{{{3|}}}| | {{#if:{{{3|}}}| | ||
| Line 19: | Line 19: | ||
|{{#ifeq:{{{1}}}|from|linksfrom={{{2}}}|linksto={{{2}}}}} | |{{#ifeq:{{{1}}}|from|linksfrom={{{2}}}|linksto={{{2}}}}} | ||
|format=,**[[%PAGE%|%TITLE%]],\n, | |format=,**[[%PAGE%|%TITLE%]],\n, | ||
| − | }}</pre> | + | }} |
| + | </pre> | ||
| + | |||
| + | |||
| + | == 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 | ||
| + | <pre width=100%> | ||
| + | {{#tree:{{Links 1|from|Wgraph}}}} | ||
| + | </pre> | ||
| + | {{#tree:{{Links 1|from|Wgraph}}}} | ||
| + | ;To | ||
| + | <pre width=100%> | ||
| + | {{#tree:{{Links 1|to|Wgraph}}}} | ||
| + | </pre> | ||
| + | {{#tree:{{Links 1|to|Wgraph}}}} | ||
| + | ;<nowiki>Alias</nowiki> | ||
| + | <pre width=100%> | ||
| + | {{#tree:{{Links 1|to|Wgraph|Foo}}}} | ||
| + | </pre> | ||
| + | {{#tree:{{Links 1|to|Wgraph|Foo}}}} | ||
| + | |||
</noinclude> | </noinclude> | ||
Revision as of 17:26, 17 October 2007
Template code
{{#if:{{{3|}}}|
* [[{{{2}}}{{!}}{{{3}}}]]|
* [[{{{2}}}]]}}
{{#dpl:
|debug=1
|{{#ifeq:{{{1}}}|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:
}}