Template:Faketoc

From Source Entities
Jump to navigation Jump to search

Contents

{{{1}}}


A fake TOC for odd cases when the regular one gets messed up.

Use Template:faketoc/line with this. ul tags are needed on any section with subsections for indentation.

Below is the TOC from Help:Table of Contents:

{{faketoc|
<ul>
{{faketoc/line|Header 1|1}}
    <ul>
    {{faketoc/line|Header 2|1|1}}
        <ul>
        {{faketoc/line|Header 3|1|1|1}}
            <ul>
            {{faketoc/line|Header 4|1|1|1|1}}
                <ul>
                {{faketoc/line|Header 5|1|1|1|1|1}}
                    <ul>
                    {{faketoc/line|Header 6|1|1|1|1|1|1}}
                    {{faketoc/line|{{=}}Header 7{{=}}|1|1|1|1|1|2}}
                    </ul>
                </ul>
            </ul>
        </ul>
    {{faketoc/line|See Also|1|2}}
    </ul>
</ul>
}}

It's not a one-to-one recreation, but it gets the job done.