Template:Sublinks: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
mNo edit summary
m (newer example)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<h6>{{#ifexist: {{{1|{{#titleparts: {{{1|{{FULLPAGENAME}}}}}/end | 1 }}}}} | < [[{{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 1 }}]] }}
{{#if:{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|0}}
{{#ifexist: {{{1|{{#titleparts: {{{1|{{FULLPAGENAME}}}}}/end | 2 }}}}} | {{!}} [[{{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 2 }} | {{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 1 | 2}}]] }}
  |<h6>< [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|1}}]]
{{#ifexist: {{{1|{{#titleparts: {{{1|{{FULLPAGENAME}}}}}/end | 3 }}}}} | {{!}} [[{{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 3 }} | {{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 1 | 3}}]] }}
  {{#if:{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|1}}
{{#ifexist: {{{1|{{#titleparts: {{{1|{{FULLPAGENAME}}}}}/end | 4 }}}}} | {{!}} [[{{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 4 }} | {{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 1 | 4}}]] }}
    |{{!}} [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|2}}|{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|1}}]]
{{#ifexist: {{{1|{{#titleparts: {{{1|{{FULLPAGENAME}}}}}/end | 5 }}}}} | {{!}} [[{{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 5 }} | {{#titleparts: {{{1|{{FULLPAGENAME}}}}} | 1 | 5}}]] }}</h6>
    {{#if:{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|2}}
 
      |{{!}} [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|3}}|{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|2}}]]
<noinclude>
      {{#if:{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|3}}
This template tries to mimic subpages feature by adding parent links. Limited to 5 links.
        |{{!}} [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|4}}|{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|3}}]]
        {{#if:{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|4}}
          |{{!}} [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|5}}|{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|4}}]]
          {{#if:{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|5}}
            |{{!}} [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|6}}|{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|5}}]]
            {{#if:{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|6}}
              |{{!}} [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|7}}|{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|6}}]]
              {{#if:{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|7}}
                |{{!}} [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|8}}|{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|7}}]]
                {{#if:{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|8}}
                  |{{!}} [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|9}}|{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|8}}]]
                  {{#if:{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|9}}
                    |{{!}} [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|10}}|{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|9}}]]
                    |</h6>
                  }}
                  |</h6>
                }}
                |</h6>
              }}
              |</h6>
            }}
            |</h6>
          }}
          |</h6>
        }}
        |</h6>
      }}
      |</h6>
    }}
    |</h6>
  }}
}}<noinclude>
This template tries to mimic subpages feature by adding parent links. Limited to depth of 10 links.
==Usage==
==Usage==
<pre>
<pre>
{{sublinks|Mods/ExampleMod/Docs/Inserter}}
{{sublinks|Roadmap/History}}
</pre>
</pre>
Produces:
Produces:
{{sublinks|Mods/ExampleMod/Docs/Inserter}}
{{sublinks|Roadmap/History}}
</noinclude>
</noinclude>

Latest revision as of 18:16, 14 June 2019

< Template:Sublinks

This template tries to mimic subpages feature by adding parent links. Limited to depth of 10 links.

Usage

{{sublinks|Roadmap/History}}

Produces:

< Roadmap | History