Template:Sublinks: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Trying to make recursive. Removed #ifexist)
(Undo revision 106872 by Rk84 (talk))
Line 1: Line 1:
{{#switch: {{{case|start}}}
<h6>{{#ifexist: {{#titleparts: {{{1|{{FULLPAGENAME}}}}}/end | 1 }} | < [[{{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 1 }}]] }}
| start =  {{sublinks|case={{#titleparts:end/{{{1|{{FULLPAGENAME}}}}}| -1 }}}} [[{{{1|{{FULLPAGENAME}}}}} | {{#titleparts: {{{1|{{FULLPAGENAME}}}}} | | -1 }}]] </h6>
{{#ifexist: {{#titleparts: {{{1|{{FULLPAGENAME}}}}}/end | 2 }} | {{!}} [[{{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 2 }} | {{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 1 | 2}}]] }}
| #default = {{sublinks|case={{#titleparts:{{{case}}}| -1 }}}} [[{{#titleparts: {{{case}}} | | 2}} | {{#titleparts: {{{case}}} | | -1}}]] {{!}}
{{#ifexist: {{#titleparts: {{{1|{{FULLPAGENAME}}}}}/end | 3 }} | {{!}} [[{{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 3 }} | {{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 1 | 3}}]] }}
| end = <h6><
{{#ifexist: {{#titleparts: {{{1|{{FULLPAGENAME}}}}}/end | 4 }} | {{!}} [[{{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 4 }} | {{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 1 | 4}}]] }}
}}
{{#ifexist: {{#titleparts: {{{1|{{FULLPAGENAME}}}}}/end | 5 }} | {{!}} [[{{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 5 }} | {{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 1 | 5}}]] }}</h6>
 
<noinclude>
<noinclude>
This template tries to mimic subpages feature by adding parent links. Limited to 5 links.
This template tries to mimic subpages feature by adding parent links. Limited to 5 links.

Revision as of 02:16, 13 December 2013

< Template:Sublinks


This template tries to mimic subpages feature by adding parent links. Limited to 5 links.

Usage

{{sublinks|Mods/ExampleMod/Docs/Inserter}}

Produces:

< Mods