Template:Sublinks: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
(Trying to make recursive. Removed #ifexist)
Line 1: Line 1:
<h6>{{#ifexist: {{#titleparts: {{{1|{{FULLPAGENAME}}}}}/end | 1 }} | < [[{{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 1 }}]] }}
{{#switch: {{{case|start}}}
{{#ifexist: {{#titleparts: {{{1|{{FULLPAGENAME}}}}}/end | 2 }} | {{!}} [[{{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 2 }} | {{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 1 | 2}}]] }}
| start =  {{sublinks|case={{#titleparts:end/{{{1|{{FULLPAGENAME}}}}}| -1 }}}} [[{{{1|{{FULLPAGENAME}}}}} | {{#titleparts: {{{1|{{FULLPAGENAME}}}}} | | -1 }}]] </h6>
{{#ifexist: {{#titleparts: {{{1|{{FULLPAGENAME}}}}}/end | 3 }} | {{!}} [[{{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 3 }} | {{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 1 | 3}}]] }}
| #default = {{sublinks|case={{#titleparts:{{{case}}}| -1 }}}} [[{{#titleparts: {{{case}}} | | 2}} | {{#titleparts: {{{case}}} | | -1}}]] {{!}}
{{#ifexist: {{#titleparts: {{{1|{{FULLPAGENAME}}}}}/end | 4 }} | {{!}} [[{{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 4 }} | {{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 1 | 4}}]] }}
| end = <h6><
{{#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 01:30, 13 December 2013

Template loop detected: Template:Sublinks [[ | End]] |

Template:Sublinks

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

Usage

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

Produces:

Template loop detected: Template:Sublinks Inserter