Template:Sublinks: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Testing another version)
(category)
 
(4 intermediate revisions by 2 users not shown)
Line 11: Line 11:
           {{#if:{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|5}}
           {{#if:{{#explode:{{{1|{{FULLPAGENAME}}}}}|/|5}}
             |{{!}} [[{{#titleparts:{{{1|{{FULLPAGENAME}}}}}|6}}|{{#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>
           }}
           }}
Line 22: Line 38:
   }}
   }}
}}<noinclude>
}}<noinclude>
This template tries to mimic subpages feature by adding parent links. Limited to 5 links.
 
{{Documentation|text=
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>
 
[[Category:Templates]]
}}</noinclude>

Latest revision as of 20:23, 24 September 2023

< Template:Sublinks

[Create]

Documentation

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

Usage

{{sublinks|Roadmap/History}}

Produces:

< Roadmap | History
List of all templates