Difference between revisions of "Template:Links 2"
From FollowTheScore
(<includeonly>) |
|||
(11 intermediate revisions by 3 users not shown) | |||
Line 5: | Line 5: | ||
{{#dpl: | {{#dpl: | ||
|debug=1 | |debug=1 | ||
− | |{{#ifeq:{{{1}}}| | + | |{{#ifeq:{{{1}}}|to|linksto={{{2}}}|linksfrom={{{2}}}}} |
|format=,**[[%PAGE%|%TITLE%]],\n²{Links 2.1¦{{{1}}}¦%PAGE%¦%TITLE%}², | |format=,**[[%PAGE%|%TITLE%]],\n²{Links 2.1¦{{{1}}}¦%PAGE%¦%TITLE%}², | ||
}} | }} | ||
− | <includeonly> | + | </includeonly> |
<noinclude> | <noinclude> | ||
− | Template code | + | ==Template code== |
<pre> | <pre> | ||
{{#if:{{{3|}}}| | {{#if:{{{3|}}}| | ||
Line 17: | Line 17: | ||
{{#dpl: | {{#dpl: | ||
|debug=1 | |debug=1 | ||
− | |{{#ifeq:{{{1}}}| | + | |{{#ifeq:{{{1}}}|to|linksto={{{2}}}|linksfrom={{{2}}}}} |
|format=,**[[%PAGE%|%TITLE%]],\n²{Links 2.1¦{{{1}}}¦%PAGE%¦%TITLE%}², | |format=,**[[%PAGE%|%TITLE%]],\n²{Links 2.1¦{{{1}}}¦%PAGE%¦%TITLE%}², | ||
}} | }} | ||
</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 2|from|Wgraph}}}} | ||
+ | </pre> | ||
+ | {{#tree:{{Links 2|from|Wgraph}}}} | ||
+ | ;To | ||
+ | <pre width=100%> | ||
+ | {{#tree:{{Links 2|to|Wgraph}}}} | ||
+ | </pre> | ||
+ | {{#tree:{{Links 2|to|Wgraph}}}} | ||
+ | ;<nowiki>Alias</nowiki> | ||
+ | <pre width=100%> | ||
+ | {{#tree:{{Links 2|to|Wgraph|Foo}}}} | ||
+ | </pre> | ||
+ | {{#tree:{{Links 2|to|Wgraph|Foo}}}} | ||
+ | |||
</noinclude> | </noinclude> |
Latest revision as of 05:46, 25 June 2009
Template code
{{#if:{{{3|}}}| * [[{{{2}}}{{!}}{{{3}}}]]| * [[{{{2}}}]]}} {{#dpl: |debug=1 |{{#ifeq:{{{1}}}|to|linksto={{{2}}}|linksfrom={{{2}}}}} |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:
- Wgraph
}}
- To
{{#tree:{{Links 2|to|Wgraph}}}}
{{#tree:
- Wgraph
- Aa
- Add "minimum-number-of-revisions" like Criteria for page selection
- Links 1
- Main Page
- Add "minimum-number-of-revisions" like Criteria for page selection
- Extension DPL
- Included Template Name Matching
- Links 1
- Manual
- Modifiedby can return crap result
- Requests for new features
- Specific enhancements for 'table from template' DPL
- StringFunctions extension
- StripMarkup extension
- Subfader
- Test linksfrom 2
- TourBusStop
- Treeview extension
- NavTree
- Old Homepage
- Schwallex
- TourBusStop
- Treeview extension
}}
- Alias
{{#tree:{{Links 2|to|Wgraph|Foo}}}}
{{#tree:
- Foo
- Aa
- Add "minimum-number-of-revisions" like Criteria for page selection
- Links 1
- Main Page
- Add "minimum-number-of-revisions" like Criteria for page selection
- Extension DPL
- Included Template Name Matching
- Links 1
- Manual
- Modifiedby can return crap result
- Requests for new features
- Specific enhancements for 'table from template' DPL
- StringFunctions extension
- StripMarkup extension
- Subfader
- Test linksfrom 2
- TourBusStop
- Treeview extension
- NavTree
- Old Homepage
- Schwallex
- TourBusStop
- Treeview extension
}}